2022 Developer Survey is open! Take survey.

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
0 votes
1 answer
30 views

Rock, paper, and scissors game

I followed a tutorial that goes through different practical examples and challenges using vanilla Javascript, HTML and CSS. I just completed a simple rock, paper, scissors game; however the tutorial ...
user avatar
7 votes
2 answers
242 views

Rock, Paper, Scissors game in Python with OOP

I am still practising object oriented programming and I decided to do the rock-paper-scissors game as a project. I listen to constructive criticism to improve the program. ...
user avatar
4 votes
2 answers
648 views

Rock, Paper Scissors game using Python

This is a simple rock, paper scissors game I attempted as part of the Automate the Boring Stuff with Python course on Udemy. The scope of the game is for the user to enter a valid input, the system ...
user avatar
  • 41
2 votes
3 answers
129 views

Rock, Paper, Scissors Terminal Game in Java

Recently started to learn Java. I have created a few little things in Java already, but before I will start doing anything more serious I would like to know your opinion about my style. Any ...
user avatar
  • 456
2 votes
1 answer
68 views

Simple Rock Paper Scissors game in Python

I am trying to write a simple rock paper scissors game in pycharm using classes and pygame. So far, I have not incorporated pygame yet. My idea is to import images that change in regards to the user's ...
user avatar
  • 21
3 votes
1 answer
82 views

Cliché Rock, Paper, Scissor, as first Python program

It's been a while since I've done any sort of programming, and my first time in Python. I'm just looking for any general feedback and tips since this is my first program. ...
user avatar
  • 31
2 votes
2 answers
358 views

Rock Paper Scissors Game using if statements

I am doing the codecademy course and had to do a rock paper scissors game as a project. Rather than following the instructions I tried Doing it on my own. How I could make the code more efficient? <...
user avatar
6 votes
3 answers
626 views

Rock-paper-scissors in C++

I'm relatively new to C++, and have attempted a Rock Paper Scissors game, and it works. Here and there I added some countdowns so that the program doesn't run instantly. Any tips for improving the ...
user avatar
  • 63
15 votes
5 answers
3k views

My Rock, Paper, Scissors Game in Python

Here is another one of my simple beginner projects I did in my free time in under 30 minutes, a Rock, Paper, Scissors game in Python against a Computer (random module). As usual, I would like to know ...
user avatar
4 votes
1 answer
143 views

Rock, paper and scissors

I started reading a book about python two days ago and today I wrote my first code. It's supposed to be a rock, paper, scissors game and from the tests I've done so far it works quite well. However ...
user avatar
  • 41
6 votes
1 answer
317 views

Rock, Paper, Scissors - Applying OOP Principles

I would be grateful for a code review of my first "real" C# project (https://github.com/michaeljsiena/RockPaperScissors). It's a basic rock, paper, scissors console game. It's probably quite ...
user avatar
4 votes
2 answers
3k views

2 Player Rock Paper Scissors (Python)

I created a "2-player" rock-paper-scissors game in Python mainly using if statements and a single while loop. The program is really simple, but I was wondering if using switch statements or ...
user avatar
  • 305
0 votes
2 answers
268 views

Rock-Paper-Scissors-Lizard-Spock C++ Pogram [closed]

I'm writing the C++ program that involves a twist on Rock, Paper, Scissors. How the added Lizard and Spock affect the game is very simple and you could look it up if you want, but its not needed as I'...
user avatar
2 votes
1 answer
238 views

Simple Rock Paper Scissors

I made a Rock Paper Scissors game. It works fine but I would like to know how can I improve it further. ...
user avatar
  • 3,248
2 votes
2 answers
114 views

Classic games selection

It is an extremely basic mini-game menu. Link to my game. I know there are more experienced C++ programmers than me, so it would be a great help if you help make my code better. Thank you. PS: First ...
user avatar
10 votes
8 answers
4k views

OOP implementation of Rock Paper Scissors game logic in Java

What is your opinion on my solution for Rock Paper Scissors game logic in Java? Round outcome enum class ...
user avatar
11 votes
3 answers
362 views

Rock, Paper, Scissors Game - Basic Game Simulation

I enjoyed the many headaches this project gave me as I learned a lot! I have been studying Java for less than a year and am new to programming in general. I read over the comments rules and hope I ...
user avatar
4 votes
2 answers
260 views

Rock, paper, scissors, c#

I am a beginner programmer trying to go past the simple tutorials like Codecademy. I decided to make a rock paper scissors game to get some practice in making projects. Any feedback is welcome! ...
user avatar
2 votes
2 answers
284 views

Rock Paper Scissors Lizard Spock in C#

A few days ago I made a "Rock Paper Scissors" game in C# and got my code reviewed on this site. Someone suggested writing a "Rock Paper Scissors Lizard Spock" game and I did. I ...
user avatar
1 vote
1 answer
343 views

Rock paper scissor game in Python

Hello am a new to Python and my programming concept is catching up to me. I just created my first ever project. I did not look else where for an answer, and it took me 6 hours to write. How can I ...
user avatar
  • 19
4 votes
4 answers
1k views

Short code in Python Rock Paper Scissors

I am studying and practicing Python; this is my Rock-Paper-Scissors game I've built from scratch. I saw this task is for beginners. When writing this in all the examples I saw dozens of lines of code ...
user avatar
3 votes
1 answer
93 views

Rock Paper Scissor with a CPU (console)

I tried my hands on Rock-Paper-Scissors. But the twist is that the game has a brain that aims to learns your behaviour. The brain is a simple counter that updates the player's current choice based on ...
user avatar
3 votes
4 answers
1k views

Rock, Paper, Scissors in C#

First of all, I am very new to programming and also this site. This is a very simple "Rock, Paper, Scissors" game I made in C#. At first, it asks if I want to play the game. If my answer is yes, then ...
user avatar
2 votes
1 answer
96 views

Rock, Paper Scissors Game

After spending a few months learning python I decided to build a basic Rock Paper Scissors game. Basic construct of the game: Allows you to pick best of 3,5,7 Allows you to put in the name Computer ...
user avatar
  • 23
3 votes
1 answer
257 views

I made a Rock paper scissors game with Python 3.8

If you could rate my code, 1-10. What will it be and provide reasoning on why you gave that answer, i feel like i could of written this code better but i don't know what i am missing or what i could ...
user avatar
9 votes
2 answers
325 views

Please harshly judge my C++ Rock Paper Scissors

My friend is taking a C++ course and it inspired me to write my own version of the "Rock, Paper, Scissors" assignment he was given in order to help ease me back into coding. I don't have any people ...
user avatar
5 votes
1 answer
403 views

Rock, paper, scissors in Python 3

I am new to Python (and to programming). I tried to implement this game in Python and took some help from the code reviews of similar questions posted on this website. ...
user avatar
1 vote
2 answers
118 views

C++, Reducing the amount of repeated code in a Rock Paper Scissors game

I feel like my code has way too much for what it is, this is my first project and would love to learn some tips in making code more efficient for the future, any other tips for my code here would be ...
user avatar
2 votes
2 answers
177 views

How can I speed up this solution to the "Rock-Paper-Scissors Tournament"

As I have recently been selected to participate in my country's final preselection to the IOI -- this took me aback -- I have decided to get a bit more serious about competetitive programming. The ...
user avatar
  • 123
2 votes
2 answers
148 views

Rock Paper Scissors in Java (I just want to know whatever feedback you have :) Thank you!)

Any feedback on this code would be greatly appreciated! I am just trying to improve so I can move on to bigger projects. Thank you so much! ...
user avatar
17 votes
1 answer
2k views

Rock Paper Scissors Lizard Spock

I got some good feedback from the last code I posted which I have incorporated in to this project (enum, try, f string formatting), so again just looking for some feedback on how the code could be ...
user avatar
4 votes
2 answers
150 views

Rock-Paper-Scissors implementation

I built a simple Rock Paper Scissors game in Python as my first "project", and I want a feedback from you. I want your opinion on how I write my code, is it okay and readable enough? PEP8 laws, things ...
user avatar
2 votes
1 answer
88 views

play paper-scissors-rock with the user

I'm new here and also into programming, I've made this small paper-scissors-rock project, and I would like to get it reviewed and know, how can I maybe: simplify my code make it perform better <...
user avatar
3 votes
2 answers
589 views

Rock Paper Scissors game- JavaScript

This is a console version of the famous Rock Paper Scissors game part of The Odin Project curriculum. Please review this code and provide suggestions. Please comment whether the code is DRY and if it ...
user avatar
  • 41
1 vote
3 answers
2k views

Rock/Paper/Scissors using C#

I created a Rock/Paper/Scissors game in C# that asks the player the number of rounds he wants to play, and then calculates the points and determines the winner. Is there a way I can fix my code? Is it ...
user avatar
21 votes
4 answers
6k views

Rock, Paper, Scissors in C++

I have a fair few years experience with programming, and am currently working in a software development role, writing internal web applications in C#. This is the first C++ code I have ever written, ...
user avatar
  • 794
2 votes
4 answers
1k views

"Rock Paper Scissors Game" Java

What can make this code better? And how could I improve this code? Oh and what I would love is if someone has a project that is not that challenging but I could learn a lot from it :)   ...
user avatar
3 votes
2 answers
182 views

New to programming. How can I write this Rock, Paper, Scissors code better?

I am practicing w/ Python and wanted to code a simple Rock, Paper, Scissors game w/o any user input. I used a list to hold the values and randomly pulled them with a function. I used the the return ...
user avatar
2 votes
1 answer
129 views

A Simple Rock-Paper-Scissors Game

I have just finished learning basic-intermediate Python subjects and wanted to test myself. So here is the my basic Rock-Paper-Scissors game. ...
user avatar
  • 351
6 votes
2 answers
2k views

Python Rock-Paper-Scissors via a class to handle the game

Original inspiration was by this Python beginner, and it prompted me to rewrite a bunch of stuff with my flair and my Python experience: First attempt: Python Rock Paper Scissors Okay, so I looked at ...
user avatar
  • 2,488
15 votes
4 answers
2k views

First attempt: Python Rock Paper Scissors

I finished Python Principles and this is my first program I've done (mostly) from scratch since, having to get some outside help on the loop to repeat the program, and I saw a nifty thing about using ...
user avatar
  • 151
2 votes
1 answer
146 views

Python Rock Paper Scissors Game

Any chance people can read my game code and see if reformatting or rewriting is necessary for a better overall code? I'd really appreciate it. ...
user avatar
  • 23
2 votes
1 answer
80 views

Rock Paper Scissors Beginner Python Game [closed]

I recently made this game for rock, paper, scissors in Python 3. Everything works as intended, but I am sure this is not an optimal way of accomplishing this task. Wondering if there is any beginner ...
user avatar
  • 23
6 votes
2 answers
228 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. <...
user avatar
  • 63
1 vote
2 answers
141 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 ...
user avatar
  • 478
2 votes
1 answer
160 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 ...
user avatar
2 votes
2 answers
307 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 ...
user avatar
16 votes
3 answers
5k 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 ...
user avatar
  • 161
0 votes
4 answers
639 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??? ...
user avatar
2 votes
1 answer
247 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. ...
user avatar