Hacker News new | ask | show | jobs
by DrHuman 2913 days ago
Agreed. The only thing I could think to do would be look for pieces to capture in any given turn, but that would never get it to an end game condition. It's beyond my current capabilities to make a proper computer opponent, but it would be a good exercise.
1 comments

> look for pieces to capture in any given turn

Not as a general rule. If you're playing as the attacker, you don't always want to take defender pieces even if they're "free" - they're more useful boxing their own king in.

Yea, it's not even a good strategy really. Just the only thing that I felt like I could code that would be a step up from just making a random legal move.