diff --git a/README.md b/README.md index 066bf10..8fa47e9 100644 --- a/README.md +++ b/README.md @@ -63,11 +63,11 @@ Raphael is an extension of `cge::GamePlayer` which will use a negamax search tre - [x] Material cost (`v1.0.0+`) - [x] Piece-square tables (`v1.0.0+`) - [ ] Midgame King safety -- [ ] Endgame King proximity +- [x] Endgame King proximity (`v1.0.0+`) - [ ] Pawn structure **Move Ordering** - [x] Captures (`v1.0.0+`) -- [x] Promotion (`v1.0.0+`) +- [x] Promotions (`v1.0.0+`) - [ ] Checks -- [ ] Moving into attack +- [ ] Moving into attacks diff --git a/src/Raphael/Raphael_v1.0.0.hpp b/src/Raphael/Raphael_v1.0.0.hpp index 7ed8796..8d58bdd 100644 --- a/src/Raphael/Raphael_v1.0.0.hpp +++ b/src/Raphael/Raphael_v1.0.0.hpp @@ -171,7 +171,7 @@ class v1_0_0: public cge::GamePlayer { // enemy piece captured if (to!=12 && whiteturn==(to/6)) - score += abs(PVAL::VALS[to] + PVAL::VALS[from]) + 13; // small bias to encourage trades + score += abs(PVAL::VALS[to]) - abs(PVAL::VALS[from]) + 13; // small bias to encourage trades // promotion if (move.typeOf()==chess::Move::PROMOTION)