Full Report for Unify by Stephen Tavener

Full Report for Unify by Stephen Tavener

A simple unification game.

Generated at 2023-06-22, 04:10 from 1000 logged games.

Rules

Representative game (in the sense of being of mean length). Wherever you see the 'representative game' referred to in later sections, this is it!

Contract phase

Player 1 places any number of neutral (Grey) pieces on the board.

Player 2 chooses a role: Unify (Black) or Divide (White).

Play

Players alternate playing stones, starting with Divide.

If Unify connects all neutral stones, via stones of their colour, they win.

If unification becomes impossible, Divide wins.

Miscellaneous

General comments:

Play: Combinatorial

Mechanism(s): Connection

BGG Stats

BGG EntryUnify
BGG Ratingnull
#Votersnull
SDnull
BGG Weightnull
#Votersnull
Yearnull

Kolomogorov Complexity Analysis

Size (bytes)29088
Reference Size10673
Ratio2.73

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.

Playout Complexity Estimate

Playouts per second92137.88 (10.85µs/playout)
Reference Size557320.40 (1.79µs/playout)
Ratio (low is good)6.05

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.

State Space Complexity

% new positions/bucket

State Space Complexity67108019 
State Space Complexity bounds64154612 < 67108019 < ∞ 
State Space Complexity (log 10)7.83 
State Space Complexity bounds (log 10)7.81 <= 7.83 <= ∞ 
Samples1316368 
Confidence0.000: totally unreliable, 100: perfect

State space complexity (where present) is an estimate of the number of distinct game tree reachable through actual play. Over a series of random games, Ai Ai checks each position to see if it is new, or a repeat of a previous position and keeps a total for each game. As the number of games increase, the quantity of new positions seen per game decreases. These games are then partitioned into a number of buckets, and if certain conditions are met, Ai Ai treats the number in each bucket as the start of a strictly decreasing geometric sequence and sums it to estimate the total state space. The accuracy is calculated as 1-[end bucket count]/[starting bucklet count]

Playout/Search Speed

LabelIts/sSDNodes/sSDGame lengthSD
Random playout119,0194416,269,48722,741538
search.UCT60,7492,311599

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.

Mirroring Strategies

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.

Win % By Player (Bias)

1: Player 1 win %33.40±2.85Includes draws = 50%
2: Player 2 win %66.60±2.98Includes draws = 50%
Draw %0.00Percentage of games where all players draw.
Decisive %100.00Percentage of games with a single winner.
Samples1000Quantity 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.

UCT Skill Chains

MatchAIStrong WinsDrawsStrong Losses#GamesStrong Scorep1 Win%Draw%p2 Win%Game Length
0Random         
1UCT (its=2)63102819120.6612 <= 0.6919 <= 0.721034.540.0065.4652.14
14UCT (its=15)63103279580.6281 <= 0.6587 <= 0.688025.470.0074.5351.51
23UCT (its=24)63103549850.6102 <= 0.6406 <= 0.670024.570.0075.4351.99
42UCT (its=43)63103469770.6153 <= 0.6459 <= 0.675219.650.0080.3553.55
65
UCT (its=9053)
522
0
472
994
0.4941 <= 0.5252 <= 0.5560
2.52
0.00
97.48
55.65
66
UCT (its=9053)
504
0
496
1000
0.4731 <= 0.5040 <= 0.5349
2.00
0.00
98.00
61.50

Search for levels ended. Close to theoretical value: player 2 wins.

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.

1st Player Win Ratios by Playing Strength

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.

Complexity

Game length32.61 
Branching factor45.15 
Complexity10^52.46Based on game length and branching factor
Computational Complexity10^6.74Sample quality (100 best): 27.21
Samples1000Quantity 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.

Move Classification

Board Size61Quantity of distinct board cells
Distinct actions64Quantity of distinct moves (e.g. "e4") regardless of position in game tree
Killer moves1A 'killer' move is selected by the AI more than 50% of the time
Killers: Choose White (Divide)
Good moves39A good move is selected by the AI more than the average
Bad moves25A bad move is selected by the AI less than the average
Response distance%34.91%Distance from move to response / maximum board distance; a low value suggests a game is tactical rather than strategic.
Samples1000Quantity of logged games played

Board Coverage

A mean of 50.17% of board locations were used per game.

Colour and size show the frequency of visits.

Game Length

Game length frequencies.

Mean32.61
Mode[32]
Median32.0

Change in Material Per Turn

Mean change in material/round0.85Complete round of play (all players)

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

Actions/turn

Table: branching factor per turn, based on a single representative* game. (* Representative in the sense that it is close to the mean game length.)

Action Types per Turn

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.

Openings

MovesAnimation
h2,f3,i3
h2,b6,d9
h2,d9,b6
c3,e6,c6
d3,d4,e1
f3,h2,i3
d4,d3,e1
g4,d7,c4
h4,e9,i2
a6,b6,b8
a6,b8,b6
b6,h2,d9

Opening Heatmap

Colour shows the success ratio of this play over the first 10moves; black < red < yellow < white.

Size shows the frequency this move is played.

Unique Positions Reachable at Depth

012345
1611891378815597366508883

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.

Shortest Game(s)

No solutions found to depth 5.

Puzzles

PuzzleSolution

Player 2/Divide/White to win in 11 moves

Player 2/Divide/White to win in 9 moves

Player 2/Divide/White to win in 9 moves

Player 2/Divide/White to win in 7 moves

Player 1/Divide/White to win in 7 moves

Player 1/Divide/White to win in 3 moves

Player 1/Divide/White to win in 5 moves

Player 2/Divide/White to win in 5 moves

Player 1/Divide/White to win in 5 moves

Player 2/Divide/White to win in 5 moves

Player 2/Divide/White to win in 5 moves

Player 2/Divide/White to win in 5 moves

Weak puzzle selection criteria are in place; the first move may not be unique.