Skip to content

huulie/NU-MOD1_ProjectGO

Repository files navigation

NU-MOD1_ProjectGO

Final assignment of Nedap University module 1

Play without GUI and background music (please answer no/false to these questions!)

  1. First, download GoServer.jar and GoClient.jar (available in release)

  2. To start a server, open a terminal window and navigate to the folder containing GoServer.jar. Then type:

java -jar GoServer.jar

and answer the questions in the terminal

  1. To start a client, open a terminal window and navigate to the folder containing GoClient.jar. Then type:

java -jar GoClient.jar

and answer the questions in the terminal

  1. Start another client, following step 3. When two clients are connected, a game starts!

Enjoy the game, and let’s GO!


Method to make JAR and GUI working kindly adapted from Eline and her coach (with Eline's approval)

Take care: this program only works if you have Java 11 installed. Please install Java 11 if necessary.

To get the program up and running, open a command line terminal.

  1. First make a clone of this repository by typing in the following lines in the terminal and hitting enter after each line:

mkdir goGameDirectory

cd goGameDirectory

git clone https://github.com/huulie/NU-MOD1_ProjectGO.git

cd ProjectGO

Because of the file size, the .jar files have to be download separately (available in release). Place them in the same ProjectGO directory.

  1. Then, start the server by typing this line in the command line and hitting enter:

Mac users:

./server

Windows users:

server.bat

Both types of users: Follow the prompts in the terminal.

  1. Open a new command line window and navigate to the right directory by typing the following lines in the terminal and hitting enter:

cd ProjectGO

Then, start a client by typing one of these lines in the command line and hitting enter:

Mac users:

./client This will start a client to play on the server.

Windows users:

client.bat This will start a client to play on the server.

Both types of users: Follow the prompts in the terminal. IP and port number are provided by the server.

  1. Repeat step 3, starting another client (maybe on a different computer).

  2. Once a client indicates that it has closed the connection, you can type 'ctrl c' to stop the execution and to start another client or server, if wanted.

If wanted, you can add more clients. For every two clients added, a game will be started. Clients on other computers running the same program (or a different program with the same communication protocol) can also connect to your server. Similarly, you can connect as a client to another computer running a server with the same communication protocol.

Enjoy the game, and let’s GO!

About

Final assignment of Nedap University module 1

Resources

Stars

Watchers

Forks

Packages

No packages published