mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-09-08 20:07:50 -04:00
49 lines
1.3 KiB
Plaintext
49 lines
1.3 KiB
Plaintext
$NetBSD: patch-ab,v 1.3 2013/04/30 22:20:58 joerg Exp $
|
|
|
|
--- chess.h.orig 2000-02-19 11:28:46.000000000 +0000
|
|
+++ chess.h
|
|
@@ -3,6 +3,8 @@
|
|
#ifndef CHESS_H
|
|
#define CHESS_H
|
|
|
|
+#include <sys/types.h>
|
|
+
|
|
// move structure to encapsulate several important move parameters
|
|
// note: The char used below is treated like an integer.
|
|
|
|
@@ -30,7 +32,7 @@ struct move_t {
|
|
// union of move_t and an integer to make comparison of
|
|
// moves easier. (as suggested in Tom Kerrigans simple chess program)
|
|
|
|
-union move {
|
|
+union my_move {
|
|
move_t b;
|
|
int t; // assuming a 32 bit integer
|
|
};
|
|
@@ -38,7 +40,7 @@ union move {
|
|
// Add a score for sorting purposes to the move record
|
|
|
|
struct move_rec {
|
|
- move m;
|
|
+ my_move m;
|
|
int score;
|
|
};
|
|
|
|
@@ -79,14 +81,14 @@ struct position {
|
|
// side to move
|
|
int extend; // extension flag
|
|
char plist[2][7][10]; // piece lists
|
|
- move last; // last move made
|
|
+ my_move last; // last move made
|
|
h_code hcode; // hash code
|
|
};
|
|
|
|
// Structure for position in the opening book
|
|
|
|
struct book_rec {
|
|
- unsigned __int64 pos_code; // position hash code
|
|
+ u_int64_t pos_code; // position hash code
|
|
int score; // score for position
|
|
int gambit; // flag for gambit play
|
|
};
|