Extrusion


Extrusion is a puzzle game where you click spaces on the board in order to turn the surrounding spaces your color, with the eventual goal being to have more squares of your color filling the area. However, there is a computer-controlled player who is trying to do the same, whose behavior changes with each level. In Level 1, it mirrors your moves on its own side of the board. In Level 2, it does the opposite of your moves. In Level 3, it makes its own moves, trying to maximize the amount of squares it can turn its color.

You can try it for yourself here

Role

Lead Programmer

Tools

Perlenspiel

What I Did on This Project

  • Created the first two AI stages, which take the player's previous move, apply the current stage's rules, and makes its own move. If the exact move can't be made, it will make the closest move possible
  • Created the third AI stage, which takes the state of the board, figures out which move will result in the most squares turned its color, and then makes the move
  • Created the UI elements that show how many turns are left in a level, which player is winning in terms of color amount, and the transition animation that plays as stages change

Free AI Website Builder