Chapter 14 · GameAge of Cotanak? ← Chapter 14 CloseHow to playA game built for this course: territory control and adversarial search in one.Red and Blue compete for territory on a 6×6 map. Red starts in the top-left corner, Blue in the bottom-right; Red moves first.The player to move clicks an empty cell (dashed) that is horizontally or vertically adjacent to territory they control.Conversion: if the new cell touches at least two of the player’s cells, an adjacent, weakly supported enemy cell (touching at most one cell of its own colour) is captured and turns to the player’s colour.A player with no valid expansion passes; the other player moves again.The match ends when the board is full or neither player can expand. The player controlling more cells wins.The last move is shown with an amber outline, the captured cell with an outline in the text colour.AI difficultyEasy: picks a random valid expansion.Medium: a greedy positional heuristic: prefers cells with many friendly neighbours (3 points each) and few enemy neighbours.Hard: adversarial search: minimax with alpha-beta pruning looks three plies ahead (its own move, your reply, its next move) and evaluates the territory difference and mobility (number of valid expansions).Reading the territoryA cell is worth more than its immediate point. Central positions can open several expansion directions in the future, while narrow corridors can keep the opponent from reaching a whole region. Border cells have both present value and option value: they determine which moves will be possible later.Strategy tipsExpand toward flexible central areas before committing too much to a single edge.Build connected regions so that blocking one border does not stop all growth.Watch for bottlenecks where a single move can cut off access to several cells.Compare the immediate territory gain with the future moves each expansion creates or removes.Link to algorithmic strategyThis version focuses on spatial control, heuristic evaluation and adversarial search. The small board makes it easy to observe how an evaluation function can reward territory, mobility, connectivity and future expansion instead of merely counting filled cells; Medium (one-step heuristic) and Hard (search) can be compared.