Java: Peer-to-peer application for a simple question and answer game (using gradle)
- Hali: Pending
- Zawadi: $500
- Wasilisho Zilizopokelewa: 7
Maelezo ya Shindano
Design a simple Question and Answer game.
- The game can ask Short Answer (one word answer) and multiple choice questions.
- one of the signed up peers is always the host (the one asking the questions)
- the host asks the questions, the others answer, whoever answers correctly first gets 1 point;
- the host continues to ask questions until one player receives 5 points (and shouts I WON), then the round is over.
- peers can start a new round or choose to end the game.
Constraints:
- each program is a server and a client (thus peer to peer). (attached is Sockets/SimplePeerToPeer as an example)
- you need to define a custom protocol for this in Protobuf.
- the host sends over a question
- peers can answer correctly or incorrectly
- the host informs the peer if the answer was correct (if it was correct, a switch of hosts takes place)
- write a question bank in JSON and have a json file that you store then in
- the host needs to choose a random question from the question pool and remove the ones the host has already asked; there should be at least 15 questions in the question bank.
- you need a gradle task for running your peers, which also allows to give a host as argument
- you should be able to run your hosts on different systems (raspberry pi, AWS, second computer, etc)
Assumptions:
- you can assume humans playing will choose a host at the beginning, you do not have to do an election or handle when two say they want to be host;
- you can assume humans do not answer at the same time
Ujuzi unaopendekezwa
Wasilisho kuu kwenye hili shindano
-
phjocoronel Argentina
-
johnfern107 Egypt
-
phjocoronel Argentina
-
ashley8hayden India
Bodi ya Ufafanuzi ya Umma
Jinsi ya kuanza kwa kutumia mashindano
-
Chapisha Shindano Lako Haraka na rahisi
-
Pokea Wasilisho Nyingi Kutoka kote ulimwenguni
-
Tuza wasilisho bora zaidi Pakua faili - Rahisi!