Skip to content

A Java implementation of the classic 2-player game with a GUI. Challenge your friends to see who wins!

License

Notifications You must be signed in to change notification settings

CodeMaestro1/TicTacToe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

Tic-Tac-Toe

TicTacToe

A Java implementation of the classic 2-player game with a GUI. Challenge your friends to see who wins!

Introduction

TicTacToe Game with GUI is a classic TicTacToe implementation that allows players to play the famous 3x3 grid game with a graphical interface.

Installation

  1. Clone the repository to your local machine.
  2. Ensure you have Java installed (version X.X or higher).
  3. Compile the source code.
  4. Run the game by executing the main class.

Usage

  • Launch the game to see the main menu.
  • Choose the game mode (Human vs. Human, Human vs. AI, AI vs. AI).
  • Click on the cells to make your move and try to get three in a row, either horizontally, vertically, or diagonally.
  • The game will automatically determine the winner and display the result.

Controls

  • Click on a cell with the mouse to place your move.

Features

  • Single-player and two-player modes.
  • Two difficulty levels for the AI opponent.
  • Interactive and user-friendly GUI.
  • Records Keeping: The game automatically records the results of each game session in a file. The record file includes details such as player names, their opponents and scores.

Technologies Used

  • Java Swing

Contributing

Contributions are welcome! Feel free to report issues, suggest improvements, and submit pull requests.

License

This project is licensed under the GNU General Public License v3.0 - see the LICENSE file for details.

Acknowledgments

This project makes use of the following external libraries and tools:

  • JUnit: A popular testing framework for Java that provides support for writing and running unit tests.
  • EasyMock: A mocking framework for Java that allows you to create mock objects for testing purposes.
  • Swing: A Java GUI widget toolkit that enables you to create a graphical user interface for your applications.

Special thanks to John Sinanis for his valuable contribution to the development of the graphical user interface (GUI) of the TicTacToe game. His dedication and expertise have significantly enhanced the user experience of this project.

We extend our gratitude to the developers and contributors of the mentioned open-source projects, as well as any other individuals who have helped or inspired us during the development of this project. Your support has been invaluable!

Contact Information

For any questions or feedback, please email me at constantinospis@gmail.com

About

A Java implementation of the classic 2-player game with a GUI. Challenge your friends to see who wins!

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages