4 ms·
The unrealistic squares issue could be resolved by using legal moves for the piece. You could then evaluate the best for 1 move, 2 moves, up to e.g. 4 moves. Y
by rhdunn 2y ago
The unrealistic squares issue could be resolved by using legal moves for the piece. You could then evaluate the best for 1 move, 2 moves, up to e.g. 4 moves. You could also eliminate moves that visit a square already reached by a previous square to avoid duplicates.
It may be interesting to apply weights to reduce the score of squares many moves away. This would need to handle advantageous positions like check or checkmate.
- FeepingCreature 2y agoEvaluate the best, following valid moves, while ignoring your own pieces? Modelling your ability to create opportunities.