The game is played on an 8x8 grid. Each player has 8 dice to start with. Players move alternatingly.
In each turn a player chooses one of their own dice and rolls it exactly as many cells as the number on top of the die initially showed. The path is a sequence of neighboring cells (diagonals are not considered as neighbors), it's allowed to make turns within the path.
It is however not allowed to visit the same cell twice.
The path may not cross any cells which are occupied by other dice. The last step can end on an opponent's die which will then be captured and is out of play.
You can zoom, rotate and pan the viewer by using the mouse wheel and holding the left or right mouse button.
Game Input
Input per turn
Line 1: diceCount, the number of dice on the board
Next diceCountlines: ownercelltopfrontbottombackleftright owner is 0 if the die belongs to you, 1 otherwise.
cell is the location of the die. The x-coordinate is a letter from A to H, y goes from 1 to 8.
The remaining values describe the rotation of the die. top is equal to the number of cells the die can move.
Output
A single linecell sequence, e.g. B5 URRUL. Cell is the starting position of the move, the sequence can contain the letters U, D, R and L for the directions up, down, right, left.
Constraints
Allotted response time to output
is ≤ 50ms per turn (1s for the first turn).