You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
This is a(n):
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.
The text was updated successfully, but these errors were encountered: