Class ChessGame
In: lib/bangkok/chessgame.rb
Parent: Object

ChessGame takes a listener in its constructor and creates a Board. The method ChessGame#read_moves reads game data. Calling ChessGame#play moves the pieces, which in turn sends messages to the listener so it can react.

Methods

new   play   read   read_moves  

Public Class methods

Public Instance methods

Writes a MIDI file.

Read the chess game. Set player names and return a string containing the chess moves ("1. f4 Nf6 2. Nf3 c5…").

Read the chess game and turn it into Moves.

[Validate]