~ubuntu-branches/ubuntu/precise/dds/precise

« back to all changes in this revision

Viewing changes to dll.h

  • Committer: Bazaar Package Importer
  • Author(s): Christoph Berg
  • Date: 2010-05-23 11:56:03 UTC
  • mfrom: (1.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20100523115603-x0anrw9iv5uap6w1
Tags: 2.0.1+ddd105-1
* New dds upstream version, in some situations
  dds could wrongly reuse the transposition table contents giving an
  incorrect result.
* Defines DDS_VERSION.

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
 
32
32
/* end of portability-macros section */
33
33
 
 
34
#define DDS_VERSION             20001   /* Version 2.0.1. Allowing for 2 digit
 
35
                                        minor versions */
 
36
/*#define SIMILARITYTEST*/              /* Uncomment the SIMILARITYTEST definition to
 
37
                                        reuse the transposition table contents when the
 
38
                                        deal in the preceding SolveBoard call is similar to 
 
39
                                        the current deal. */
34
40
/*#define BENCH*/
35
41
 
36
42
#include <stdio.h>
37
43
#include <stdlib.h>
38
44
#include <string.h>
39
45
#include <time.h>
40
 
#include <cassert>
 
46
/*#include <cassert>*/
41
47
#include <math.h>
42
48
 
43
49
/*#define STAT*/        /* Define STAT to generate a statistics log, stat.txt */
75
81
#define WINIT   700000/*1000000*/
76
82
#define LINIT   50000
77
83
 
 
84
#ifdef SIMILARITYTEST
78
85
#define SIMILARDEALLIMIT        5
 
86
#endif
79
87
 
80
88
#define MAXNOOFBOARDS           20
81
89
 
283
291
  int tricksTarget;
284
292
  struct gameInfo game;
285
293
  int newDeal;
 
294
  int newTrump;
 
295
  #ifdef SIMILARITYTEST
286
296
  int similarDeal;
287
 
  int newTrump;
288
297
  unsigned short int diffDeal;
289
298
  unsigned short int aggDeal;
 
299
  #endif
290
300
  int estTricks[4];
291
301
  FILE *fp2;
292
302
  FILE *fp7;