What's on this page

Top of page

Client-server game

Optional assignment for higher grade

In this assignment you will construct a simple client-server game where the server stores a secret number and the clients tries to guess the secret number originally only known by the server.

Client-server architecture for a simple game where the server keeps a secret number which clients tries to guess.

Client-server architecture for a simple game where the server keeps a secret number which clients tries to guess.

The server stores a secret number. The clients tries to guess the secret number originally only known by the server. The server and clients communicate by sending messages to each other. When a client sends a guess to the server, the server will answer with a result. If the guess was wrong the client will try to guess again.