Skip to content

TriviaParti_submission #6

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

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

Conversation

xKingOfTheNorthxx
Copy link

Brief: Develop a multiplayer trivia or quiz game where players submit answers to questions, and scores are computed without revealing each player’s answers until the game is over. The idea is to prevent copying or cheating off other players’ responses by keeping answers secret using MPC, and then revealing correct answers and computing scores. For example, imagine a trivia dApp where a question is posted on-chain, players have a limited time to submit their answers (privately, via an MPC contract). Once time is up, the contract (with MPC) evaluates which answers are correct for each player and updates their score. Only aggregated scores or winner information is published, while individual answer submissions remain private. This showcases how even simple games can benefit from Partisia’s privacy — creating a fair gameplay environment.

Marking Criteria:

  • Privacy of Answers: Players’ answers should not be visible on-chain until the reveal phase (if ever). Use MPC to compare answers to the correct answer without directly exposing the players’ submissions to everyone. For instance, the contract could secret-share the correct answer and each player’s answer, then MPC determines if they match for scoring.
  • Game Logic & Fairness: Implement the game rounds such that all players are treated fairly. Ensure that the correct answer is either committed ahead of time (to avoid changing it) or otherwise guaranteed. No player should be able to see another’s answer before submitting their own. The scoring mechanism must be accurate and only count truly correct answers.
  • Use of Partisia’s Features: Leverage Partisia Blockchain’s capability for combined public/private smart contracts. For example, the question and maybe a hash of the correct answer could be public, but the check of each answer is done in the private MPC part. Show that the multi-party computation occurs as intended (e.g., multiple nodes jointly evaluating answers).
  • User Interface and Experience: Provide a simple interface for the game (it can be command-line or web). It should allow an organizer to input questions and correct answers (or load a set), and allow players to join and submit answers. Show the results after each question or at the end: e.g., display the leaderboard of scores without exposing what each answer was (aside from indicating right or wrong).
  • Expandability & Creativity: Extra credit for making the game easily extensible or more engaging. For example, support multiple questions (a quiz series), multiple players, or even a smart contract that can handle many different trivia games (rooms) in parallel. This is not a strict requirement, but good design and creativity here will be noted in the evaluation.

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