gnugo-devel
[Top][All Lists]
Advanced

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

[gnugo-devel] gnugo without computer


From: Kenneth Owen Stanley
Subject: [gnugo-devel] gnugo without computer
Date: Mon, 17 Mar 2003 11:57:10 -0600 (CST)

I am using GNU Go libraries inside my own program.
Is it possible to set it up to have neither player
computer-controlled?  It seems that it expects one
player to be computer controlled, or else it crashes
when it tries to estimate the score.  For example:

  (after initializing, resetting engine, etc..)

  gnugo_play_move(0,0,BLACK);  /* first move */
  showboard(0);
  gnugo_genmove(move_i, move_j, WHITE); /* computer thinks */
  gnugo_play_move(3,2,WHITE);  /* ignore computer's suggestion */
  showboard(0);
  score_estimate=gnugo_estimate_score(score_upper,score_lower);
 
Works fine.  But 
 
  (after initializing, resetting engine, etc..)

  gnugo_play_move(0,0,BLACK); /* first move */
  showboard(0);
  gnugo_play_move(3,2,WHITE);
  showboard(0);
  score_estimate=gnugo_estimate_score(score_upper,score_lower)
 
causes a Segmentation Fault.
 
Note that the only difference is that in the first 
code fragment, genmove was called.  But it doesn't
seem like it should be necessary to call genmove if
you just want to use the board alone.

Thank you for any help- I am looking forward greatly to
using GNUGo as a platform for applying learning methods 
to Go!
 
Kenneth Stanley
address@hidden






reply via email to

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