skotz / volcanoes

Prototype for a new board game
4 stars 1 forks source link

Create virtual overlay #52

Open simondorfman opened 3 years ago

simondorfman commented 3 years ago

use an engine for every possible move and give it a value maybe even a heatmap overlay, showing the tiles x configuration away from that tile

This will help humans work backwards about which moves are stronger, then we can feed it back to the engine

Basically use the Evaluation number from the Engine Output.

Have the engine run indefinitely and keep updating the numbers on the overlay.

skotz commented 3 years ago

WIP

Extremely interesting.

image

image

image

image

skotz commented 3 years ago

As I'm playing the computer, it frequently happens that only a small handful of moves don't instantly lose (with best play).

simondorfman commented 3 years ago

This is super-interesting. I'm learning a lot, playing this way.

Couple things I noticed:

  1. one time, i saw it showing numbers on orange volcanoes, when it was blue's turn. so showing numbers on non-legal moves. i did not get a screenshot. maybe it was a one-off weird thing.
  2. Sometimes, I'm seeing numbers on dormant valcanoes (a non-legal move). screenshot below.
  3. Sometimes, some triangles stop showing numbers. same screenshot below shows that.
  4. i noticed the button to turn on this overlay, when you mouse-over it, it shows the wrong text, the same as the turn on highlighting button.

2020-11-14 01_51_27-Volcanoes

skotz commented 3 years ago

I don't suppose you have a way to reproduce that? I saw it once, but haven't figured out how to reliably do it again.

skotz commented 3 years ago

Actually I think I might have found it... For some reason I had a max iteration check in addition to the max time, so the analysis engine was terminating it's search and continuing the game as if it made the previous move it was evaluating.

Also, I'm adding a blue color to highlight the best move.

image

skotz commented 3 years ago

OK, I ended up fixing 5 different bugs for the overlay (which together should fix all 4 issues you mentioned above).

simondorfman commented 3 years ago

@skotz This is interesting. Blue is about to win after taking this turn, regardless of play, just from growth that's about to happen. This seems to confuse the AI. It thinks the two moves that would win before growth are the worst moves and everything else is the best move. In this case, it doesn't really matter, but maybe this illustrates some flaw in the logic somewhere...

BlueAboutToWin

Game transcript: N21 N09 G S32 N02 G S14 S28 G S30 N23 G S34 N08+ G S30+ N23 G N32 S33+ G N24+ S34 G S34 N24 G N24+ S21 G

skotz commented 3 years ago

Odd