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

https://github.com/ishaqadhel/tictactoe

TicTacToe game using Java Language.
https://github.com/ishaqadhel/tictactoe

java oop tictactoe

Last synced: 10 months ago
JSON representation

TicTacToe game using Java Language.

Awesome Lists containing this project

README

          

# TicTacToe

## ๐Ÿ““ About
Tic Tac Toe is a paper-and-pencil game for two players, X and O, who take turns marking the spaces in a 3ร—3 grid. This game created by using Java Language Programming (OOP).

## ๐Ÿ“‹ Features
- Insert Name
- Score each player saved till you close the frame
- Vs Computer Mode
- 2 Player Mode

## ๐Ÿ”ง Tools
- Java
- Eclipse IDE

## ๐Ÿงพ Program Components

### ๐Ÿ–ผ๏ธ Class Frame :
- Home
- ModeFrame
- PlayerFrame
- CompFrame
- GamesFrame
- GamesCompFrame

### ๐Ÿคต Class :
- Main
- Player
- Human (extends Player)
- Computer (extends Human)

## ๐Ÿ’ป Program Flow
- Start Main to initiate program
- From Main it will open Home Frame
- From Home Frame click 'PLAY' Button to go to ModeFrame
- In ModeFrame choose mode (vs Computer or vs Player), after click vs Button it will open CompFrame / PlayerFrame
- In PlayerFrame / CompFrame insert your name to play, after that click 'PLAY' Button
- After you click 'PLAY' Button in PlayerFrame / CompFrame the program will open GameFrame / GameCompFrame
- Happy Playing!

## โž– Disadvantages
- From one menu to another still using JFrame not JPanel
- Vs Computer Mode, Computer Move still use random button not minimax algorithm

## ๐Ÿ‘๏ธ Preview

### ๐Ÿ  Home Screen
![home](https://user-images.githubusercontent.com/49280352/131254938-8a8b522f-c54c-4ffd-a2f1-21458f7f0dca.png)

### ๐Ÿ“‡ Main Menu
![gamemode](https://user-images.githubusercontent.com/49280352/131254950-deca5a1a-fe7e-4659-b476-2f0ddc9a9765.png)

### ๐Ÿ‘จ One-Player Mode Profile
![oneplayer-profile](https://user-images.githubusercontent.com/49280352/131255072-f1815074-9fb3-4980-9e6e-ea5d4bf36234.gif)

### ๐Ÿ‘จ One-Player Mode In Game
![oneplayer-ingame](https://user-images.githubusercontent.com/49280352/131255106-875e005c-ecaa-4f28-8297-d6bde62b789a.gif)

### ๐Ÿคผ Two-Player Mode Profile
![twoplayer-profile](https://user-images.githubusercontent.com/49280352/131255118-195b1d69-03d3-476c-b97d-4fc79dc65e7d.gif)

### ๐Ÿคผ Two-Player Mode In Game
![twoplayer-ingame](https://user-images.githubusercontent.com/49280352/131255147-3612b605-30fc-4bb2-85da-d19bb0c6b54a.gif)