Class: Chess::Game

Inherits:
BoardgameEngine::Game show all
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

Methods included from Games::MovablePiece

#play_move

Methods included from Games::CyclicalTurn

#change_turn

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