class FourInARow
Defined in:
server/games/four_in_a_row.cr
Constant Summary
-
Height =
6
-
Width =
7
Instance Method Summary
Instance methods inherited from class Game
add_player(player : Player)
add_player,
broadcast(msg, player2socket)
broadcast,
id : GameId
id,
min_players : Int32
min_players,
parse_move?(move) : Game::Move | Nil
parse_move?,
play(player_id : PlayerId, move : Move)
play,
play!(player_id, move)
play!,
players : Array(Player)
players,
players=(players : Array(Player))
players=,
remove_player(player_id)
remove_player,
status : GameStatus
status,
turn : PlayerId | Nil
turn
Instance Method Detail
def
min_players : Int32
#
def
parse_move?(move) :
Move | Nil
#