Hacker News new | ask | show | jobs
by gus_massa 746 days ago
I won against the hard bot :)

Add a confirmation to the resign button!

Can you add a permalink to share the game with my friends so they can see the replay?

(In one moment, the bot atacked my rock with a bishop, and the rock was totaly traped in the corner between the pawn and the knight :(. But after a few minutes of thinking, I used a magical curved path of my far bishop to stop the atack. It was very surprising to be able to save the rock.)

Permalikt to checkboard may be nice too.

When the bot is hopeless (like a rock and two knight down) it makes too many silly moves. Probably all the moves have 0% chance of wining, so it can't pick the best one. Perhaps a counting the pieces heuristic may at least avoid the very silly moves.

(In one moment, the bot could eat a knight, but it just moved the king away instead.)

1 comments

> I won against the hard bot :)

Congrats! Although I wish it had given you an even harder time!

> Add a confirmation to the resign button!

Yes, you're right, it is much needed.

> Can you add a permalink to share the game with my friends so they can see the replay?

Yes, that would indeed be very useful. I'll see how I can make it work. And maybe there is a way to have it so that it works also for the iOS and steam versions.

> Permalikt to checkboard may be nice too.

Absolutely. That's on my list. (although bear in mind that the demo only has 2 different boards)

> I used a magical curved path of my far bishop to stop the atack. It was very surprising to be able to save the rock

Nice. Thanks a lot for sharing this one. Those are indeed the great reversal moments, I love those.

> When the bot is hopeless (like a rock and two knight down) it makes too many silly moves.

There are many factors that drive how the bot behaves. There clearly is room for improvement, although that will probably need a rewrite in wasm, and most likely need someone who has more experience at this than me. Although I could only hire someone if it makes financial sense. Something I keep thinking about.

And I'm still going through some of the feedback I received, so expect an update in the week or so.