Skip to main content
CrystalDocs
Search documentation
Search
Browse Docs
CrystalShards
About
class
Aisweeper::Board
Inherits
Reference
<
Object
Constructors
new
(id :
String
, rows :
Array
(
Array
(
Aisweeper::Tile
)), store :
Aisweeper::BoardStore
)
Source
Class methods
all
(storage_base_path :
Path
=
Aisweeper::BoardStore::DEFAULT_BASE_PATH
)
Source
find
(id :
String
, storage_base_path :
Path
=
Aisweeper::BoardStore::DEFAULT_BASE_PATH
)
Source
find_or_create
(id =
Random
.new.hex(3), x :
UInt8
= 10, y :
UInt8
= 10, infested :
UInt8
= 10, storage_base_path :
Path
=
Aisweeper::BoardStore::DEFAULT_BASE_PATH
)
Source
Instance methods
delete
Source
id
Source
left_click
(x :
Int8
, y :
Int8
)
Source
neighbouring_infested_tiles
(x :
Int8
, y :
Int8
)
Source
neighbouring_tiles
(x :
Int8
, y :
Int8
)
Source
right_click
(x :
Int8
, y :
Int8
)
Source
rows
Source
stats
Source
status
Source
store
Source
tile_at
(x :
Int8
, y :
Int8
)
Source
Nested types
Aisweeper::Board::Form
Aisweeper::Board::Stats
Aisweeper::Board::Status