module Gobgems::Program
Attributes
board[RW]
Public Instance Methods
can_move?(direction)
click to toggle source
# File lib/gobgems/program.rb, line 24 def can_move?(direction) board.can_move?(direction) end
count(color)
click to toggle source
# File lib/gobgems/program.rb, line 28 def count(color) board.count(color) end
exist?(color)
click to toggle source
# File lib/gobgems/program.rb, line 20 def exist?(color) board.exists?(color) end
move(direction)
click to toggle source
# File lib/gobgems/program.rb, line 8 def move(direction) board.move(direction) end
pop(color)
click to toggle source
# File lib/gobgems/program.rb, line 16 def pop(color) board.pop(color) end
push(color)
click to toggle source
# File lib/gobgems/program.rb, line 12 def push(color) board.push(color) end