Computer Chess Club Archives


Search

Terms

Messages

Subject: Modification to let crafty play Wild 5

Author: Michel Langeveld

Date: 10:54:34 07/16/00


I already registered a new Crafty on ICC called Wild5Crafty.
It hasn't lost yet :-P. But not too many games where played against it.

Kind regards,

Michel Langeveld

 ----------------------------------------------------------
|                                                          |
|   "wild" command sets up an ICS wild position (only 7 at |
|   present, but any can be added easily, except for those |
|   that Crafty simply can't play (two kings, invisible    |
|   pieces, etc.)                                          |
|                                                          |
 ----------------------------------------------------------
*/
  else if (OptionMatch("wild",*args)) {
    int i;

    if (nargs < 2) {
      printf("usage:  wild <value>\n");
      return(1);
    }
    i=atoi(args[1]);
    switch (i) {
    case 5:
      strcpy(buffer,"setboard RNBKQBNR/PPPPPPPP/8/8/8/8/pppppppp/rnbkqbnr w");
      (void) Option(tree);
      break;
    case 7:
      strcpy(buffer,"setboard 4k/5ppp/////PPP/3K/ w");
      (void) Option(tree);
      break;
    default:
      printf("sorry, only wild5 and wild7 implemented at present\n");
      break;
    }
  }



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.