Hello, dear friend, you can consult us at any time if you have any questions, add WeChat: THEend8_
Rules for the Game of Infexion
COMP30024 Artificial Intelligence
Infexion is a two-player game of contagion and domination. You assume the role of a virus vying to
overtake and control an unsuspecting host. But beware, another strain competes for dominion, and will
stop at nothing to steal your hard work in its own quest to prevail. You’ll have to be not only smart, but
cunning, as you attempt to outmaneuver your opponent in an increasingly cut-throat environment. Will
you emerge victorious in this battle for viral supremacy?
Overview
Infexion is a perfect-information two-player game played on an 7 × 7 hexagonally tiled, infinitely
repeating board. Two players (named Red and Blue) compete, with the goal of taking control of all
‘tokens’ on the board.
Figure 1: An example in-progress game of Infexion.
Game Board
We use an axial coordinate system to describe positions on the hexagonal grid (Figure 2). Formally,
a valid coordinate is an integer pair (r, q), 0 ≤ r ≤ 6, 0 ≤ q ≤ 6. Similar to a classic game of Pacman
1
where the game environment edges are spatially connected, the same is the case in Infexion. Although
there is a board “outline” depicted in our illustrations, these are just numeric boundaries where q
and/or r wrap around from 7 to 0 (or vice versa). In other words, there are no true ‘edges’ of the
game board, but rather, it spans an infinite repeating plane 1. For example, in Figure 2, notice how
the coordinate (6, 1) has two neighbouring cells which wrap around to the other side of the board,
namely, (0, 1) and (0, 0).
Figure 2: The coordinate system used on an Infexion game board.
Hexagonal cells on the board may be empty, or have a stack of 1 ≤ k ≤ 6 tokens controlled by a
particular player (we call k the POWER of the cell). For example, in Figure 1, the cell at (3, 2) has
POWER 3, and the ‘controlling’ player is Blue.
Gameplay
• The game begins with an empty board and proceeds sequentially.
• By convention, Red starts. Throughout the game Red and Blue take turns. In a given turn a
player chooses to play one of the following two actions:
– A player may SPAWN a token in an empty cell, on the condition that the total POWER
of all cells on the board is less than 49.
– A player may SPREAD one of their token stacks of POWER k in a consecutive line of
adjacent cells (they may choose any one of the six hex directions around the cell).
• The exact validity conditions (and edge cases) related to the aforementioned actions are
detailed below in the “Actions” section.
• The game ends when one player takes control of all opponent tokens on the board. See the
“Ending the Game” section for details.
1The topology of the board is a torus.
Actions
SPAWN
On their turn, a player may choose to SPAWN a token in an empty cell at some coordinate (r, q).
This action is valid only when the total POWER of all cells on the board is less than 49. Hence it
is typically played during the early game 2, and is in fact the only possible action on each player’s
first move.
Figure 3 shows an example of a SPAWN action. The state of the board before and after the action
is shown on the left and right respectively. Notice that the total POWER of occupied cells on the
board before the action is 5 (< 49), hence the move is permitted.