close
Skip to content

Update RPS.java - #23

Merged
Badger0909 merged 1 commit into
Badger0909:mainfrom
aniruddhaadak80:patch-5
Oct 24, 2024
Merged

Update RPS.java#23
Badger0909 merged 1 commit into
Badger0909:mainfrom
aniruddhaadak80:patch-5

Conversation

@aniruddhaadak80

Copy link
Copy Markdown
Contributor

The use of rps.length ensures that if you add more moves to the rps array in the future, the program will still work without needing to change random.nextInt(3) manually.

The game will work just as it did before, but with this small improvement.

The use of rps.length ensures that if you add more moves to the rps array in the future, the program will still work without needing to change random.nextInt(3) manually.

The game will work just as it did before, but with this small improvement.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants