Hex with a twist
Generated at 23/07/2021, 17:08 from 1000 logged games.
Representative game (in the sense of being of mean length). Wherever you see the 'representative game' referred to in later sections, this is it!
Place a piece on the next letter in sequence ('H' then 'O' then 'X'). Connect opposite sides to win.
General comments:
Play: Combinatorial
Mechanism(s): Connection
BGG Entry | Hox |
---|---|
BGG Rating | null |
#Voters | null |
SD | null |
BGG Weight | null |
#Voters | null |
Year | null |
Size (bytes) | 28592 |
---|---|
Reference Size | 10293 |
Ratio | 2.78 |
Ai Ai calculates the size of the implementation, and compares it to the Ai Ai implementation of the simplest possible game (which just fills the board). Note that this estimate may include some graphics and heuristics code as well as the game logic. See the wikipedia entry for more details.
Playouts per second | 46482.23 (21.51µs/playout) |
---|---|
Reference Size | 1892147.59 (0.53µs/playout) |
Ratio (low is good) | 40.71 |
Tavener complexity: the heat generated by playing every possible instance of a game with a perfectly efficient programme. Since this is not possible to calculate, Ai Ai calculates the number of random playouts per second and compares it to the fastest non-trivial Ai Ai game (Connect 4). This ratio gives a practical indication of how complex the game is. Combine this with the computational state space, and you can get an idea of how strong the default (MCTS-based) AI will be.
Label | Its/s | SD | Nodes/s | SD | Game length | SD |
---|---|---|---|---|---|---|
Random playout | 68,269 | 865 | 7,332,975 | 92,434 | 107 | 11 |
search.UCT | 63,572 | 4,525 | 44 | 11 |
Random: 10 second warmup for the hotspot compiler. 100 trials of 1000ms each.
Other: 100 playouts, means calculated over the first 5 moves only to avoid distortion due to speedup at end of game.
Rotation (Half turn) lost each game as expected.
Reflection (X axis) lost each game as expected.
Reflection (Y axis) lost each game as expected.
Copy last move lost each game as expected.
Mirroring strategies attempt to copy the previous move. On first move, they will attempt to play in the centre. If neither of these are possible, they will pick a random move. Each entry represents a different form of copying; direct copy, reflection in either the X or Y axis, half-turn rotation.
1: Player 1 (Black) win % | 53.90±3.10 | Includes draws = 50% |
---|---|---|
2: Player 2 (White) win % | 46.10±3.07 | Includes draws = 50% |
Draw % | 0.00 | Percentage of games where all players draw. |
Decisive % | 100.00 | Percentage of games with a single winner. |
Samples | 1000 | Quantity of logged games played |
Note: that win/loss statistics may vary depending on thinking time (horizon effect, etc.), bad heuristics, bugs, and other factors, so should be taken with a pinch of salt. (Given perfect play, any game of pure skill will always end in the same result.)
Note: Ai Ai differentiates between states where all players draw or win or lose; this is mostly to support cooperative games.
Match | AI | Strong Wins | Draws | Strong Losses | #Games | Strong Score | p1 Win% | Draw% | p2 Win% | Game Length |
---|---|---|---|---|---|---|---|---|---|---|
0 | Random | |||||||||
1 | UCT (its=2) | 631 | 0 | 340 | 971 | 0.6193 <= 0.6498 <= 0.6792 | 50.36 | 0.00 | 49.64 | 105.76 |
4 | UCT (its=5) | 631 | 0 | 365 | 996 | 0.6031 <= 0.6335 <= 0.6629 | 50.70 | 0.00 | 49.30 | 104.19 |
9 | UCT (its=10) | 631 | 0 | 368 | 999 | 0.6013 <= 0.6316 <= 0.6610 | 49.75 | 0.00 | 50.25 | 102.08 |
14 | UCT (its=15) | 631 | 0 | 346 | 977 | 0.6153 <= 0.6459 <= 0.6752 | 47.70 | 0.00 | 52.30 | 100.13 |
20 | UCT (its=21) | 631 | 0 | 312 | 943 | 0.6385 <= 0.6691 <= 0.6984 | 48.89 | 0.00 | 51.11 | 97.83 |
26 | UCT (its=27) | 631 | 0 | 367 | 998 | 0.6019 <= 0.6323 <= 0.6616 | 46.69 | 0.00 | 53.31 | 95.80 |
35 | UCT (its=36) | 631 | 0 | 319 | 950 | 0.6336 <= 0.6642 <= 0.6935 | 49.05 | 0.00 | 50.95 | 92.92 |
41 | UCT (its=111) | 631 | 0 | 69 | 700 | 0.8771 <= 0.9014 <= 0.9214 | 51.29 | 0.00 | 48.71 | 83.72 |
42 | UCT (its=303) | 631 | 0 | 90 | 721 | 0.8490 <= 0.8752 <= 0.8973 | 51.32 | 0.00 | 48.68 | 71.08 |
43 | UCT (its=824) | 631 | 0 | 58 | 689 | 0.8927 <= 0.9158 <= 0.9343 | 49.93 | 0.00 | 50.07 | 58.02 |
44 | UCT (its=2239) | 631 | 0 | 52 | 683 | 0.9015 <= 0.9239 <= 0.9415 | 50.51 | 0.00 | 49.49 | 46.73 |
45 | UCT (its=6085) | 631 | 0 | 88 | 719 | 0.8516 <= 0.8776 <= 0.8996 | 51.04 | 0.00 | 48.96 | 40.35 |
46 | UCT (its=6085) | 512 | 0 | 488 | 1000 | 0.4810 <= 0.5120 <= 0.5429 | 50.60 | 0.00 | 49.40 | 43.33 |
Search for levels ended: time limit reached.
Level of Play: Strong beats Weak 60% of the time (lower bound with 95% confidence).
Draw%, p1 win% and game length may give some indication of trends as AI strength increases.
This chart shows the win(green)/draw(black)/loss(red) percentages, as UCT play strength increases. Note that for most games, the top playing strength show here will be distinctly below human standard.
Game length | 46.96 | |
---|---|---|
Branching factor | 33.05 |   |
Complexity | 10^70.79 | Based on game length and branching factor |
Samples | 1000 | Quantity of logged games played |
Computational complexity (where present) is an estimate of the game tree reachable through actual play. For each game in turn, Ai Ai marks the positions reached in a hashtable, then counts the number of new moves added to the table. Once all moves are applied, it treats this sequence as a geometric progression and calculates the sum as n-> infinity.
Distinct actions | 122 | Number of distinct moves (e.g. "e4") regardless of position in game tree |
---|---|---|
Good moves | 60 | A good move is selected by the AI more than the average |
Bad moves | 62 | A bad move is selected by the AI less than the average |
Response distance | 4.22 | Mean distance between move and response; a low value relative to the board size may mean a game is tactical rather than strategic. |
Samples | 1000 | Quantity of logged games played |
A mean of 38.76% of board locations were used per game.
Colour and size show the frequency of visits.
Game length frequencies.
Mean | 46.96 |
---|---|
Mode | [41, 45, 48] |
Median | 46.0 |
This chart is based on a single representative* playout, and gives a feel for the change in material over the course of a game. (* Representative in the sense that it is close to the mean length.)
Table: branching factor per turn, based on a single representative* game. (* Representative in the sense that it is close to the mean game length.)
This chart is based on a single representative* game, and gives a feel for the types of moves available throughout that game. (* Representative in the sense that it is close to the mean game length.)
Red: removal, Black: move, Blue: Add, Grey: pass, Purple: swap sides, Brown: other.
This chart shows the best move value with respect to the active player; the orange line represents the value of doing nothing (null move).
The lead changed on 17% of the game turns. Ai Ai found 1 critical turn (turns with only one good option).
This chart shows the relative temperature of all moves each turn. Colour range: black (worst), red, orange(even), yellow, white(best).
Measure | All players | Player 1 | Player 2 |
---|---|---|---|
Mean % of effective moves | 25.60 | 18.17 | 33.36 |
Mean no. of effective moves | 8.68 | 6.71 | 10.74 |
Effective game space | 10^29.83 | 10^11.67 | 10^18.16 |
Mean % of good moves | 31.12 | 51.72 | 9.61 |
Mean no. of good moves | 9.70 | 15.83 | 3.30 |
Good move game space | 10^26.87 | 10^21.30 | 10^5.57 |
These figures were calculated over a single game.
An effective move is one with score 0.1 of the best move (including the best move). -1 (loss) <= score <= 1 (win)
A good move has a score > 0. Note that when there are no good moves, an multiplier of 1 is used for the game space calculation.
Measure | Value | Description |
---|---|---|
Hot turns | 93.62% | A hot turn is one where making a move is better than doing nothing. |
Momentum | 27.66% | % of turns where a player improved their score. |
Correction | 31.91% | % of turns where the score headed back towards equality. |
Depth | 3.01% | Difference in evaluation between a short and long search. |
Drama | 1.02% | How much the winner was behind before their final victory. |
Foulup Factor | 14.89% | Moves that looked better than the best move after a short search. |
Surprising turns | 0.00% | Turns that looked bad after a short search, but good after a long one. |
Last lead change | 57.45% | Distance through game when the lead changed for the last time. |
Decisiveness | 19.15% | Distance from the result being known to the end of the game. |
These figures were calculated over a single representative* game, and based on the measures of quality described in "Automatic Generation and Evaluation of Recombination Games" (Cameron Browne, 2007). (* Representative, in the sense that it is close to the mean game length.)
Colour shows the frequency of swaps on turn 2 if this move is played on turn 1; black < red < yellow < white.
Based on 100 trials/move at 0.1s thinking time each.
Moves | Animation |
---|---|
f6,Swap,e9,d9 | |
k5,k6,f2 | |
a7,a2,g3 | |
i9,k9,c2 | |
g10,g5,h7 | |
h11,i1,c8 | |
j4,h6,e10 | |
f6,Swap,e9 | |
i6,Swap,j2 | |
e8,Swap,g5 | |
e5,Swap,d8 |
Colour shows the success ratio of this play over the first 10moves; black < red < yellow < white.
Size shows the frequency this move is played.
Colour shows the frequency of swaps on turn 2 if this move is played on turn 1; black < red < yellow < white.
Size shows the frequency this move is played.
0 | 1 | 2 | 3 | 4 |
---|---|---|---|---|
1 | 41 | 1722 | 68962 | 2758562 |
Note: most games do not take board rotation and reflection into consideration.
Multi-part turns could be treated as the same or different depth depending on the implementation.
Counts to depth N include all moves reachable at lower depths.
Inaccuracies may also exist due to hash collisions, but Ai Ai uses 64-bit hashes so these will be a very small fraction of a percentage point.
No solutions found to depth 4.
Puzzle | Solution |
---|---|
Player 1 (Black) to win in 11 moves | |
Player 1 (White) to win in 7 moves | |
Player 1 (Black) to win in 7 moves | |
Player 2 (White) to win in 7 moves | |
Player 1 (Black) to win in 7 moves | |
Player 1 (Black) to win in 7 moves | |
Player 2 (White) to win in 7 moves | |
Player 1 (Black) to win in 7 moves | |
Player 1 (White) to win in 7 moves | |
Player 2 (Black) to win in 5 moves | |
Player 1 (Black) to win in 5 moves | |
Player 2 (White) to win in 5 moves |
Weak puzzle selection criteria are in place; the first move may not be unique.