Computer Chess Club Archives


Search

Terms

Messages

Subject: Try this...

Author: José Carlos

Date: 06:00:11 07/06/01

Go up one level in this thread


  On your makemove(), place a printf with a '+' and the move (for example +e2e4)
and on unmake() the same, but with a minus. Then run your program to a text
file, doing a search until depth 4 or so ( myprog > test.txt ).
  Then edit text.txt and you'll have the secuence of moves done/undone. It'll
look ugly, but you can reformat it easyly, getting something like:

+e2e4 -e2e4
+d2d4 -d2d4
...
[End of ply 1 - you'll know it :)]

+e2e4 +e7e5 -e7e5
      +d7d5 +e4d5 [you'll guess: qsearch!] +d8d5 -d8d5 -e4d5 -d7d5
...

  Hope this helps,

  José C.



This page took 0 seconds to execute

Last modified: Thu, 15 Apr 21 08:11:13 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.