Skip to content

rodrigo-troy/Tic-Tac-Toe-with-AI-java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 

Repository files navigation

Tic-Tac-Toe with AI

Welcome to the Tic-Tac-Toe with AI project! This Java-based application allows users to play the classic game of Tic-Tac-Toe against an AI opponent.

Features

  • Single-player mode against an AI opponent
  • Simple and intuitive graphical user interface
  • Intelligent AI that provides a challenging gameplay experience
  • Ability to restart the game and play multiple rounds

Getting Started

Prerequisites

  • Java Development Kit (JDK) 11 or higher
  • A Java IDE or text editor of your choice

Installation

  1. Clone the repository:
    git clone https://github.com/rodrigo-troy/Tic-Tac-Toe-with-AI-java.git
  2. Open the project in your preferred Java IDE.
  3. Build the project to resolve dependencies.

Running the Game

  1. Navigate to the main class file (Main.java).
  2. Run the Main class to start the game.
  3. Enjoy playing Tic-Tac-Toe against the AI!

How to Play

  • The game board consists of a 3x3 grid.
  • Players take turns placing their marks (X or O) on the empty squares.
  • The first player to get three of their marks in a row (horizontally, vertically, or diagonally) wins the game.
  • If all nine squares are filled and neither player has three in a row, the game is a draw.

Contributing

Contributions are welcome! If you would like to contribute to this project, please fork the repository and submit a pull request.

License

This project is licensed under the MIT License. See the LICENSE file for more details.

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages