Skip to content

A basic tic tac toe game using threads and sockets in a client-server architecture

Notifications You must be signed in to change notification settings

Cristal32/Java-Tic-Tac-Toe-server-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tic Tac Toe Java game

This is a simple Tic Tac Toe game in Java, that uses the concepts of multithreadind and sockets.

image

To use test this game

If you want to test this game locally:

  1. Clone the repository:
git clone https://github.com/Cristal32/Java-Tic-Tac-Toe-server-client.git
  1. Run the server: Server.java
  2. Run 2 instances of the client (for a game between you and your friend): Client.java
  3. Have fun

Win scenario: image

Draw scenario: image

Private salon

You may have noticed another folder called salon, it was for another assignment to create a private salon where users have to get authenticated in order to join and see what other members say.

Client 1 is successfully authenticated and sends a message:

image

Client 2 doesn't give the correct credentials and is therefore not allowed to join: image

Client 3 is successfully authenticated and can see the message from Client 1 image

The salon's messages get stored in a separate file: 'salon_messages.txt' image

About

A basic tic tac toe game using threads and sockets in a client-server architecture

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages