Show HN: Kings vs. Knight (minichessgames.com)

2 points by patrickdavey ↗ HN
This is a play website I built out with my 6 year old to show her that you can also build for the web (not just consume!). The idea was to make a bunch of small mini games (more coming) where you can learn some basic chess strategy. In this game you play a knight vs 3 kings who try to trap you. Try to survive for 15 moves.

Once you get bored of that, there's the classic radioactive pooping knights [1] ;). It's also wrapped up into an app [2] if that's better :)

Very keen for feedback :)

1. https://minichessgames.com/#/play/pooping-knights 2. https://play.google.com/store/apps/details?id=com.minichessg...

3 comments

[ 2.8 ms ] story [ 19.4 ms ] thread
Way cool game! Great job, easy to understand.
After a few tries I won, but the computer made mistakes. What is the AI doing?
It's just a basic minmax. The main mistake it makes is that if it can find an assured path to getting you it doesn't care how many moves in the future it is (even if it could win this turn).

That said, the audience is 6 year olds so I don't really want it to play perfectly!