Module: GooseGame::Messages::Out

Defined in:
lib/goose_game/messages.rb

Constant Summary collapse

HELP =
["available commands:", "* add player <player_name>", "* move <player_name> 4, 5", "* move <player_name>", "* help", "* exit"].join("\n")
UNKNOWN =
"can you repeat please?"
NO_PLAYER =
-> (player) { "#{player}: not an existing player"}
PLAYERS =
-> (players) { "players: #{players.join(', ')}" }
EXISTING =
-> (player) { "#{player}: already existing player" }
ROLL =
-> (player, dice) { "#{player} rolls #{dice.d1}, #{dice.d2}" }
PRANK =
-> (player, prank) { ". On #{player.position} there is #{prank}, who returns to #{player.prev}" }