Skip to content

The game of numbers is the game played by two players. Each of them choose the optimum number such that they win the game.

Notifications You must be signed in to change notification settings

SrushtiGangireddy/Game-of-numbers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Game-of-numbers

The game of numbers is the game played by two players Alice and Bob. They will be given two numbers from which they have to choose a number. The element k will be present. The game continues until the sum of numbers is <= k. The player who makes the sum >=k wins the game. Each player Alice and Bob is very wise and chooses the optimal move. They would not just let the other player to win the game. The name of the winner should be printed to the screen given the values of l,r,k.

l ==> Starting value of number r ==> Ending value if numbers k ==> threshold sum of the numbers chosen

About

The game of numbers is the game played by two players. Each of them choose the optimum number such that they win the game.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published