lib/reversi/board.rb
def push_stack
      bb = {:black => get_black,:white => get_white}
      @stack.push(Marshal.load(Marshal.dump(bb)))
      @stack.shift if @stack.size > @options[:stack_limit]
    end
# Pushes an array of the game board onto a stack.
# The stack size limit is 3(default).
Pushes an array of the game board onto a stack.
The stack size limit is 3(default).
Pushes an array of the game board onto a stack . The stack size limit is 3 ( default ) .
def push_stack
      bb = {:black => get_black,:white => get_white}
      @stack.push(Marshal.load(Marshal.dump(bb)))
      @stack.shift if @stack.size > @options[:stack_limit]
    end
def push_stack bb = { :black => get_black , :white => get_white } @stack . push ( Marshal . load ( Marshal . dump ( bb ) ) ) @stack . shift if @stack . size > @options [ :stack_limit ] end
Pushes an array of the game board onto a stack.
Pushes an array of the game board onto a stack .