Skip to content

add Price is Right Game Nada example#38

Open
ysongh wants to merge 1 commit intoNillionNetwork:mainfrom
ysongh:feat/price-is-right-game
Open

add Price is Right Game Nada example#38
ysongh wants to merge 1 commit intoNillionNetwork:mainfrom
ysongh:feat/price-is-right-game

Conversation

@ysongh
Copy link

@ysongh ysongh commented Oct 3, 2024

Price is Right Game Nada Example

Description

I created Price is right game example. It takes 3 inputs (Actual Price, Player 1, Player2). It calculate the difference between the guesses and the actual price. It returns the guess that is closest to the actual price without exceeding it (1 for Player 1, 2 for Player 2). If all guesses exceed the actual price, it will return 0 for no winner.

Use Case

Good example to help with game theory

Related Issues

Issues #10

Optional: add your information for a Nada by Example Contributor POAP

Your Twitter:
Your Ethereum address:

@ysongh ysongh mentioned this pull request Oct 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant