Triples.jmc
Triples is a two player strategy board game. Each player (white and black) have the goal of reaching their goal squares (P1G? and P2G?), or leaving their opponents without a valid move.
The board is 8x8 and all squares except the four middle and four corner ones have a three direction arrows, implying the allowed direction for the opponent. The 4 middle squares (d4, d5, e4, e5) are blocked.
Each player on her/his turn can only move by one square in the direction dedicated by the square her/his opponent is currently located.
The interesting part of this program is the only action defined: player move, the only goal defined: player win, and the only heuristic defined for that goal, namely minimizing the Manhattan distance of the player to his or her goal square.