Skip to content

πŸ’‘ [Feature]: choosing options and score in flip coin gameΒ #581

@PIYUSH-NEXTGEN

Description

@PIYUSH-NEXTGEN

❓ Problem Statement

The current Flip Coin Game only flips the coin and directly displays either Heads or Tails randomly.

However, the player currently has no interaction before the toss because there is no option to choose/predict Heads or Tails. This makes the gameplay feel incomplete and less engaging.

Image ---

πŸš€ Proposed Enhancement

Enhance the Flip Coin Game by adding a prediction/selection system where users can choose either:

  • Heads
  • Tails

before flipping the coin.

Additional gameplay improvements can include:

  • Win/Loss tracking
  • Score counter
  • Streak system

This will make the game more interactive and improve replayability.


πŸ› οΈ Suggested Implementation

Possible implementation steps:

  • Add two selection buttons:
    • Heads
    • Tails
  • Store the player's selected choice before flipping
  • Compare selected option with generated result
  • Display:
    • Correct prediction message
    • Wrong prediction message
    • Current score/streak
  • Highlight winning/losing result visually

  • I am a registered GSSoC 2026 contributor.
  • I would like to implement this feature myself.

Metadata

Metadata

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions