home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Freelog 45
/
Freelog045.iso
/
Bas
/
Jeu
/
ETChess
/
BOARD.TXT
< prev
next >
Wrap
Text File
|
2001-10-10
|
4KB
|
92 lines
*****************************************
* Fichier d'initialisation de E.T.Chess
* A modifier avec precaution
*
* Initialization file for E.T.Chess
* Be careful when modifying it
*****************************************
* codes des pieces / pieces' codes
* ROI_R = roi n'ayant jamais bouge / unmoved king
* ROI = king
* DAME = queen
* TOUR_R = tour n'ayant jamais bouge / unmoved rook
* TOUR = rook
* FOU = bishop
* CHEVAL = knight
* PION = pawn
* NB : les pieces noires doivent etre affectees du signe "-"
* use "-" to declare black pieces
*********************************************
* tables de transpositions / hash tables
*********************************************
* taille en Mo / size in Mb = 0.625*2^number
* 0 <-> no hash table
* 1 <-> 1.25 Mb
* 2 <-> 2.5 Mb
* 3 <-> 5 Mb
* 4 <-> 10 Mb
* 5 <-> 20 Mb
* 6 <-> 40 Mb
* 7 <-> 80 Mb
* 8 <-> 160 Mb
* 9 <-> 320 Mb
* 10 <-> 640 Mb
@5
*************************************************************
* camp au trait / side to move ( "B"lancs / white | "N"oirs / black )
*************************************************************
#B
***********************************************************************************
* Declaration de l'echiquier, le premier echiquier correct rencontre est charge.
* Si aucun echiquier correct n'est trouve, c'est la position de debut de partie
* qui est chargee.
*
* Chess board initialization
***********************************************************************************
char board[8][8] = { { TOUR_R,PION,0,0,0,0,-PION,-TOUR_R },
{ CHEVAL,PION,0,0,0,0,-PION,-CHEVAL },
{ FOU ,PION,0,0,0,0,-PION,-FOU },
{ DAME ,PION,0,0,0,0,-PION,-DAME },
{ ROI_R ,PION,0,0,0,0,-PION,-ROI_R },
{ FOU ,PION,0,0,0,0,-PION,-FOU },
{ CHEVAL,PION,0,0,0,0,-PION,-CHEVAL },
{ TOUR_R,PION,0,0,0,0,-PION,-TOUR_R } };
char board[8][8] ={ /* position du Dr DE GROOT : les blancs jouent et gagnent: Fa2xCd5 */
{ 0 ,FOU ,PION ,0 ,0 ,0 ,-PION ,0 },
{ 0 ,PION ,0 ,0 ,0 ,-DAME ,-PION ,0 },
{ TOUR ,0 ,CHEVAL ,0 ,0 ,-FOU ,0 ,-TOUR },
{ 0 ,0 ,DAME ,PION ,-CHEVAL ,0 ,0 ,0 },
{ 0 ,0 ,0 ,0 ,CHEVAL ,-PION ,-FOU ,0 },
{ TOUR ,PION ,0 ,0 ,0 ,-CHEVAL ,-PION ,-TOUR },
{ ROI ,PION ,0 ,0 ,FOU ,-PION ,0 ,-ROI },
{ 0 ,PION ,0 ,0 ,0 ,0 ,-PION ,0 } };
char board[8][8] ={ /* RAM */
{ TOUR ,PION ,0 ,0 ,-PION ,FOU ,-CHEVAL ,0 },
{ 0 ,PION ,0 ,0 ,0 ,0 ,0 ,-ROI },
{ 0 ,0 ,PION ,DAME ,0 ,0 ,0 ,0 },
{ 0 ,0 ,PION ,0 ,-DAME ,-FOU ,0 ,-TOUR },
{ 0 ,0 ,FOU ,0 ,-PION ,0 ,0 ,0 },
{ TOUR ,PION ,0 ,0 ,0 ,-CHEVAL ,-PION ,0 },
{ ROI ,0 ,0 ,PION ,0 ,0 ,-PION ,0 },
{ 0 ,0 ,PION ,CHEVAL ,0 ,-PION ,-FOU ,-TOUR } };
char board[8][8] = { /* RAM II */
{ TOUR_R,PION,0,0, 0,0,-PION,-TOUR_R },
{ 0,PION,0,0, 0,0,-PION,0 },
{ FOU ,PION,CHEVAL,FOU,-PION,-CHEVAL,0,-FOU },
{ DAME ,PION,0, 0,0,-DAME,0,0 },
{ 0 ,0,0,0, 0,0,-PION,-ROI_R },
{ TOUR ,PION,CHEVAL,0, 0,-CHEVAL,-PION,-FOU },
{ ROI ,PION,0,0, 0,0,-PION,0 },
{ 0,PION,0,0, 0,0,-PION,-TOUR_R } };