Skip to content

MagresH/TicTacToe-4x4-inversed

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tic-Tac-Toe-4x4-Inversed

Description

Tic-Tac-Toe-4x4-Inversed is a game created for the purposes of an AI subject at university. The user selects their move through a GUI, while the computer selects its move based on the minimax algorithm.

Game is created as a Spring Boot application with a REST API and a simple GUI client created with HTML, CSS , Bootstrap and JavaScript.

Rules

The rules are similar to the standard Tic-Tac-Toe game with the difference that both players place X's and the loser is the one who places 4 X's in a line.
The game ends when either the player or the computer wins

How to run

  1. Clone the repository
  2. Open the project in IntelliJ IDEA
  3. Run the main method in the 'TicTacToe4x4InversedApplication' class
  4. The GUI should open in your browser and you can start playing, if it doesn't open automatically, go to http://localhost:8080/gameUI.html

How to play

  1. Run the application, open the GUI in your browser
  2. Select who goes first, if you select Computer, you need to wait a bit for the computer to make its first move
  3. Select the field you want to place your X in
  4. Wait for the computer to make its move
  5. Repeat steps 3 and 4 until the game ends

Technologies used

  • Java 17
  • Spring Boot 3
  • REST
  • HTML
  • CSS
  • JavaScript

About

Tic-Tac-Toe-4x4-Inversed with minimax

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published