Class GameHandler
In: src/play.rb
Parent: Object

Play a game to completion, given a set of player agents.

Methods

new   play  

Attributes

game  [R] 

Public Class methods

Create a game handler that uses a set of players

Public Instance methods

Play a game of Trap the Cap. If players make illegal moves, disqualify them and restart the game. Terminate the game if there‘s a winner, there‘s only one player left, or the game has gone on too long.

[Validate]