class Tile_Tip_Cycle4
  attr_accessor  :id

  attr_accessor  :empty_tile
  
  def initialize(id,bwidth , bheight ,empty_flag)
    @id = id
    @board_width = bwidth
    @board_height = bheight
    @empty_tile = empty_flag
  end  
  
  def dposX
    @id % @board_width
  end
  
  def dposY
    @id / @board_width
  end  

end  