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
6
votes
2answers
110 views

rock paper scissor

I just started to learn C++ and I decided to make a rock paper scissor game. It works very well but I would like to know how could I improve it further. Thank you very much in advance for your help. <...
1
vote
2answers
83 views

Rock–paper–scissors console game

I wrote this console rock-paper-scissors game. I'm new to C++. I'd appreciate any suggestions to improve the code below. Thanks. RPSCore.h ...
2
votes
1answer
51 views

JavaScript - Rock Paper Scissors Game

I built a simple console version of the rock paper scissors game. I would love to get some constructive criticism! Questions How could I code this in an object-oriented way? Did my code follow the ...
2
votes
2answers
185 views

Spring service for playing Rock Paper Scissors

I had created a service which does the actual play of Rock Paper Scissors. Below is the service which takes a PlayRequest and updates the State of Player objects given by the PlayerService. So the ...
16
votes
3answers
4k views

Writing a clean implementation of rock–paper–scissors game in C++

I have coded a rock–paper–scissors game in C++, and it works exactly how I want it to. However, I was wondering if there is a way to simplify the code and clean it up. It is for a school project, so ...
0
votes
4answers
138 views

Rock, paper, scissors game in Python 3

as a beginner in Python I made a rock, paper, scissors game and was wondering if my code was a bit weird and could be simplified??? ...
5
votes
3answers
25k views

Rock, Paper, Scissors Game in Python

This is the biggest program I have ever made. I created a Rock Paper Scissors game. It asks you if you want to play, takes your input, compares it with the random computer input, gives you the outcome,...
2
votes
1answer
69 views

JavaScript Rock, Paper, Scissors

I have built a simple JS class with functional methods that create a Rock, Paper, Scissors game. I would be happy to get a non-opinionated review in terms of code being optimal. ...
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 ...
4
votes
2answers
113 views

Python, Rock, Paper, Scissor

Recently i wanted to test my Python knowledge so I'm taking some challenges. I came across a Rock Paper Scissor challenge and I wanted to make it with less code and reuse the same code over and over. ...
1
vote
1answer
102 views

Game of Rock paper and scissors against a random bot

I have to do a project on a game of rock, paper, and scissors, and the code I have so far is a complete code for the game, but my professor does not like it since it is too redundant. Is there anyway ...
7
votes
3answers
318 views

Rock Paper Scissors coding challenge

I did a job application to a Unity developer position and i was given a coding challenge which was implementing a Rock Paper Scissors game or a variation of it. I have implemented the game using Unity ...
3
votes
1answer
354 views

Simple Rock, Paper, Scissors Python Game

I tried to learn Python during the weekend and after getting some knowledge decided to make a small rock-paper-scissors game. I would be grateful for your input on how I could improve my code. All ...
3
votes
2answers
90 views

“Rock, Paper, Scissors” game - follow-up

This is a follow-up to ""Rock, Paper, Scissors" game". I did almost everything the answers recommended and I hope you like it. ...
5
votes
3answers
171 views

“Rock, Paper, Scissors” game

This is a simple "Rock, Paper, Scissors" game I made in Python 3. Feel free to critique me and give suggestions on how can I improve my newbie coding skills. ...
1
vote
3answers
129 views

Rock, Paper & Scissors

Thanks for your time, I am new to programming and I spent some days making this rock, paper & scissor game. What other possible improvements could I make after the ones I've made myself? I've ...
12
votes
2answers
5k views

Rock Paper Scissors game using OOP

I'm a complete beginner to Java and we have just started learning objects and classes in school. I'm trying to create a very simple text-based Rock Paper Scissors game. I do realise that my code is a ...
4
votes
0answers
145 views

Rock-Paper-Scissors engine

Looking over Rock, Paper, Scissors. C++ from a beginning programmer prompted me to think about how I'd program this simple game in C++. The RockPaperScissors class ...
3
votes
2answers
372 views

Rock, Paper, Scissors. C++

I'm a beginner in programming and I would like to have feedback and tips to improve. He's a simple command line program. It's a Rock, Paper, Scissors game. I guess I could use an enum for the "Attack"...
3
votes
2answers
113 views

Rock, Paper, Scissors game made in python

I added Rock, Paper, Scissors to one of my programs. I'm new to python and PEP 8, so I want to see how to improve my work. ...
6
votes
2answers
217 views

Red implementation of Rock, Scissors, Paper

I have implemented the Rosetta Code Rock Paper Scissors game in Red, but I'm sure that there are better ways to do every thing that I did. I would appreciate any feedback on this code, which does work ...
40
votes
4answers
4k views

Rock-Paper-Scissors-Lizard-Spock Challenge

"Scissors cuts paper, paper covers rock, rock crushes lizard, lizard poisons Spock, Spock smashes scissors, scissors decapitate lizard, lizard eats paper, paper ...
5
votes
4answers
23k views

Beginner Rock, Paper, Scissors in Java

I was curious on what, if anything, I could be doing better. I have been spending the last few days working with Java and learning some basics and wanted to try this challenge and making it two ...
7
votes
5answers
2k views

RockPaperScissor Game

I have been studying C#, and I am trying to model the "Rock / Paper / Scissors" game. Is my program reasonable or is there anything I need to improve? user input a round. user input RockPaper or ...
2
votes
1answer
525 views

Simple rock-paper-scissors game [Follow Up 1]

This is a follow my rock-paper-scissors program, original post here: Simple rock-paper-scissors game Looking for any feedback and recommendations on ways to keep improving. Quick notes on changes: ...
3
votes
3answers
636 views

Rock-paper-scissors console implementation

How can I optimize this code? I want to use more C++11 features. game_control.h ...
2
votes
2answers
2k views

Simple rock-paper-scissors game

This is a simple rock-paper-scissors program implemented using C++. Any feedback or suggestions for improvement are welcome. Code: main.cpp: ...
4
votes
1answer
103 views

Rock-Paper-Scissors game in Clojure

I followed braveclojure book and built this little command line Rock, Paper, Scissors game. The game works fine, but I was wondering if there is a better / more ...
4
votes
2answers
1k views

Rock, Paper, Scissors in JavaScript

I'm learning javascript and want to make my code as efficient as possible. This is something I wrote a while back and I keep revising it as I learn new things. But since I'm partly OCD, I can't help ...
8
votes
3answers
5k views

Python 3.6 Rock-Paper-Scissors game

I was asked to write a "Rock Paper Scissors" game as a practice exercise for class. I ended up with this code which works as intended. It's a one player vs. the computer game. Overview: Computer and ...
1
vote
1answer
816 views

Let's play Rock, Paper, Scissors with Ruby

I'm just looking for any tips to improve the code, particularly easier ways to change the main logic of the code so that it's shorter. ...
4
votes
1answer
4k views

Rock Paper Scissors with score count

This is my Rock Paper Scissors code for Python 3 with score count. I want to make it more readable and concise if possible. ...
3
votes
2answers
182 views

Paper-scissors-stick-stone game in Python

I would like to condense the code under def game(). I was told through a response to my question on Stack Overflow that I could use dictionary which goes something ...
4
votes
2answers
135 views

Python Rock Paper Scissors sqlite

I posted some time ago an earlier version of this code and was told about some improvements that should be made. They were mostly about the sql-queries I was using and the DRY-principle. Even though ...
3
votes
1answer
155 views

Python 3 Rock, Paper, Scissors

I've some basic knowledge of Python 3 and I've been working on the following code for some time now. I've been starting playing around OOP and external modules as you can see from the code. Any tips ...
8
votes
3answers
308 views

Procedural style Rock Paper Scissors game using Python 3

I am a newbie to Python and am trying to do the Rock, Paper and Scissors game to revise my knowledge that I have earned so far. Overview of the program: This is a two-player game Ask for player ...
5
votes
3answers
668 views

Rock Paper Scissors in Python

I'm a beginner in Python and I've just finished a Rock, Paper, Scissors simulator in Python. It asks the user to enter paper, rock, or scissors and the program will generate a random number which will ...
18
votes
6answers
4k views

Rock, Paper Scissors game in Python

I wrote a simple Rock, Paper Scissors game in Python for class. As a beginner, I would like some input as to how I could abstract or make my code smoother. I feel like the repeated use of ...
4
votes
2answers
451 views

A game of rock, paper, scissors made with ES2015

Please give me feedback on my code, on what you like and don't like. I tried to make use of ES2015 as much as I could. There is some jQuery in there as well. Any pro tips you can give me? Here is a ...
10
votes
3answers
6k views

A Simple Rock, Paper, Scissors program

I wrote a rock, paper, scissors program. It works fine, but I'm curious if there are any constructive critiques, tips, tricks, comments, or advice anyone may have on how the code operates, performs, ...
7
votes
3answers
635 views

Rock Paper Scissor Code

Here is the code. Works great! Any advice would be great! Also, try it BEFORE reading the code. See if it is good. I've only found 1 "exploit" that can be use to beat the computer everytime and it is ...
3
votes
2answers
423 views

Rock, Paper Scissor game (console-based) in Python

I'm a beginner at coding with Python, and I've only made small projects, and this is one of them. One part of the code is from an answer on Stack Overflow that I made to solve a problem (is the try ...
9
votes
2answers
322 views

Rock, Paper, Whatever - A small commandline game

My rational for this program, was to learn more of Python's standard library, I didn't actually know cmd was even in it until I started this program. It's also the ...
2
votes
3answers
3k views

Rock, Paper, Scissors game in JavaScript

I built this as part of completing the Codecademy JavaScript lesson. I wanted to perfect it, make it readable and functional, and as efficient as possible. As far as I can tell it can't be any more ...
22
votes
6answers
4k views

Rock, Paper, Scissors, Lizard and Spock

I am currently done with this little Rock, Paper, Scissors, Lizard, Spock game in JavaScript. The game is working fine, but I am not pleased with the code. Is there a way to refactor these ...
17
votes
3answers
4k views

RPSLS Game in C#

I went with what I know and can use well, not what I know and can't figure the syntax out to make it look good. So please enjoy the code and prepare to school me (probably in the basics) in C# ...
12
votes
2answers
804 views

Another Rock Paper Scissors Lizard Spock implementation

The Challenge Create an implementation of "Rock - Paper - Scissors - Lizard - Spock". The rules: Scissors cuts paper, paper covers rock, rock crushes lizard, lizard poisons Spock, Spock smashes ...
2
votes
1answer
1k views

Rock Paper Scissors JavaScript game

I'm sure this game gets put up here all the time but I'd appreciate it if you could have a look over my code and give me some suggestions on how to improve it. Here is a live example so you can play ...
10
votes
2answers
3k views

Rock, Paper, Scissors - Python game

This is my attempt at making a 'rock, paper, scissors' game in python. The game takes the user's input and the computer's random selection and calculates who has won. All feedback appreciated. ...
13
votes
3answers
3k views

Stone, Paper, Scissors in Python

Recently I started programming with python. Today I was trying to make a stone, paper, scissor game. After so scratching my head long time, finally I got a working code. ...