Skip to content

I built this project as part of my 1st year course of Software Workshop at the University of Birmingham. It represents a java based client-server socket connection for playing the well-known game of Tic Tac Toe. The game can only been played locally.

Notifications You must be signed in to change notification settings

simonnoff/TicTacToe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tic Tac Toe

Software Workshop - Tic-Tac-Toe client-server assessed exercise

Commands: javac *.java java Server java Client

After starting the Clients:

  1. For each client, a lobby is opened - with three buttons
  • Refresh - must be clicked in order to see the online users
  • Scoreboard - show the points of every user (1 point for a win, 0 - draw and lose)
  • Connect - once a user is chosen, this button sends the request for game
  1. Request is made
  • the second user receives a pop-up window, where he can choose to accept or reject the request
  • if he rejects the request, a pop-up message is shown to the first user, which tells that his opponent rejected the request, both users can choose new opponents again
  • if he accepts the offer for playing - two frames with board 3x3 are opened and the users start playing
  1. The game ends
  • if it is a draw, both windows are closed and only the users lobbies remain - the users can choose their next opponent
  • if one of the players wins, then all the field on the 3x3 grid become unable and the windows are closed again, but the lobbies remain:
  • a pop-up messages are shown to see who won and who lost
  • the user who won adds 1 point to his score - his score can be seen in the Scoreboard
  1. Additional features
  • if during the game one of the player decides to end the game , he simply click the red “X” button on the top of the frame and both his and his opponents’s grid are closed (not the lobbies)
  • if a new user sign in , but his nickname is the same as to someone who exists , the new user receives new name and is represented in the scoreboard and the list of users with it. (the new name i simply the same with just added “1” in the back)
  • the red “X” button form the frame is transformed to exit button - when users end game they remain in the system and can continue making request
  • during a game of two users if a another users want to play with the ones who are still playing, their request are rejected automatically and a pop-up message appear

About

I built this project as part of my 1st year course of Software Workshop at the University of Birmingham. It represents a java based client-server socket connection for playing the well-known game of Tic Tac Toe. The game can only been played locally.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages