Scid  4.6.5
Classes | Macros | Functions
position.cpp File Reference
#include "common.h"
#include "position.h"
#include "attacks.h"
#include "misc.h"
#include "sqlist.h"
#include "sqset.h"
#include "hash.h"
#include "sqmove.h"
#include "dstring.h"
#include <algorithm>
Include dependency graph for position.cpp:

Go to the source code of this file.

Classes

struct  htmlStyleT
 

Macros

#define HASH(h, p, sq)   (h) ^= hashVal[(p)][(sq)]
 
#define UNHASH(h, p, sq)   (h) ^= hashVal[(p)][(sq)]
 
#define POSSIBLE_CAPTURE(d)
 

Functions

void initHashValues (void)
 
squareT randomSquare (void)
 
squareT randomPawnSquare (void)
 

Macro Definition Documentation

#define HASH (   h,
  p,
  sq 
)    (h) ^= hashVal[(p)][(sq)]

Definition at line 31 of file position.cpp.

#define POSSIBLE_CAPTURE (   d)
Value:
((d != NULL_SQUARE) \
&& ((piece_Color (Board[d]) == (color_Flip(ToMove))) \
|| (d == EPTarget && IsValidEnPassant(from,d))))
const squareT NULL_SQUARE
Definition: common.h:352
colorT color_Flip(colorT c)
Definition: common.h:210
colorT piece_Color(pieceT p)
Definition: common.h:280
#define UNHASH (   h,
  p,
  sq 
)    (h) ^= hashVal[(p)][(sq)]

Definition at line 32 of file position.cpp.

Function Documentation

void initHashValues ( void  )

Definition at line 82 of file position.cpp.

squareT randomPawnSquare ( void  )
inline

Definition at line 3194 of file position.cpp.

squareT randomSquare ( void  )
inline

Definition at line 3191 of file position.cpp.