Skip to content

The simple REST API using .NET and C# with Login and RandomNumber controllers.

Notifications You must be signed in to change notification settings

ArkadiyShuvaev/GamblingGamesRestApi

Repository files navigation

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:
      {
        "points": 100,
        "number": 3
      }
  • If the bet is successful, the player's account balance is returned.

    • Example:
      {
        "account": 10900,
        "status": "won",
        "points": "+900"
      }

Tips

  • Error handling.
  • Identification of players.

About

The simple REST API using .NET and C# with Login and RandomNumber controllers.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages