Full Report for Flipping by Stephen Tavener

Full Report for Flipping by Stephen Tavener

Make a line... with the same side showing!

Generated at 2025-05-06, 13:38 from 1094 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!

Equipment

Play

Each turn, starting with Silver, place a coin in an empty space with Heads showing; then flip all adjacent coins to their opposite sides.

Goal

If, at the end of your turn, you have:

... then you win.

If the board is full and no one has won then the game is a draw.

Swap rule

To offset any first player advantage, play with the following swap rule:

Simulations in Ai Ai suggest that the spaces 1 away from the edge are good swap candidates.

            x   x   x   x   x   x
x ? ? ? ? ? x
x ? s s s s ? x
x ? s s s s s ? x
x ? s s s s s s ? x
x ? s s s s s s s ? x
x ? s s s s s s ? x
x ? s s s s s ? x
x ? s s s s ? x
x ? ? ? ? ? x
x x x x x x

s=swap, x=don't swap, ?=balanced

Miscellaneous

General comments:

Play: Combinatorial

Family: Combinatorial 2020

Mechanism(s): Capture,Movement,Race,Stacking

BGG Stats

BGG EntryFlipping
BGG Ratingnull
#Votersnull
SDnull
BGG Weightnull
#Votersnull
Yearnull

Kolomogorov Complexity Analysis

Size (bytes)27112
Reference Size10915
Ratio2.48

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 second28259.13 (35.39µs/playout)
Reference Size917599.56 (1.09µs/playout)
Ratio (low is good)32.47

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 Complexity2442133639 
State Space Complexity bounds115077731 < 2442133639 < ∞ 
State Space Complexity (log 10)9.39 
State Space Complexity bounds (log 10)8.06 <= 9.39 <= ∞ 
Samples1106111 
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 playout80,8404334,748,06924,7045914
search.UCTNaNNaN00

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: Silver win %39.58±2.86Includes draws = 50%
2: Gold win %60.42±2.93Includes draws = 50%
Draw %6.58Percentage of games where all players draw.
Decisive %93.42Percentage of games with a single winner.
Samples1094Quantity 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         
2UCT (its=3)63013409710.6188 <= 0.6493 <= 0.678749.540.1050.3656.26
32UCT (its=33)63103619920.6057 <= 0.6361 <= 0.665552.320.0047.6853.17
45UCT (its=46)63103599900.6069 <= 0.6374 <= 0.666748.080.0051.9251.01
57UCT (its=58)63103579880.6082 <= 0.6387 <= 0.668050.710.0049.2948.63
69UCT (its=70)63103579880.6082 <= 0.6387 <= 0.668049.090.0050.9145.62
82UCT (its=83)631036910000.6006 <= 0.6310 <= 0.660450.300.0049.7041.60
91UCT (its=247)63101748050.7541 <= 0.7839 <= 0.810947.700.0052.3032.28
92UCT (its=672)63102008310.7291 <= 0.7593 <= 0.787252.110.0047.8923.71
93UCT (its=1828)63102018320.7282 <= 0.7584 <= 0.786353.000.0047.0018.93
94UCT (its=4968)63101788090.7501 <= 0.7800 <= 0.807254.140.0045.8615.88
95UCT (its=13506)63101617920.7673 <= 0.7967 <= 0.823353.160.0046.8414.71
96
UCT (its=13506)
497
0
503
1000
0.4661 <= 0.4970 <= 0.5279
52.70
0.00
47.30
15.92

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.

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 length21.04 
Branching factor81.35 
Complexity10^39.85Based on game length and branching factor
Samples1094Quantity 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 Size91Quantity of distinct board cells
Distinct actions92Quantity of distinct moves (e.g. "e4") regardless of position in game tree
Good moves42A good move is selected by the AI more than the average
Bad moves50A bad move is selected by the AI less than the average
Response distance%34.63%Distance from move to response / maximum board distance; a low value suggests a game is tactical rather than strategic.
Samples1094Quantity of logged games played

Board Coverage

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

Colour and size show the frequency of visits.

Game Length

Game length frequencies.

Mean21.04
Mode[16]
Median18.0

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.

Swap Heatmap (Full Scan)

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.

Openings

MovesAnimation
i3,k2,j2,g4,j3,h3,k1,i2,k3,c4
i3,h3,j2,g4,f4,k2,k1,f1,k4,e5
i3,g4,j3,h3,f4,k2,k4,e5,k3,c4
k3,a8,d4,j5,k4,i5,h5,j4,f6,j3
d4,a8,k3,j5,k4,i5,h5,j4,f6,j3
i3,k2,j2,g4,j3,h3,k1,i2,k3
i3,h3,j2,g4,f4,k2,k1,f1,k4
i3,g4,j3,h3,f4,k2,k3,c4,k4
i3,g4,j3,h3,f4,k2,k4,e5,k3
k3,a8,d4,j5,k4,i5,h5,j4,f6
d4,a8,k3,j5,k4,i5,h5,j4,f6
b5,d10,j5,i6,h7,a6,f7,k5,b6

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.

Swap Heatmap (Historic)

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.

Unique Positions Reachable at Depth

01234
191837244186622504616

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

Puzzles

PuzzleSolution

Black to win in 7 moves

Black to win in 7 moves

White to win in 7 moves

Black to win in 7 moves

Black to win in 7 moves

Black to win in 5 moves

Black to win in 5 moves

Black to win in 5 moves

Black to win in 5 moves

Black to win in 5 moves

Black to win in 5 moves

Black to win in 5 moves

Selection criteria: first move must be unique, and not forced to avoid losing. Beyond that, Puzzles will be rated by the product of [total move]/[best moves] at each step, and the best puzzles selected.