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 #

[View source]
def parse_move?(move) : Move | Nil #

[View source]
def play(player_id : PlayerId, move : Game::Move) #

[View source]
def state_info #

[View source]
def turn : PlayerId | Nil #

[View source]
def winner? : PlayerId | Nil #

[View source]