Skip to content

anastasiya-belova/TicTacToeGame

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tic-Tac-Toe game on Java

Do you remember the children's game "TIC-TAC-toe"? For sure!

And if you still don't remember, I'll remind you of its rules. The playing field in the classic version is a square of 3*3 cells. Two players take turns making moves. The first player draws only the "X" sign, the second player draws only the "O" sign. You can only draw a sign in an unoccupied cell. The winner is the player who was the first to make a winning combination. A winning combination is three identical signs ("O" or "X"), arranged in a row either horizontally, vertically, or diagonally.

The program I wrote allows you to play tic-tac-toe together with a friend (or with yourself =)) on the same computer using a standard console.


How to launch?

  1. Save the file "tictactoe.jar" to your computer.
  2. Open a command prompt and use the cd command to navigate to the folder where is located "tictactoe.jar".
  3. At the command line, run the command "java -jar tictactoe.jar".
  4. Enjoy the game!

About

A simple game "Tic-Tac-Toe" at console

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages