Giter Site home page Giter Site logo

tictactoe's Introduction

TicTacToe Java JFrame ⭕️❌

This repository contains a simple implementation of the classic TicTacToe game using Java's JFrame library. The game allows two players to play against each other on a graphical user interface.

🎮 How to Play

  1. Clone or download the repository to your local machine.
  2. Make sure you have Java Development Kit (JDK) installed.

⚙️ Compiling the Source Code

To compile the Java source code, navigate to the root directory of the project using the terminal or command prompt, and then use the javac command:

javac -d bin .\src\TicTacToe.java

📦 Building the JAR File

After compiling the source code, you can create a JAR file to distribute the game. Use the jar command as follows:

jar cf .\build\TicTacToe.jar .\bin\TicTacToe.class

▶️ Running the Game

To run the TicTacToe game, use the following command:

java -jar .\build\TicTacToe.jar

The GUI of the TicTacToe game will appear on the screen, and you can set the board size as per your preferences through the input text boxes.

🌟 Features

  • Graphical user interface using Java's JFrame.
  • Simple and intuitive design for a smooth gaming experience.
  • Two-player mode for playing against friends or family.


Feel free to explore the code and modify it as per your requirements. If you encounter any issues or have suggestions for improvement, please create an issue or submit a pull request. Enjoy playing TicTacToe!

tictactoe's People

Contributors

mahes2 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.