Skip to content

Price is right game #10

@oceans404

Description

@oceans404

Request a New Nada Example: Price is right game

Description

Create a “Price is Right” style game where multiple parties guess the price of an item, and the winner is the party whose guess is closest to the actual price without exceeding it.

Use Case

This example can be extended to other types of competitive scenarios, such as auctions or bidding systems, making it valuable for developers interested in game theory, competitive pricing models, or privacy-preserving applications.

Specific Requirements

Inputs:

  • The actual price of the item as a SecretInteger
  • The SecretInteger guesses from multiple parties.

Outputs:

  • The guess that is closest to the actual price without exceeding it.
  • The identification of the winning party.

Edge Cases:

  • If all guesses exceed the actual price, the output should indicate that there is no winner.
  • Handle ties where multiple guesses are the closest without exceeding the actual price.
  • Consider cases where multiple guesses are equidistant from the actual price, both above and below.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions