BMCP(JS)
Bare minimum chess program in pure javascript with UI, based on ideas taken from micro-Max by H.G. Muller
Play online
https://maksimkorzh.github.io/bmcp_js/chess.html
https://maksimkorzh.github.io/bmcp_js/
https://maksimkorzh.github.io/bmcp_js/bmcp_2.0.html
Dedication
I dedicate this chess program to my YouTube subscribers and all chess programming enthusiasts looking rather for minimalist implementation than playing strength.
YouTube tutorial
Features
- single source file of about 360 lines of javascript code
- 0x88 board representation
- three nested loops pseudo-legal move generator
- material evaluation + positional scores(stored in right part of 0x88 board)
- very basic alpha-beta search
- web interface
Limitations
- no 3 fold repetition detection
- no 50 move rule detection
Contributions
Any forks and contributions are appriciated. Feel free to contact me on any questions
via opening issues on github or by email <freesoft.for.people@gmail.com>
Useful resources
http://home.hccnet.nl/h.g.muller/max-src2.html - H. G. Muller's micro-Max tutorial
https://www.chessprogramming.org/Main_Page - chess programming wiki
http://talkchess.com/forum3/index.php - chess programming forum