Hexadeca: looking for playtesters for a new territory-control bot game
Hi everyone! I’ve built Hexadeca, a bot programming game, and I’d love some playtesting feedback.
Place non-adjacent stones on a 16x16 board and compete for territory using distance-based scoring. Each match contains two sequential games with colors and first move swapped; combined territory scores decide the winner. Blue moves first and Orange moves second. Finish game 1, then play game 2 on a fresh board with the first game’s score available.
There are three leagues with identical game rules: a greedy boss in the first league and two trained CNN bosses of increasing strength in the next two. The CNN bosses play without search.
Play: Coding Games and Programming Challenges to Code Better
Rules and feedback: Coding Games and Programming Challenges to Code Better
To get started, choose Python 3, paste this random legal-move bot, and click PLAY MY CODE:
import random
while True:
try:
game_id, side, ply, my_score, opponent_score = input().split()
except EOFError:
break
game_id, ply, my_score, opponent_score = map(
int, (game_id, ply, my_score, opponent_score)
)
board = [input() for _ in range(16)]
count = int(input())
actions = [int(input()) for _ in range(count)]
print(random.choice(actions), flush=True)
The header contains five values: game_id side ply my_score opponent_score. Only side is a word (B for Blue or O for Orange); the other four values are integers. Keep reading until EOF: the same program instance handles both sequential games, with colors swapped in game 2.
I’d appreciate feedback on rule clarity, replay readability, crashes or timeouts, and boss difficulty. Beginners and experienced bot programmers are both welcome!
Scoring fixtures
Here are language-independent test positions and expected territory totals. The examples include ties at the nearest distance layer and at two successive layers, resolved by a farther layer. All layers tied means neutral.
HEXADECA_SCORING_FIXTURES 1
# BOARD and optional TERRITORY blocks each contain exactly 16 rows.
# B=Blue, O=Orange, .=empty/unclaimed.
# EXPECTED fields: Blue points, Orange points, neutral cells.
# PROBE fields: row column owner; coordinates are zero based.
# Every cell counts, including stones and forbidden cells.
# These are reachable snapshots, not necessarily finished games.
# These are scoring tests, not bot-input transcripts.
CASE empty
BOARD
................
................
................
................
................
................
................
................
................
................
................
................
................
................
................
................
EXPECTED 0 0 256
END
CASE single_blue
BOARD
B...............
................
................
................
................
................
................
................
................
................
................
................
................
................
................
................
EXPECTED 256 0 0
END
CASE opposite_corners
BOARD
B...............
................
................
................
................
................
................
................
................
................
................
................
................
................
................
...............O
EXPECTED 120 120 16
PROBE 7 8 .
# All distance layers tie, so this cell is neutral.
END
CASE nearest_tie_then_blue
BOARD
................
................
................
................
................
.......B........
................
......B.O.......
................
................
................
................
................
................
................
................
EXPECTED 164 92 0
PROBE 7 7 B
# d2=1: B=1 O=1; d2=4: B=1 O=0, so Blue wins.
END
CASE same_layer_majority
BOARD
................
................
................
................
................
.......B........
................
.....B..........
................
.......O........
................
................
................
................
................
................
EXPECTED 156 100 0
PROBE 7 7 B
# d2=4: B=2 O=1, so Blue wins.
END
CASE two_tied_layers_then_orange
BOARD
B...............
................
................
.......B........
................
................
................
.....B...O...O..
................
................
................
.......O........
................
................
................
................
EXPECTED 104 152 0
PROBE 7 7 O
# d2=4: B=1 O=1; d2=16: B=1 O=1; d2=36: B=0 O=1, so Orange wins.
END