A complete 2000 lines of code engine
Posted: Sat Oct 20, 2018 11:30 am
Being a little tired of finding bugs in Weini, I started a week-end project last sunday. The idea was the following : "starting from a blank page, how far can I go in 2 days now I know a little more on chess programming".
An expected side effect was to get a simple engine to experiment with and maybe find some Weini's bug in it.
It is a mailbox negamax (pvs) engine, with classic pruning trick, a double bucket TT and only PST eval.
After 2 days the engine was working in xboard, validated in perft, finds mate in 8 from a collection I often use and was able to always win against me at fast TC (but loses against fairy-max).
Since then I corrected some stuff but the engine is still quite bad, but working
Here's the source code : https://github.com/tryingsomestuff/Mini ... r/minic.cc
Some of you probably can easily spot very bad things that makes it so weak.
Maybe, as a 2000 lines c++ code, it may also become an entry point for beginners. I can open the repository for write if some of you want to contribute.
An expected side effect was to get a simple engine to experiment with and maybe find some Weini's bug in it.
It is a mailbox negamax (pvs) engine, with classic pruning trick, a double bucket TT and only PST eval.
After 2 days the engine was working in xboard, validated in perft, finds mate in 8 from a collection I often use and was able to always win against me at fast TC (but loses against fairy-max).
Since then I corrected some stuff but the engine is still quite bad, but working
Here's the source code : https://github.com/tryingsomestuff/Mini ... r/minic.cc
Some of you probably can easily spot very bad things that makes it so weak.
Maybe, as a 2000 lines c++ code, it may also become an entry point for beginners. I can open the repository for write if some of you want to contribute.