Classes | Functions | Variables
candidates_table.cc File Reference

Program used to generate cwchess::candidates_table[]. More...

#include "sys.h"
#include <iostream>
#include <iomanip>
Include dependency graph for candidates_table.cc:

Go to the source code of this file.

Classes

struct  Direction
 
struct  Piece
 

Functions

uint64_t colrow2mask (int col, int row)
 
int main ()
 

Variables

Piece piece []
 

Detailed Description

Program used to generate cwchess::candidates_table[].

Definition in file candidates_table.cc.

Variable Documentation

Piece piece[]
Initial value:
= {
{ "Knight", 1, 4, { { 1, 2 }, { 2, 1 }, { 2, -1, }, { 1, -2 } } },
{ "King", 1, 4, { { 0, 1 }, { 1, 0 }, { 1, 1 }, { 1, -1 } } },
{ "Bishop", 8, 2, { { 1, 1 }, { 1, -1 } } },
{ "Rook", 8, 2, { { 0, 1 }, { 1, 0 } } },
{ "Queen", 8, 4, { { 0, 1 }, { 1, 0 }, { 1, 1 }, { 1, -1 } } }
}

Definition at line 43 of file candidates_table.cc.


Copyright © 2006 - 2010 Carlo Wood.  All rights reserved.