Full Report for Dag en Nacht by Chris Huntoon

Full Report for Dag en Nacht by Chris Huntoon

A make-a-line game inspired by M. C. Escher's Dag en Nacht

Generated at 29/07/2021, 14:35 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!

Place a piece of your colour on a DARK square, or move a piece in play one step orthogonally. First to make a row of 5 orthogonal, or a diagonal line of 4 on LIGHT squares wins.

Miscellaneous

General comments:

Play: Combinatorial

Family: Line games

Mechanism(s): Line

BGG Stats

BGG EntryDag en Nacht
BGG Ratingnull
#Votersnull
SDnull
BGG Weightnull
#Votersnull
Yearnull

Kolomogorov Complexity Analysis

Size (bytes)29663
Reference Size10293
Ratio2.88

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 second14186.71 (70.49µs/playout)
Reference Size550024.75 (1.82µs/playout)
Ratio (low is good)38.77

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.

Playout/Search Speed

LabelIts/sSDNodes/sSDGame lengthSD
Random playout18,7173471,705,95830,9159121
search.UCTNaNNaN00
search.AlphaBetaNaNNaN00

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.

Heuristic Values

This chart shows the heuristic values thoughout a single representative* game. The orange line shows the difference between player scores. (* Representative, in the sense that it is close to the mean game length.)

Win % By Player (Bias)

1: White win %77.10±2.71Includes draws = 50%
2: Black win %22.90±2.50Includes 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)631036910000.6006 <= 0.6310 <= 0.660450.100.0049.9085.84
24UCT (its=25)63103669970.6025 <= 0.6329 <= 0.662350.550.0049.4581.48
58
UCT (its=59)
526
0
474
1000
0.4950 <= 0.5260 <= 0.5568
51.00
0.00
49.00
78.65
59
UCT (its=59)
489
0
511
1000
0.4581 <= 0.4890 <= 0.5200
49.10
0.00
50.90
78.56

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 length19.96 
Branching factor65.33 
Complexity10^36.23Based on game length and branching factor
Samples1000Quantity of logged games played

Move Classification

Distinct actions280Number of distinct moves (e.g. "e4") regardless of position in game tree
Good moves118A good move is selected by the AI more than the average
Bad moves162A bad move is selected by the AI less than the average
Response distance3.78Mean distance between move and response; a low value relative to the board size may mean a game is tactical rather than strategic.
Samples1000Quantity of logged games played

Board Coverage

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

Colour and size show the frequency of visits.

Game Length

Game length frequencies.

Mean19.96
Mode[15]
Median19.0

Change in Material Per Turn

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.

Trajectory

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 5% of the game turns. Ai Ai found 1 critical turn (turns with only one good option).

Position Heatmap

This chart shows the relative temperature of all moves each turn. Colour range: black (worst), red, orange(even), yellow, white(best).

Good/Effective moves

MeasureAll playersPlayer 1Player 2
Mean % of effective moves64.4683.2745.66
Mean no. of effective moves40.5051.5029.50
Effective game space10^26.5810^16.3210^10.26
Mean % of good moves44.9740.9648.97
Mean no. of good moves28.9024.8033.00
Good move game space10^20.4610^8.0510^12.41

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.

Quality Measures

MeasureValueDescription
Hot turns85.00%A hot turn is one where making a move is better than doing nothing.
Momentum30.00%% of turns where a player improved their score.
Correction25.00%% of turns where the score headed back towards equality.
Depth5.20%Difference in evaluation between a short and long search.
Drama1.14%How much the winner was behind before their final victory.
Foulup Factor70.00%Moves that looked better than the best move after a short search.
Surprising turns0.00%Turns that looked bad after a short search, but good after a long one.
Last lead change20.00%Distance through game when the lead changed for the last time.
Decisiveness30.00%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.)

Openings

MovesAnimation
j9,g6,h9
f11,k2,h3
j5,b9,a4
a4,k6,j1

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.

Positions Reachable at Depth (Includes Transpositions)

01234
160360022190013490784

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.
Zobrist hashes are not available for this game, so transpositions are included in the counts.

Shortest Game(s)

No solutions found to depth 4.

Puzzles

PuzzleSolution

White to win in 5 moves

Black to win in 5 moves

Black to win in 5 moves

White to win in 5 moves

White to win in 5 moves

Black to win in 5 moves

White to win in 3 moves

White to win in 3 moves

White to win in 3 moves

White to win in 3 moves

White to win in 3 moves

White to win in 3 moves

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