Skip to content

In this project we have implemented a multiplayer tic tac toe game using socket programming in C in which a server creates the game in local area network. The players in LAN can connect to the server by using the IP address if the server. We have used the concept of thread.When a new connection arrives ,new thread will be created. To avoid race …

License

Notifications You must be signed in to change notification settings

beingaryan/TIC-TAC-TOE-USING-CLIENT-SERVER-SOCKET-PROGRAMMING-IN-C

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TIC-TAC-TOE-USING-CLIENT-SERVER-SOCKET-PROGRAMMING-IN-C

In this project we have implemented a multiplayer tic tac toe game using socket programming in C in which a server creates the game in local area network. The players in LAN can connect to the server by using the IP address if the server. We have used the concept of thread.When a new connection arrives ,new thread will be created. To avoid race condition taking place between threads we have implemented the concept of mutex. Rules of the game:One by one the players have to enter a key ,‘0’ or ‘X’.A player can win the game when either of the diagonals have the same key i.e. ‘0’ or ‘x’ or any of the rows or the columns have the same key otherwise the game will result in a draw.

About

In this project we have implemented a multiplayer tic tac toe game using socket programming in C in which a server creates the game in local area network. The players in LAN can connect to the server by using the IP address if the server. We have used the concept of thread.When a new connection arrives ,new thread will be created. To avoid race …

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages