Giter Site home page Giter Site logo

gunshippenguin / shallow-blue Goto Github PK

View Code? Open in Web Editor NEW
66.0 8.0 12.0 1.03 MB

UCI Chess engine written in C++11

License: MIT License

Makefile 0.19% C++ 99.31% Python 0.39% C 0.02% Shell 0.10%
chess-engine artificial-intelligence game-theory bitboards principal-variation-search minimax

shallow-blue's People

Contributors

gunshippenguin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

shallow-blue's Issues

Chess logos for Shallow Blue

shallow blue 1
shallow blue 2
shallow blue 3
shallow blue 4
shallow blue 5
shallow blue 6
cf. uploaded chess logos for Shallow Blue ;
I suggest to download the freeware Photofiltre http://photofiltre.free.fr/ -and you can easily convert the format into Bitmap and a maximum size of 100x50 that can be used with Arena/ChessGUI/WinBoard or ChessBase (Fritz-Interface)

Movegen generates moves for pinned pieces

1. d4 Nf6 2. c4 e6 3. Nc3 Bb4 4. e3 O-O 5. Ne2 d5 6. a3 Be7 7. cxd5 Nxd5 8. g3
Nxc3 9. Nxc3 c5 10. dxc5 Qxd1+ 11. Nxd1 Bxc5 12. b4 Be7 13. Nc3 Bd7 14. Be2 a6
15. Bb2 Bc6 16. f3 Rd8 17. Kf2 Rd2 18. Rab1 Nd7 19. Rhd1 Rxd1 20. Rxd1 Bf6 21.
h4 Nb6 22. Rd2 Be7 23. e4 f5 24. e5 a5 25. Rd4 axb4 26. axb4 Na4 27. Nxa4 Rxa4
28. Bc3 Kf7 29. Bc4 b5 30. Be2 h6 31. h5 Ra3 32. Be1 Ra4 33. Bc3 Kg8 34. f4 Kf7
35. Ke1 Ra3 36. Kd2 Ra2+ 37. Kd1 Kf8 38. Ke1 Rc2 39. Bd2 Rb2 40. Kf2 Ra2 41.
Kf1 Ke8 42. Bc3 Ra3 43. Be1 Ra4 44. Bc3 Kf8 45. Ke1 Ra2 46. Rd3 Kf7 47. Rd4 g5
48. hxg6+ Kxg6 49. Rd1 h5 50. Kf1 h4 51. gxh4 Bxh4 52. Rd2 Ra3 53. Rc2 Be4 54.
Rc1 Ra2 55. Bd4 Bg3 56. Be3 Rb2 57. Bxb5 Rxb4 58. Be8+ Kh6 59. Rc3 Rb1+ 60. Ke2
Re1+ 61. Kd2 Rh1 62. Rc8 Rh2+ 63. Kc1 Be1 64. Bb5 Kg6 65. Be8+ Kh7 66. Bc6 Re2
67. Rc7+ Kh6 1/2-1/2

The move Ne2 can only be g1e2 because the knight on c3 is pinned to the king by the bishop. Movegen still generates the move c3e2.

Probably not too bad for the engine as even at low depth it won't generate moves that hang the king.

Shallow Blue Chess for Windows

Hello Gunship Penguin,

I noticed on GitHub a new version of Shallow Blue . but without Windows binaries (I possess Windows 7 SP1 32-/64 bit).

Could you create a working Shallow Blue edition for Windows systems, please? My computer (ivy-bridge-22nm structure) supports the features AVX, POPCNT of course but not .BMI2 (=Haswell component).

By the way: https://drive.google.com/file/d/0B-PM8aD2-9I4ZUZYRWQ5blM0bWc/view is another chess engine by Dmitry Sultanov that is called "Shallow2" too. https://github.com/dimock/chess

Best wishes,

`make` fails

xyene@lycan:~/chess$ make
mkdir obj
g++ -Wall -std=c++11 -g -c -o obj/zkey.o src/zkey.cc
g++ -Wall -std=c++11 -g -c -o obj/transptable.o src/transptable.cc
g++ -Wall -std=c++11 -g -c -o obj/board.o src/board.cc
g++ -Wall -std=c++11 -g -c -o obj/cmove.o src/cmove.cc
g++ -Wall -std=c++11 -g -c -o obj/psquaretable.o src/psquaretable.cc
g++ -Wall -std=c++11 -g -c -o obj/movegen.o src/movegen.cc
g++ -Wall -std=c++11 -g -c -o obj/main.o src/main.cc
g++ -Wall -std=c++11 -g -c -o obj/raytable.o src/raytable.cc
g++ -Wall -std=c++11 -g -c -o obj/search.o src/search.cc
src/search.cc: In member function ‘CMove Search::rootMax(const Board&, int)’:
src/search.cc:64:49: error: no matching function for call to ‘TranspTable::set(ZKey, int&, int&)’
       _tt.set(movedBoard.getZKey(), score, depth);
                                                 ^
In file included from src/search.h:8:0,
                 from src/search.cc:2:
src/transptable.h:16:8: note: candidate: void TranspTable::set(ZKey, int, int, TranspTable::Flag)
   void set(ZKey, int, int, Flag);
        ^
src/transptable.h:16:8: note:   candidate expects 4 arguments, 3 provided
src/search.cc:73:38: error: no matching function for call to ‘TranspTable::set(ZKey, int&, int&)’
   _tt.set(board.getZKey(), max, depth);
                                      ^
In file included from src/search.h:8:0,
                 from src/search.cc:2:
src/transptable.h:16:8: note: candidate: void TranspTable::set(ZKey, int, int, TranspTable::Flag)
   void set(ZKey, int, int, Flag);
        ^
src/transptable.h:16:8: note:   candidate expects 4 arguments, 3 provided
src/search.cc: In member function ‘int Search::negaMax(const Board&, int, int, int)’:
src/search.cc:91:49: error: no matching function for call to ‘TranspTable::set(ZKey, int&, int&)’
       _tt.set(movedBoard.getZKey(), score, depth);
                                                 ^
In file included from src/search.h:8:0,
                 from src/search.cc:2:
src/transptable.h:16:8: note: candidate: void TranspTable::set(ZKey, int, int, TranspTable::Flag)
   void set(ZKey, int, int, Flag);
        ^
src/transptable.h:16:8: note:   candidate expects 4 arguments, 3 provided
Makefile:29: recipe for target 'obj/search.o' failed
make: *** [obj/search.o] Error 1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.