gnugo-devel
[Top][All Lists]
Advanced

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

Re: [gnugo-devel] Three stone games


From: Morten Gulbrandsen
Subject: Re: [gnugo-devel] Three stone games
Date: Mon, 01 Apr 2002 01:19:45 +0200

at the beginning of twogmp.c 


#include <unistd.h>
#include <getopt.h>
#include <stdlib.h>
#include <stdio.h>
#include "gmp.h"

int main(int argc, char *argv[]) {
  Gmp *ge1, *ge2;
  const char *error;
  int pass=0;
  GmpResult message;
  int i, j;
  int which_ge;
  int c;

  int size=19;
  int handicap=0;
  char white[100]="/u/martinea/gnugo/gnugo";
  char black[100]="/u/martinea/gnugo/gnugo";

I think these strings are wrong initialized ?

  address@hidden:/tmp/twogmp$ ./twogmp  "black gnugo --quiet --mode
gtp"   "white gnugo --quiet --mode gtp"              
address@hidden:/tmp/twogmp$ black       : /u/martinea/gnugo/gnugo
white       : /u/martinea/gnugo/gnugo
black_output: 
white_output: 
size        : 19
handicap    : 0


/u/martinea/gnugo/gnugo   what is it ?

Yours Sincerely

Morten Gulbrandsen


Daniel Bump wrote:
> 
> > It seems to run something on my computer,
> > but I don't know how to use it.
> 
> I think your problem is that you need some quotation marks.
> 
> twogtp --black "gnugo --quiet --mode gtp" --white "gnugo --quiet --mode gtp" 
> --games 100 --sgffile games.sgf --handicap 2
> 
> (All one line.)
> 
> This should produce 100 two stone games with sgffiles labelled
> games001.sgf, games002.sgf, etc.
> 
> Dan
> 
> _______________________________________________
> gnugo-devel mailing list
> address@hidden
> http://mail.gnu.org/mailman/listinfo/gnugo-devel



reply via email to

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