gnugo-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnugo-devel] SGMP patch and windows redirect program for use on Gifu


From: SP LEE
Subject: [gnugo-devel] SGMP patch and windows redirect program for use on Gifu
Date: Sun, 13 Jul 2003 15:25:36 -0700

Here is the patch from Paul which adds a new mode SGMP (simplified GMP) to meet gifu requirement. It can be run like:

gnugo --mode gmp

There is also a pike script to pipe two gnugo together to play a game. For debugging purpose, you can simply change "int gmp_debug = 0;" to "int gmp_debug = 1;" in interface/gmp.c.

Since Windows OS will probably be used in Gifu, I have to make a Win32 redirect program to redirect the standard I/O to the serial port. The "<" or ">" doesn't work for serial port. Attached program, gnugogmp, can be copied to the same directory of gnugo.exe for windows and run like:

gnugogmp com1 black

The default color is black and port is com1. The program will let gnugo pop-up a new window and the stderr output goes to that window. The program together with the gmp patch was tested by connecting two computers through serial cable, with current gnugo vs. gnugo 1.2 provided by Gifu and no problem was found.

Currently I put all gnugo options in the redirect program and there may be some missing, e.g. how and where can we put the information of 40 minutes time limit and no overtime?

Any one with windows access and two serial ports or two computers can check the code in more detail. I have only tested it on Windows 98 and Windows XP.

SP Lee

_________________________________________________________________
MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus

Attachment: gmp.patch
Description: Text Data

Attachment: gmp.pike
Description: Binary data

Attachment: gnugogmp.zip
Description: Zip compressed data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]