Script Library: 1240 scripts
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 
View scriptLicenseDownload documentation as: HTML or editable
Download scriptHistoryOther scripts by: arnold

Documentation for: dam1.r


This is a first draft of a move generator for 10x10 international 
checkers.

Move generating for normal stones including capturing is ok. 

For promoted pieces should also generate possible moves but these 
must still be selected for most captured enemy pieces and adding 
the trailing fields after the last capture.


There is a little validation function and a start for a evaluation 
function.

No board implemented, could be similar like the chessboard.


To start it now you need to copy the definition of test-board and 
paste it in console.

Then start generating by calling the function (this is where I paused 
now)
get-king-moves test-board5 5 0

Any improvements welcome.