Skip to content

This is a two-player game made using C++ and socket programming

Notifications You must be signed in to change notification settings

hooridahesh/Tic-Tac-Toe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tic-Tac-Toe

🔸Game details:

This game is a two-player game that works for two clients.

In this game, we have three lands of different sizes, the first land contains 9 houses, the second land contains 16 houses, and the third land contains 21 houses.

When the clients connect to the server, each player can choose the land, but the first player can choose a house from that land whose his/her client is connected to the server first.

Each player in his/her turn has 20 seconds to choose his/her desired house, if he/she does not choose a house in the desired time, he/she loses and the opposite player wins. Similarly, if a player enters --exit, and leaves the game, he/she loses and the opposite player wins.

Each player can get information about the game by using -h or --help, such as the names of the land, the number of houses in each land, and the shape of the land.

Any player who first fills three houses in a row from a horizontal or vertical row wins and the game ends.

🔸Things we expect to implement in the future:

1- A timer of 20 seconds should be shown for each player on his/her own page.

2- This server should support more than two clients and run several games at the same time and show the number of online players.

3- Creating a chat page where each player can chat with his/her opponent.

🔸How to run the game:

It is enough to open each of the .cpp files in a separate console environment such as Visual Studio. After that, you must run the server.cpp file first and then the client.cpp files.

🔸This game is made by:

Hoori Dahesh :
            Email: h.dahesh.2000@gmail.com
            Github: hooridahesh

Rezvan Abedin:
            Email: Rezvanabedin79@gmail.com
            Github: rezvanabedin

About

This is a two-player game made using C++ and socket programming

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published