Skip to content

Implement Rock-Paper-Scissors Console Application#2

Draft
Copilot wants to merge 3 commits into
mainfrom
copilot/fix-1
Draft

Implement Rock-Paper-Scissors Console Application#2
Copilot wants to merge 3 commits into
mainfrom
copilot/fix-1

Conversation

Copilot AI commented May 24, 2025

Copy link
Copy Markdown

This PR implements a Python-based Rock-Paper-Scissors console game as requested in the issue. The game follows a "best out of 3" format, where the first player to reach 3 points wins.

Implementation Details

  • Created a new Python file in personas/app-dev/games/rock_paper_scissors.py
  • Implemented functions for:
    • User input collection with validation
    • Random computer selection
    • Game logic to determine the winner of each round
    • Scoring system to track points
    • Game loop that continues until someone reaches 3 points

Features

  • Clean, modular code with appropriate function separation
  • Clear console interface with score tracking
  • Input validation to ensure users enter valid choices
  • Proper error handling for keyboard interrupts
  • Well-documented code with docstrings explaining functionality

Code Quality

  • Code passes pylint with a 10/10 score
  • Updated .gitignore to exclude Python cache files (__pycache__/, *.pyc, etc.)
  • Used modern Python features like f-strings for readable string formatting

Usage

The game can be played by running:

python3 personas/app-dev/games/rock_paper_scissors.py

Fixes #1.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI and others added 2 commits May 24, 2025 00:57
Co-authored-by: raffertyuy <1037626+raffertyuy@users.noreply.github.com>
Co-authored-by: raffertyuy <1037626+raffertyuy@users.noreply.github.com>
Copilot AI changed the title [WIP] Implement a Rock-Paper-Scissors console application Implement Rock-Paper-Scissors Console Application May 24, 2025
Copilot AI requested a review from raffertyuy May 24, 2025 00:59
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.

Implement a Rock-Paper-Scissors console application

2 participants