Open Sidebar
Close Sidebar
CrystalDoc.info
Source code
Shards.info
tic
master
Tic
Board
Game
Built with Crystal 1.9.2
2023-10-07 18:48:20 UTC
class
Tic::Board
Tic::Board
Reference
Object
Defined in:
tic.cr
Constructors
.new
(board : Array(Array(Int32 | Nil)))
.new
Instance Method Summary
#add
(row : Int32, col : Int32, piece)
#check
(piece)
#display
Constructor Detail
def self.
new
(board : Array(Array(Int32 | Nil)))
#
[
View source
]
def self.
new
#
[
View source
]
Instance Method Detail
def
add
(row : Int32, col : Int32, piece)
#
[
View source
]
def
check
(piece)
#
[
View source
]
def
display
#
[
View source
]