Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/codertx/tictactoe-challenge

This repository showcases various implementations of the classic Tic-Tac-Toe game, including console-based and graphical user interface (GUI) versions in Java, as well as a web-based version using HTML, CSS, and JavaScript. Each implementation supports both human vs. human and human vs. AI gameplay.
https://github.com/codertx/tictactoe-challenge

Last synced: 18 days ago
JSON representation

This repository showcases various implementations of the classic Tic-Tac-Toe game, including console-based and graphical user interface (GUI) versions in Java, as well as a web-based version using HTML, CSS, and JavaScript. Each implementation supports both human vs. human and human vs. AI gameplay.

Awesome Lists containing this project

README

        

# TicTacToe-Challenge

Welcome to the TicTacToe-Challenge repository! This project showcases Tic-Tac-Toe implementations in Java and HTML/CSS/JS, featuring both human vs. human and human vs. AI gameplay.

## Features

- **Java Implementation**: A console-based Tic-Tac-Toe game with AI opponent.
- **Java UI Implementation**: A graphical Tic-Tac-Toe game with a user-friendly interface and AI opponent.
- **HTML/CSS/JS Implementation**: A web-based Tic-Tac-Toe game with an interesting UI and AI opponent.

## Screenshots

### Java Game

![Java Console Game](snapshots/java_console_game.jpg)

### Java UI Game

![Java UI Game](snapshots/java_ui_game1.jpg)
![Java UI Game](snapshots/java_ui_game2.jpg)

### Web Game

![Web Game](snapshots/web_game.jpg)

## Getting Started

### Java Implementation

1. Clone the repository:
```sh
git clone https://github.com/yourusername/TicTacToeShowcase.git
2. Navigate to the Java directory:
```sh
cd TicTacToeShowcase/java
3. Compile and run the Java program:
```sh
javac TicTacToe_Console.java
java TicTacToe_Console

### HTML/CSS/JS Implementation

1. Clone the repository:
```sh
git clone https://github.com/yourusername/TicTacToeShowcase.git
2. Open the `.html` file in your web browser.

### Java UI Implementation

1. Clone the repository:
```sh
git clone https://github.com/yourusername/TicTacToe-Challenge.git
2. Navigate to the Java directory:
```sh
cd TicTacToe-Challenge/java
3. Compile and run the Java program:
```sh
javac TicTacToe_UI.java
java TicTacToe_UI

## Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

## File Structure

- `snapshots/`: Contains screenshots of the implementations.
- `.gitignore`: Specifies files and directories to ignore in the repository.
- `LICENSE`: The license for the project.
- `README.md`: This file.
- `TicTacToe.html`: The HTML file for the web-based implementation.
- `TicTacToe_Console.java`: The Java file for the console-based implementation.
- `TicTacToe_UI.java`: The Java file for the UI-based implementation.