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

Added rock paper scissors in C #497

Closed
wants to merge 1 commit into from
Closed

Conversation

SoniArpit
Copy link

This code asks the user 3 times (means 3 rounds) to enter ‘1’, ‘2’ and ‘3’ means Rock, Paper, and Scissors respectively. Code has a random function that generates ‘1’, ‘2’, and ‘3’. Every time (loop or round) code display who wins (i.e. if you enter ‘r’ (actually ‘1’) and computer or random function generate ‘s’ then code display, ‘You Got It!‘). After 3 rounds who won more rounds will win the game. In every round score counter increase by 1 if anyone wins that round. If in any round you and computer generate the same character then code display ‘It’s a draw. Both got 1 point!‘ and if the final score will be the same then you need to play again and the code shows ‘It’s a draw’.

@Hansajith98
Copy link
Owner

PR acception limit is reached. Please use another repo

@Hansajith98 Hansajith98 closed this Oct 6, 2021
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.

None yet

2 participants