Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add Price is Right Game Nada example #38

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

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