Questions tagged [rock-paper-scissors]

Rock Paper Scissors is a game where two (or more) players compete against each other, with each player picking rock, paper, or scissors.

Filter by
Sorted by
Tagged with
4
votes
3answers
11k views

Rock, Paper, Scissors game assignment

This is an assignment that I have already turned in. It works great, but I was wondering if there are any flaws in the code, or how to write it in a more pythonic way. ...
5
votes
3answers
6k views

Simplification and efficiency suggestions for “Rock, Paper, Scissors” game

I wrote this program for an exercise in Bjarne Stroustrup's text Programming -- Principles and Practice Using C++. He recommended using a vector for pseudo ...
6
votes
2answers
1k views

Is there a way to make my Rock, Paper, Scissors game more concise?

I am learning JavaScript and I just wrote a Rock, Paper, Scissors game that will first prompt the two players for their choices and validate them. In the event of a tie, each player will choose their ...
12
votes
2answers
20k views

Rock Paper Scissors in one single method in Java - Good or bad?

I'm new to programming and have created a simple Rock, Paper, Scissors game. The entire program is under a single class and the main method. I hear that's probably not the best way to code. How ...
3
votes
3answers
358 views

Making my Rock, Paper, Scissors game shorter

I am looking for advice on making the following code shorter. Any help is appreciated. ...
7
votes
1answer
407 views

First attempt at writing Rock Paper Scissors game

I made this Rock Paper Scissors game and I would like for this to be critiqued. ...
2
votes
2answers
3k views

OOP in Rock, Paper, Scissors program

This is an OOP Rock, Paper, Scissors program I wrote in Python. I am just learning about using classes and I'd appreciate some advice on improving it. ...
12
votes
6answers
16k views

Does my Rock Paper Scissors game look good?

I'm doing some homework and am just curious if everything I've done looks good and/or if you'd suggest I modify something to keep with "javaese." ...
4
votes
2answers
10k views

Rock-Paper-Scissors game

This is the first piece of code I wrote on my own. I tried to use everything I know, like functions, loops and variables. Is it good or could it be simpler? Please be hard as you can be with me ...
2
votes
1answer
449 views

My first RSpec test - Rock Paper Scissors

I'm relatively familiar to Ruby, but I'm brand-new to testing code. I've decided to use RSpec because as it seems like a popular option. The game works perfectly, but the spec has a lot of repetition ...
11
votes
7answers
4k views

Rock Papers Scissors in Python

I am a newbie to Python and have started object-oriented programming recently. I have implemented a "Rock Paper Scissors" application in OOP. I would like for you to evaluate my code, and tell me ...