class RockPaperScissors
Defined in:
server/games/rock_paper_scissors.cr
Constructors
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
Constructor Detail
Instance Method Detail
def
min_players : Int32
#
def
parse_move?(move) :
Move | Nil
#