Any feedback will be highly be appreciated
In case of queries, feel free to ask :)
Got an idea of making of simple Tic-Tac-Toe game on the console, but though why not make one, which me and my homies can play on the network so here it is.
This project contains a server and a client. Client initiates the sessions, other players can join the sessions and play the game. A Server which keeps the record of all server sessions and each single session will hold the data of all the users that belongs to it.
This game involves the following functionality:
- Players can either create {ROOMS or SESSIONS} or JOIN_SESSIONS
- While a session is being created, players can specify how many rows they want or to how many players they want to allow to join the session at MAX
- Players can join sessions of other users if they have available space, or their request will be denied by the server.
- Winning conditions:
- First of all, server needed to be running, therefore, navigate to the
src/jar-file
folder, start terminal in the directory and typejava -jar ServerHandler.jar
, it will start the server - Now to run the client, navigate to the
src/jar-file
, start terminal in the directory and typejava --module-path PATH_TO_LIB_FOLDER_JAVAFX_SDK --add-modules javafx.controls,javafx.fxml,javafx.graphics,javafx.web -jar tic-tac-toe.jar
, this will start your client. - Next the application is self-explanatory, you'll know what to do next.
- In case if you want to run in over multiple systems over the LAN, you need to do some tweaks in the code
- Navigate to
src
folder, inClient
class atline 64
you need to change thelocalhost
to the local address of your server something like192.168.0.18
. - Then, it is up to you to build it again or run it from the IDE itself.
- Navigate to