https://github.com/pocopito/secondchess
Best regards and thanks everybody who is testing the code.
E Diaz
![]() |
Go to page :
1, 2, 3, 4, 5 
SecondChess>tcc secondchess.c
secondchess.c:2000: incompatible types for redefinition of 'xboard'richardpd wrote:Emilio
Thanks for your quick reply-your fix worked (I uncommented xboard).
Then I compiled fine (tcc) & played my second game & I lost on time!!!
(I'm having a bad day.....) Game pgn below:
[Event "Computer chess game"]
[Site "RICHARD-PC"]
[Date "2012.04.25"]
[Round "?"]
[White "Richard"]
[Black "SecondChess"]
[Result "0-1"]
[BlackElo "2000"]
[ECO "A18"]
[Opening "English"]
[Time "17"]
[Variation "Mikenas, Flohr, 4...d4"]
[WhiteElo "2400"]
[TimeControl "300"]
[Termination "time forfeit"]
[PlyCount "114"]
[WhiteType "human"]
[BlackType "program"]
1. e4 d5 2. Nc3 d4 3. Nce2 e6 4. Nf3 Nc6 5. e5 a6 6. Ng3 Qd5 7. d3 Nxe5 8.
Nxe5 Qxe5+ 9. Qe2 Bb4+ 10. Bd2 Bxd2+ 11. Kxd2 Qf4+ 12. Ke1 Nf6 13. Qd2
Qxd2+ 14. Kxd2 O-O 15. Be2 Bd7 16. Bf3 Rad8 17. Bxb7 a5 18. Ba6 Bc6 19. f3
Ra8 20. Bc4 Rab8 21. b3 Bd5 22. Bxd5 exd5 23. Rae1 a4 24. Re7 Rbc8 25. Nf5
axb3 26. axb3 c5 27. Ra1 Ra8 28. Rxa8 Rxa8 29. Rc7 g6 30. Ne7+ Kf8 31. Nc6
Kg8 32. Ra7 Rxa7 33. Nxa7 c4 34. b4 Kh8 35. b5 Kg8 36. b6 Nd7 37. b7 Nb8
38. Nc8 Kf8 39. dxc4 dxc4 40. Nd6 c3+ 41. Kd3 Nc6 42. Nb5 Ne5+ 43. Kxd4
Nc6+ 44. Kxc3 Kg8 45. Kc4 Na5+ 46. Kc5 Nxb7+ 47. Kb6 Nd8 48. c4 Ne6 49. c5
Nf4 50. c6 Nd5+ 51. Kb7 f6 52. c7 Nxc7 53. Kxc7 Kf8 54. Nd4 Kg8 55. Kd7 Kf7
56. g4 h5 57. h3 Kg7 58. ... {White forfeits on time} 0-1
I was surprised SecondChess played quicker-I was expecting it to time out like my first game! So it's one all (game score) and now I'll have to play a deciding game....
Thanks
richardpd wrote:Emilio
Thanks for your quick reply-your fix worked (I uncommented xboard).
Then I compiled fine (tcc) & played my second game & I lost on time!!!
(I'm having a bad day.....) Game pgn below:
...
I was surprised SecondChess played quicker-I was expecting it to time out like my first game! So it's one all (game score) and now I'll have to play a deciding game....
Thanks
else
{
//value = Quiescent(alpha, beta);
value = -Eval();
}else
{
value = Quiescent(alpha, beta);
//value = -Eval();
}
Second Chess, by Emilio Diaz
Help
d: display board
MOVE: make a move (e.g. b1c3, a7a8q, e1g1)
on: force computer to move
quit: exit
sd n: set engine depth to n plies
undo: take back last move
sc> e2e4
+---+---+---+---+---+---+---+---+
8 | r | n | b | q | k | b | n | r |
+---+---+---+---+---+---+---+---+
7 | p | p | p | p | p | p | p | p |
+---+---+---+---+---+---+---+---+
6 | | | | | | | | |
+---+---+---+---+---+---+---+---+
5 | | | | | | | | |
+---+---+---+---+---+---+---+---+
4 | | | | | P | | | |
+---+---+---+---+---+---+---+---+
3 | | | | | * | | | |
+---+---+---+---+---+---+---+---+
2 | P | P | P | P | | P | P | P |
+---+---+---+---+---+---+---+---+
1 | R | N | B | Q | K | B | N | R |
+---+---+---+---+---+---+---+---+
a b c d e f g h
Search result: move = d7d5; nodes = 0, evaluations = 4074706, moves made = 45130
41, depth = 6, score = 0.85, time = 3.26s, knps = 0.00
+---+---+---+---+---+---+---+---+
8 | r | n | b | q | k | b | n | r |
+---+---+---+---+---+---+---+---+
7 | p | p | p | | p | p | p | p |
+---+---+---+---+---+---+---+---+
6 | | | | * | | | | |
+---+---+---+---+---+---+---+---+
5 | | | | p | | | | |
+---+---+---+---+---+---+---+---+
4 | | | | | P | | | |
+---+---+---+---+---+---+---+---+
3 | | | | | | | | |
+---+---+---+---+---+---+---+---+
2 | P | P | P | P | | P | P | P |
+---+---+---+---+---+---+---+---+
1 | R | N | B | Q | K | B | N | R |
+---+---+---+---+---+---+---+---+
a b c d e f g h
CASTLE: 15
sc>
void PrintBoard()
{
char pieceName[] = "PNBRQKpnbrqk";
int i;
for (i = 0; i < 64; i++)
{
if ((i & 7) == 0)
{
printf(" +---+---+---+---+---+---+---+---+\n");
if (i <= 56)
{
printf(" %2d |", 8 - (((unsigned) i) >> 3));
}
}
if (piece[i] == EMPTY)
printf(" |");
else if (piece[i] == EPS_SQUARE)
printf(" * |");
else
{
printf(" %c |", pieceName[piece[i] + (color[i] == WHITE ? 0 : 6)]);
}
if ((i & 7) == 7)
printf("\n");
}
printf(" +---+---+---+---+---+---+---+---+\n a b c d e f g h\n");
}
Second Chess, by Emilio Diaz
Help
d: display board
MOVE: make a move (e.g. b1c3, a7a8q, e1g1)
on: force computer to move
quit: exit
sd n: set engine depth to n plies
undo: take back last move
sc> e2e4
+---+---+---+---+---+---+---+---+
8 | r | n | b | q | k | b | n | r |
+---+---+---+---+---+---+---+---+
7 | p | p | p | p | p | p | p | p |
+---+---+---+---+---+---+---+---+
6 | | | | | | | | |
+---+---+---+---+---+---+---+---+
5 | | | | | | | | |
+---+---+---+---+---+---+---+---+
4 | | | | | P | | | |
+---+---+---+---+---+---+---+---+
3 | | | | | * | | | |
+---+---+---+---+---+---+---+---+
2 | P | P | P | P | | P | P | P |
+---+---+---+---+---+---+---+---+
1 | R | N | B | Q | K | B | N | R |
+---+---+---+---+---+---+---+---+
a b c d e f g h
Search result: move = d7d5; nodes = 0, evaluations = 4074706, moves made = 45130
41, depth = 6, score = 0.85, time = 3.23s, knps = 0.00
+---+---+---+---+---+---+---+---+
8 | r | n | b | q | k | b | n | r |
+---+---+---+---+---+---+---+---+
7 | p | p | p | | p | p | p | p |
+---+---+---+---+---+---+---+---+
6 | | | | * | | | | |
+---+---+---+---+---+---+---+---+
5 | | | | p | | | | |
+---+---+---+---+---+---+---+---+
4 | | | | | P | | | |
+---+---+---+---+---+---+---+---+
3 | | | | | | | | |
+---+---+---+---+---+---+---+---+
2 | P | P | P | P | | P | P | P |
+---+---+---+---+---+---+---+---+
1 | R | N | B | Q | K | B | N | R |
+---+---+---+---+---+---+---+---+
a b c d e f g h
CASTLE: 15
sc>
if ((i & 7) == 0)
if (i <= 56)
{
printf(" %d |", 8 - (((unsigned) i) >> 3));
}
if ((i & 7) == 7)printf(" %c |", pieceName[piece[i] + (color[i] == WHITE ? 0 : 6)]);
Go to page :
1, 2, 3, 4, 5 
Related Topics
Permissions in this forum:
You cannot reply to topics in this forum