https://github.com/arkadiyshuvaev/gamblinggamesrestapi
The simple REST API using .NET and C# with Login and RandomNumber controllers.
https://github.com/arkadiyshuvaev/gamblinggamesrestapi
jwt netcore8
Last synced: 22 days ago
JSON representation
The simple REST API using .NET and C# with Login and RandomNumber controllers.
- Host: GitHub
- URL: https://github.com/arkadiyshuvaev/gamblinggamesrestapi
- Owner: ArkadiyShuvaev
- Created: 2024-02-23T17:27:06.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-02-27T08:34:05.000Z (over 2 years ago)
- Last Synced: 2025-03-02T21:27:25.140Z (over 1 year ago)
- Topics: jwt, netcore8
- Language: C#
- Homepage:
- Size: 45.9 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Game Rules
- This is a game of chance in which a random number between 0 - 9 is to be generated.
- A player will predict the random number.
- The player has a starting account of 10,000 points and can wager them on a prediction which they will either win or lose.
- Any number of points can be wagered.
- If the player is correct, they win 9 times their stake.
- If the player is incorrect, they lose their stake.
## Task
- The player sends their bet as a request to the program.
- Example:
```json
{
"points": 100,
"number": 3
}
```
- If the bet is successful, the player's account balance is returned.
- Example:
```json
{
"account": 10900,
"status": "won",
"points": "+900"
}
```
## Tips
- Error handling.
- Identification of players.