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

Rock-paper-scissors algorithm results in lower case input string error #6824

Open
1 of 4 tasks
Poly-Etilen opened this issue Nov 23, 2024 · 1 comment
Open
1 of 4 tasks

Comments

@Poly-Etilen
Copy link

This is a(n):

  • New algorithm
  • Update to an existing algorithm
  • Error
  • Proposal to the Repository

Details:
When the rock-paper-scissors algorithm was executed, an output of "Player 2 wins" occurred when input was received and tied to a lowercase string. It found that the code did not work well when receiving a string input in lowercase in the existing algorithm. Therefore, a code to convert the string to capital letters was added when the string was input in lowercase. In addition, the code was modified to receive the output of "Invalid choice, please choose ROCK, PAPER, or SCISSORS" when another string was input.

코드 출력 에러

@Poly-Etilen
Copy link
Author

Please check the code changes and leave a review

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

No branches or pull requests

1 participant