Icon - Death Star

W e l c o m e

Hexagon Game

This project was done in 2019 as a school project.

A school project to implement algorithms used in Artificial Intelligence. I created a 2-player interactive game known as Sim, or 'pencil game' that you can play with a COM player who uses a minimax search algorithm to determine its next move. I used Processing to visualize the implementation, and the game was coded in Java.

Basics

  • The Sim game have two players represented by two colors and six dots shaped in a hexagon. Players will alternatively draw a line between two dots. The first player to draw a triangle of their color between three dots loses the game.
  • You can choose to go first or after the AI player
  • Hover over the hexagon to see available paths you can choose
Initial StateHover over to see options

Win / Lose

  • You lose when you create a triangle
  • The AI will to choose the optimal path to win
When losingWhen winning