NAME

game - one command for every terminal game

SYNOPSIS

game                        # the menu: arrows, enter, q
game checkers --level 3     # the same as: checkers --level 3
game sixtysix               # Schnapsen in the Sixty-Six variant
game list
game help oware
game --no-colour --no-pick durak

DESCRIPTION

Lists the terminal games of the Game namespace and Term::Maze, and starts any of them. With no arguments it draws a menu (Game::Terminal::Menu): choose a game with the arrow keys, set its options on the screen that follows (the level, your side, a variant, a seed, or anything else as on the command line), and enter on Play starts it. The menu is drawn again when the game ends, with the options still set. With a name it starts that game at once, inside this process, through the game's own run method, and everything after the name is the game's own command line.

--ascii and --no-pick are spelt in each game's words before being passed on; --no-colour sets NO_COLOR for the game, since two of the games use --colour to mean a side. They are read only before the name.

EXIT STATUS

the game's own: 0 won, drew or quit, 1 lost, 2 a bad option
2   a bad option to game itself, or a name that is no game
3   the game died, with the message on stderr

SEE ALSO

Game::Terminal, Game::Terminal::Menu