Class: Chess::Game
- Inherits:
-
BoardgameEngine::Game
- Object
- BoardgameEngine::Game
- Chess::Game
- Includes:
- Games::CyclicalTurn, Games::MovablePiece
- Defined in:
- lib/boardgame_engine/chess.rb
Overview
Class for a game of chess
Constant Summary collapse
- PLAY_INSTRUCTIONS =
'You can select spots on the board by inputting the ' \ "row and column with a comma in between. See example below\n1, 1\n"
- GAME_NAME =
'Chess'- NUM_PLAYERS =
2
Instance Method Summary collapse
-
#initialize(names) ⇒ Game
constructor
A new instance of Game.
Methods included from Games::MovablePiece
Methods included from Games::CyclicalTurn
Methods inherited from BoardgameEngine::Game
#onboarding, #play, start, #to_s
Constructor Details
#initialize(names) ⇒ Game
Returns a new instance of Game.
19 20 21 |
# File 'lib/boardgame_engine/chess.rb', line 19 def initialize(names) super(Board, names) end |