Skip to content

A Java Program that showcases AI capabilities competing to a Human player with the classic game Tic-Tac-Toe. A project submitted to De La Salle University.

License

Notifications You must be signed in to change notification settings

cifelse/tictactoe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tic Tac Toe

A Java Program that showcases AI capabilities competing to a Human player with the classic game Tic-Tac-Toe. There are three AI levels for the Human to play with.

  1. Level 0 named Randy - Moves randomly and doesn't take into account the past moves and players move.
  2. Level 1 named Paul - An AI implemented using brute force if-else statements
  3. Level 2 named Rick - The strongest AI among the three AIs and this doesn't rely on brute force algorithms.

This Machine Project was submitted to Dr. Judith Azcarraga as partial completion for the course CSINTSY at De La Salle University. My co-worker for this project is Jordan Sibug.

You may opt to download the JAR file or download the source code, to run the program. I personally suggest downloading the JAR file instead. A JAR File is like a ZIP file for Java classes but acts like an EXE file (So when you download it, then run it, it opens the application easily without necessary extra setup).

Preview

Downloading the JAR File

  • Make sure that Java is installed already (Must be Version 11 or up). You may download Java 11 here. No need to download JavaFX for running the JAR File.
  1. Download the JAR file at https://bit.ly/CSINTSY-TicTacToe
  2. After download is finished, you may run it by double-clicking the application. Treat it as an exe file.

Running the Source Code

  • This project was built using the IntelliJ IDEA. Instructions will be clearer if executed using that IDE. Nonetheless, It should be opened by any IDEs.
  • Make sure both Java and JavaFX are installed. Download Java 11 here and JavaFX 11 here.
  1. Clone this repository by running the following in your terminal git clone https://github.com/cifelse/tictactoe.git
  2. Once done downloading, open the folder as project. Add JavaFX libraries to the Global Libraries of your IDE. Learn how to do it here.
  3. Run the main function located at Driver.java (src/Driver.java)

Disclaimers

  • It is very important to make sure JavaFX Libraries are included to the project if one will run the source code instead of the JAR File provided.
  • The game is inspired by the popular game Among Us developed by Innersloth, art and soundtrack belongs to them and we own nothing. No copyright infringement intended. All rights belong to InnerSloth. This is project is inteded for educational purposes only.

License

This repository uses an MIT License. View the LICENSE for full license text.

About

A Java Program that showcases AI capabilities competing to a Human player with the classic game Tic-Tac-Toe. A project submitted to De La Salle University.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published