https://github.com/leodeveloper/node-app
https://github.com/leodeveloper/node-app
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/leodeveloper/node-app
- Owner: leodeveloper
- Created: 2022-02-23T06:39:54.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2022-03-04T11:18:54.000Z (about 4 years ago)
- Last Synced: 2023-12-08T11:41:03.828Z (over 2 years ago)
- Language: JavaScript
- Size: 549 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
The name of the game is “Robots Guessing Numbers”. Here’s how it works:
You have two processes written in node.js. One is the host, and the other is a player. The host
process generates a random number between 1 and 100. That’s the winning number.
The player process needs to guess that number. It should communicate locally with the host
process to guess the number. If it gets it wrong, the player should send another guess. This
continues until the number is found.
It’s up to you to decide how these processes should communicate with each other, and it’s up to
you to decide how to guess which number to try next.
When the player process has guessed the host’s number, the game begins again.