2011-09-11 19:39:14 +00:00
|
|
|
Checkers AI engine
|
|
|
|
|
2011-09-21 04:00:54 +00:00
|
|
|
For Ruby 1.9.1
|
|
|
|
|
2011-09-11 19:39:14 +00:00
|
|
|
Right now I'm working on the search.
|
|
|
|
|
|
|
|
To test
|
|
|
|
|
|
|
|
% load "checkers.rb"
|
|
|
|
% b = Board.new
|
2011-09-21 04:00:54 +00:00
|
|
|
% b.play
|
2011-09-11 19:39:14 +00:00
|
|
|
|
2011-09-21 04:00:54 +00:00
|
|
|
also look at
|
2011-09-11 19:39:14 +00:00
|
|
|
|
|
|
|
% b.search(TEAM_1)
|
2011-09-21 04:00:54 +00:00
|
|
|
|
|
|
|
Right now entering jump moves or the AI playing jumps in the .play() interface may not work
|