class MahjonggModel
- MahjonggModel
- Reference
- Object
Defined in:
mahjongg_model.crConstructors
Instance Method Summary
- #any_visible?(positions : Array(Int32))
- #blocked_on_top?(position_id : Int32)
- #create_position_to_tile
- #create_tiles
- #find_matches
- #free : Array(Tile)
- #game_number : Int32
-
#get_tile(position_id)
returns the actual tile object
- #is_free?(position)
- #matches : Array(Array(Int32))
-
#position_to_tile_map : StaticArray(Int32, 144)
find the tile_id for a given position_id
- #possible_matches : Array(Array(MahjonggModel::Tile))
- #process_selection(position_id : Int32)
-
#shuffle_position(seed : Int)
positions are randomly shuffled by a seed.
- #side_blocked?(position_id : Int32)
-
#tile_to_position_map : Array(Int32)
find the position_id for a given tile_id
- #tiles : Array(Tile)
- #undo
Constructor Detail
Instance Method Detail
def shuffle_position(seed : Int)
#
positions are randomly shuffled by a seed. Index of this array is the tile number