Skip to content

TicTacToe game designed for PvC and PvP mode based on OOPs principles.

Notifications You must be signed in to change notification settings

CrypticMessenger/TicTacToe-using-OOPs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

## TicTacToe in Java using OOPs


Operations:
    - 1 : to choose P vs P mode.
    - 2 : to choose P vs C mode.

running program will prompt you to enter the character you want to use as your marker.
generally people choose 'X' and 'O'.

-   TicTacToe board format is :

    | 0 0  | 0 1  | 0 2  |
    | 1 0  | 1 1  | 1 2  |
    | 2 0  | 2 1  | 2 2  |

    so to access top-left cell you will input "0 0" in the terminal.
-   every instruction will get printed in terminal too as you run the program.
-   Computer tries best move to avoid player winning, unless player is winning by 2 ways or computer is winninng in a chance. 
-   Comments are present inside code to explain functionality of the methods and classes.
-   To run the program, type following commands in your terminal:
    : javac TicTacToe.java
    : java TicTacToe
.
├── README
├── TicTacToe.java
├── TicTacToe.class
├── computer.class
├── coordinate.class
└── person.class

About

TicTacToe game designed for PvC and PvP mode based on OOPs principles.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages