Monday, July 02, 2012

Crafty vs GNUChess using Knights

Recently I installed Knights game into my Kubuntu, and noticed I could play the computer against itself. The available two engines from Knights was Crafty and GNUChess. (Well we have to install Crafty along with Knights, GNUChess comes as a dependency to Knights).
apt-get install knights crafty
 
apt-cache show crafty 
Description-en: state-of-the-art chess engine, compatible with xboard Crafty is the strong chess program played on ICC. It uses all of the search algorithms you have probably read about and performs better than gnu-chess in most positions. It has a reasonable set of features to use, and offers a great starting point to try your own new search extensions.

Well, after reading the above description, I guessed GNUChess would stand no chance against Crafty. Here how the game went. Actually Crafty WON.
Crafty was the white player. 



Few things to consider here is how well, knights has use the two engines. The console for each player showed some interesting information of their capabilities.
GNU Chess 5.07
Adjusting HashSize to 1024 slots
Transposition table:  Entries=1K Size=48K
Pawn hash table: Entries=0K Size=32K
While Crafty displayed,
Machine is NUMA, 1 nodes (2 cpus/node)
unable to open book file [./book.bin].
book is disabled
unable to open book file [./books.bin].
Crafty v23.4 (1 cpus)
Below are the moves if you fancy going through it. 
 
       
1. b1c3
1. ... g8f6
2. e2e4
2. ... d7d6
3. g1f3
3. ... b8c6
4. d2d4
4. ... g7g6
5. d4d5
5. ... c6b8
6. c1g5
6. ... c8g4
7. h2h3
7. ... g4f3
8. d1f3
8. ... b8d7
9. e1c1
9. ... f8g7
10. f1b5
10. ... e8g8
11. f3e3
11. ... a7a6
12. b5e2
12. ... b7b5
13. f2f4
13. ... b5b4
14. c3a4
14. ... d8e8
15. e2c4
15. ... e7e5
16. d5e6
16. ... f7e6
17. f4f5
17. ... d6d5
18. e4d5
18. ... e6d5
19. d1d5
19. ... f6d5
20. c4d5
20. ... g8h8
21. d5a8
21. ... e8a8
22. h1d1
22. ... f8e8
23. e3d2
23. ... d7f6
24. g5f6
24. ... g7f6
25. f5g6
25. ... e8d8
26. d2f4
26. ... d8d1
27. c1d1
27. ... a8d5
28. d1e1
28. ... d5e6
29. e1f1
29. ... f6e7
30. f4d4
30. ... h8g8
31. g6h7
31. ... g8h7
32. d4d3
32. ... h7h6
33. b2b3
33. ... a6a5
34. f1f2
34. ... e6f6
35. d3f3
35. ... f6d6
36. g2g3
36. ... e7g5
37. c2c4
37. ... d6d2
38. f3e2
38. ... d2d4
39. f2f3
39. ... d4f6
40. f3g2
40. ... f6d4
41. a4b2
41. ... h6g7
42. b2d3
42. ... g7f7
43. h3h4
43. ... g5e3
44. g3g4
44. ... f7f8
45. g4g5
45. ... c7c6
46. g2f3
46. ... e3g1
47. d3e5
47. ... c6c5
48. e2e4
48. ... d4f2
49. f3g4
49. ... f8g8
50. e4d5
50. ... g8g7
51. d5b7
51. ... g7g8
52. h4h5
52. ... f2e2
53. g4f5
53. ... e2e5
54. f5e5
54. ... g1d4
55. e5e6
55. ... d4g7
56. b7f7
56. ... g8h8
57. g5g6
57. ... a5a4
58. f7e8
58. ... g7f8