lib/chess/gnuchess.rb in chess-0.0.9 vs lib/chess/gnuchess.rb in chess-0.1.0

- old
+ new

@@ -15,10 +15,10 @@ def gnuchess_move pipe = IO.popen('gnuchess -x', 'r+') begin pipe.puts('depth 1') pipe.puts('manual') - self.full_moves.each do |m| + self.coord_moves.each do |m| pipe.puts(m) end pipe.puts('go') while line = pipe.gets raise IllegalMoveError if line.include?('Invalid move')