Top Level Namespace

Includes:
MIDI

Defined Under Namespace

Classes: Bishop, Board, ChessGame, GameListener, King, Knight, Move, Pawn, Piece, Queen, Rook, Square

Constant Summary collapse

VERSION_MAJOR =
0
VERSION_MINOR =
1
VERSION_TWEAK =
0
Version =
"#{VERSION_MAJOR}.#{VERSION_MINOR}.#{VERSION_TWEAK}"
'Copyright (c) 2005 by Jim Menard <[email protected]>'

Instance Method Summary collapse

Instance Method Details

#black(piece_sym, program_change) ⇒ Object



20
21
22
# File 'lib/bangkok/gamelistener.rb', line 20

def black(piece_sym, program_change)
  GameListener::PIECE_MIDI_INFO[:black][piece_sym] = program_change
end

#white(piece_sym, program_change) ⇒ Object



17
18
19
# File 'lib/bangkok/gamelistener.rb', line 17

def white(piece_sym, program_change)
  GameListener::PIECE_MIDI_INFO[:white][piece_sym] = program_change
end