Hacker News new | ask | show | jobs
by gus_massa 749 days ago
> I need 3 or 4 colors, and in some cases I need 5

4 should be enough https://en.wikipedia.org/wiki/Four_color_theorem, but the alternating color in the border may be a problem. It's an interesting variant for nerdsniping. I guess it's possible to find a 4 color version but it may need too much backtraking.

---

> I invite you to try the tutorial that opens up when you load the demo

I didn't notice. It's linked at the top. You may add another link at the bottom for people like me that skip the headers. I'll try later.

---

About the new strategies, in human vs computer the knight forks are probably more OP than a bunch of blinkstackers with infinite APM. I'd trade a rock or even a queen for a knight just to give my brain some rest.

1 comments

Yes, someone else here mentioned the four color theorem, and that gave me a few ideas to improve that.

For the demo, it actually opens up when you start the game. But it's possible to skip it, which is totally fair, I should have expected that. I'll make the button more obvious, you're absolutely right that it's too hidden at the moment.

> knight forks are probably more OP than a bunch of blinkstackers with infinite APM

There are too many words I don't understand here to infer your meaning. The knight forks I know are when a knight threatens the king and another piece, but it looks like you mean something else. It could be related to what I mentioned with multiple diagonals, although that does not affect knights. And OP is probably not original poster. And I don't know what bindstackers or APM are (maybe Actions Per Minute?).

But it does look like you know more about chess than I do, so I'd love to absorb that knowledge.

> There are too many words I don't understand here to infer your meaning.

Sorry, I watched too many videos of StarCraft 2. OP means Over Powered, i.e. an strategy that is imposible to beat.

% years ago, Google made an AI bot to play StarCraft 2, and they made a demo against two proffesional players. The bot was "cheating" so the bot has vision of the whole map, and the bot could make as many "clicks with the mouse" as it wants (APM "action per minute").

The bot discovered an estrategy that was to create some robots with lasers "stalker" that can shoot from a distance, so many of them can atact the same unit. And use an upgrade "blinck" so they can teleport a short distance. So the bot could make all of them atack and pick the hurt units and teleport to the back so the heal while continue atacking.

A human can only manage 5 or 10 of them together, and there is a high chance of forgeting to send one to the back. The bot used like 30 of them, atacking from different angles.

There is a video with clips of the game. The most clear fight were the bot (in blue) use the trick is https://www.youtube.com/watch?v=6EQAsrfUIyo&t=510s

---

I tried the demo. The default player is too weak. It makes too many silly mistakes. The harder players is hard. I'll try again tomorrow.

(The bishops that bounce against the walls when there is a corner with 3 squares in the border are weird. Also, bishops are too easy to block by "walls". I like knights better.)

ah yes, that's a bit clearer now :) And I'm glad that I used to play starcraft before google decided to be involved.

> I tried the demo. The default player is too weak. It makes too many silly mistakes. The harder players is hard. I'll try again tomorrow.

Thank you for playing it. And that's great, that's more or less how I intended. I want players to start with a bit that isn't too intimidating, so that you can select a stronger one after if needed. And I'm glad that the stronger one gave you some challenge.

> The bishops that bounce against the walls when there is a corner with 3 squares in the border are weird

Currently, I define a diagonal as 2 tiles sharing a point and no edge. So by that definition, you will indeed see tiles on the edge which make up a diagonal. Definitely the type you can't see on a regular board. There could be an alternative definition where you need to have 2 other tiles that share edges with those first 2 tiles (as is the case almost everywhere inside the board), but I like to embrace the weirdness that this brings, so I keep the first one.

And yes, knights here are much harder to predict!

Feature request: Play again in the same checkboard. I got a checboard with two wall that blockd my bishops and the computer got a regular grid. I want revenge!!!

Feature request?: Symetric maps (like in Starcraft 2).

Does the bot run in the server or in my computer?

Feature request?: The hard bot takes too long to play. Can it make a ping when it plays. Does chess.com make a sound, or they decided it's a bad idea?

Thanks a lot for those feature requests, and most importantly for playing!

> Play again in the same checkboard

You can indeed get your revenge. When you start a new game, you can change several option. One of them is how the next board is selected. You can either:

- keep the same board - pick one from a curated list - or generate it randomly

By default, it is set on the 3rd option, but you then need to change it to the first one ("Same Board"), like in this video: https://imgur.com/a/sq8TDbx

> Symetric maps (like in Starcraft 2).

That's not possible at the moment, but someone else had the same request, so I'll have a think. I personally prefer boards that are very irregular and therefore asymmetric, but I appreciate it's subjective.

In the mean time, when you select a board the from the curated list, you can see 5 board types: "very irregular", "regular vs irregular", "almost regular", "regular" and "central pivot". This last one will have boards that are fairly symmetrical (but not completely).

> Does the bot run in the server or in my computer?

It runs on your computer. It's all javascript, running in workers. If the game has a decent success, I'd like to take the time to do a rewrite in a different language to get it in wasm, as it could run faster.

> Can it make a ping when it plays

You should hear the sound of the piece being moved, like in this video: https://imgur.com/a/XoWIJZb If you don't, the only reason I can think of is that the game audio has been turned off, via the button at the top right of the screen?

I'm not sure what chess.com does now, but I believe using a audio hint is really useful for exactly the reason you encountered. And it's even more needed when playing multiplayer without a timer, as your opponent could take even longer to play.

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.)