Class: Connect4::Game

Inherits:
BoardgameEngine::Game show all
Includes:
Games::CyclicalTurn
Defined in:
lib/boardgame_engine/connect4.rb

Overview

A game of Connect-4

Constant Summary collapse

PLAY_INSTRUCTIONS =
'You can select which column to drop you chip into by' \
' typing in the row number.'
GAME_NAME =
'Connect-4'
NUM_PLAYERS =
2

Instance Method Summary collapse

Methods included from Games::CyclicalTurn

#change_turn

Methods inherited from BoardgameEngine::Game

#onboarding, #play, start, #to_s

Constructor Details

#initialize(names) ⇒ Game



18
19
20
# File 'lib/boardgame_engine/connect4.rb', line 18

def initialize(names)
  super(Board, names)
end