Skip to content

Commit

Permalink
Fixed moveordering bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Orbital-Web committed Jul 19, 2023
1 parent 8941114 commit 7a8c557
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion src/Raphael/Raphael_v1.0.0.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 7a8c557

Please sign in to comment.