• Stars
    star
    6
  • Rank 2,539,965 (Top 51 %)
  • Language
    C
  • License
    MIT License
  • Created over 4 years ago
  • Updated over 4 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

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.