- If a player makes an invalid move, the game is over
- The player with most board space at the end of the game is winner
- Move syntax is 'x y' where x and why represent coordinates, followed by a newline
- Players may use negative numbers for X,Y coordinate values
- The asterisks of a piece must all be placed on the board or the move is invalid
- The periods of a piece do not need to be on the board and can overlap any symbol
- A move is valid if an asterisk overlays one (and only one) character piece already on the board
- A move is invalid if a player piece overlays any of the opposing player's character
- "make"
- "./filler_vm -f maps/maps01 -p1 filler -p2 players/carli.filler"
- Observe. Repeat several times.
- Try one of the other players/maps to see AI in different contexts
My AI uses the 'X' character in the photos below:
- Parse input for player, board, piece data.
- Validate all data
- Pass validated data to move-selector algorithm
- Split the board in half
- Completely encircle the enemy
- Backfill leftover space
- Split the board in half
- Completely encircle the enemy
-
Backfill leftover space
-
Offer humiliated/defeated AI spare change for bus fare back home to see crying mother
- Win percentage is near 100% on the largest board size (greater than 75% on smallest map)
- Checks positive and negative board X,Y values, depending on shape of piece




