apotapov / tafl

Android implementation of a Tafl game
Apache License 2.0
2 stars 0 forks source link

AI: Vulnerability Penalty for Material Balance #48

Closed ghost closed 10 years ago

ghost commented 10 years ago

Do what the JS implementation did for a heuristic one-move lookahead for material balance. We should try it. It's one of the easiest "look ahead" heuristics.

If a piece can be capturable by opponent (as the board is now (called "null move")), then subtract 20-30% off Material Value for that piece. For example, if piece would have value = 10, and it can be captured by opponent on one side, it's value = 10 - 2. If it can be captured on 2 sides, then it's value = 10 - 2 - 2.

apotapov commented 10 years ago

Doing that already. :)