A Tic-Tac-Toe Game between two computers   

Project Domain / Category

Game Programming/Network Programing 

Abstract/Introduction

The Tic-tac-toe is a simple and interesting board game which is played between two players in n x n grid of squares. The square can be filled by different symbols such as tick () and cross (X). One player can use only one symbol, while another symbol is used by other user. The game is played in turns between two players giving them chance to mark their moves. This process of alternating moves is done until one of the players has drawn a row of three symbols in a horizontal, vertical, or diagonal row.

In this project, this game will be played by two users on two systems. First system will be server while other will be client. One user will play on server machine while another user will play on client machine. The game will contain two levels, basic and advanced. In a basic level, players can play in 3 x 3 grid. Advanced level will allow players to play in 4 x 4 grid. The players will be allowed to choose any of the symbol. The game will be started by any of the user and then it will be played in turns until any of the player gets succeeded in placing three of his/her marks in a horizontal, vertical, or diagonal row.

Functional Requirements:

  1. The server system should be started and client systems should be connected to it.
  2. The players should be designated as Player1 and Player2.
  3. The system should allow both players to start the game.
  4. There should be an interface showing game levels and help menu.
  5. The help menu should contain all instructions to play the game.
  6. The players should select any of the game level.
  7. The same level should be selected by both players.
  8. In case of basic level, a board comprising of a 3 x 3 grid of squares should be drawn on screen.
  9. In case of Advanced level, a board comprising of a 4 x 4 grid of squares should be drawn on screen. 10. The system should allow players to select their respective symbols to mark.
  10. The system should allow Player 1 to start the turn by placing his/her symbol on any of the squares. 12. The marked square box should be locked by the system so that other user could not mark it again. 13. The system should allow player 2 to get the turn the turn and mark his/her symbol on the remaining empty squares.
  11. The system should allow both players make their turns alternately.
  12. The system should declare winner player if any player gets the three respective symbols in a horizontal, vertical, or diagonal row.
  13. If both players fail to place their respective marks in a horizontal, vertical, or diagonal row, then game should be terminated or user should be asked to play again.

Tools:

Microsoft.Net (C#). Etc.

Leave a Comment