Skip to main content
Share Your Experience: Take the 2024 Developer 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
3 votes
2 answers
83 views

A rock-paper-scissors game using HTML & Javascript

I have created a pretty simple rock-paper-scissors game that uses event listeners and manipulates the DOM. I would appreciate any constructive feedback. Whether it is readability, variable names, ...
snbmt21's user avatar
  • 31
4 votes
1 answer
88 views

rock paper scissors game in console

I've made a simple rock paper scissors game using javascript. Any feedback appreciated. This is a first project I've done with almost no help ...
user24687626's user avatar
3 votes
3 answers
847 views

Basic python rock papers scissors game (first code)

I'd just appreciate if anyone can suggest some incremental improvements that would help me to think better like a coder. Here is the very basic RPS (rock, paper, scissors). One thing I may next add is ...
Mah Neh's user avatar
  • 79
3 votes
3 answers
1k views

Rock Paper Scissors Game feedback

I made this Rock Paper Scissors game using C++. This is my first time doing it and it took me around 3 hours. I know that since I am unexperienced, there is probably a much easier and shorter way of ...
Dalha Dalha's user avatar
3 votes
2 answers
167 views

Rock, paper, and scissors C++

Could you give me your opinion about this simple rock, paper, and scissors game code and tell me tips to improve this code? ...
salah salah's user avatar
26 votes
5 answers
9k views

Rock Paper Scissors. My first C++ program. Please judge harshly

I am new and only know the basics of C++. Any help will be appreciated. I want to know how to make my code less lines, more efficient, proper practice and play better. ...
Sammyng's user avatar
  • 369
6 votes
2 answers
707 views

Making a Rock Paper Scissors game in Python - How to reduce repetition and make it more effective?

I am a "new" coder to Python - saying this because I got stuck in the tutorial hell - and I saw that doing projects was a way of consolidating what I had learnt from those tutorials, so here ...
Aldis Nuts's user avatar
3 votes
0 answers
79 views

Rock Paper Scissors, with changing weapon sets and player preferences

The task The goal here is to build a RPS engine that can run tournaments of RPS games between different players. The initial version has been written with the Rock Paper Scissors Spock Lizard ruleset, ...
EdG's user avatar
  • 31
3 votes
2 answers
140 views

Beginner Rock-Paper-Scissors game

As a beginner, this is my second game in C++. It is a very simple rock-paper-scissors game. User or computer wins the game after a given number of rock,paper or scissors matches. I'd appreciate any ...
Gizem's user avatar
  • 105
5 votes
3 answers
2k views

"Rock Paper Scissors" game

I have created a rock paper scissors game in C++. ...
kit.kat.code's user avatar
1 vote
1 answer
123 views

Yet another simple Rock, Paper and Scissors game

I implemented a simple CLI based rock-paper-scissors game in Rust. The player plays against the computer. Each game has three rounds, not counting draws. Cargo.toml ...
Richard Neumann's user avatar
4 votes
2 answers
272 views

"paper, rock, scissors" game

This is the first time I made a quick program, which is a game "paper, rock, scissors'. I am looking for any advice, and information if it is done in proper way or it is not. I did my code by ...
watsky's user avatar
  • 41
4 votes
1 answer
861 views

Rock, paper, scissors with HTML & CSS & JS

I started studying web development a few months ago and to practice my skills I decided to do the game of rock, paper, scissors. Here are some questions for review: Is the use of HTML semantics ...
Lucio Mazzini's user avatar
4 votes
1 answer
231 views

"Rock, paper, scissors" game in python

To fulfil the requirements of the instructions, this version of rock, paper, scissors game works by taking a number from the user and the computer to represent their hand. (0 = rock, 1 = paper, 2 = ...
isadoramoon's user avatar
1 vote
1 answer
132 views

Rock, paper, scissors game in expressjs typescript

This is a simple 2 player game made in NodeJS and the ExpressJS framework with typescript. I've built using OOP approach to as far of an extent as I know of it. I'm really curious as to how further ...
Exodus Reed's user avatar
2 votes
3 answers
134 views

Rock Paper Scissors with file save/load

Took me a couple days and I had to make 2 versions. Version 1.2 is better looking and more readable, with better functionality. No where near optimized though, as I know nothing about that. Save and ...
Beginner's user avatar
  • 189
4 votes
2 answers
220 views

Simple implementation of Rock, Paper, Scissors game in Python

This is my first attempt at writing code from scratch. I'm visually impaired and would like to know if the code is well structured, commented and readable for a collaborator who might read it in the ...
Blinding Slow's user avatar
7 votes
5 answers
2k views

Rock, Paper, Scissors game with CPU

I have written the below shared code and wanted to ask for some optimization tips or even alternative (more elegant?) ways of solving the task at hand (maybe without ...
Gisvaldo's user avatar
0 votes
1 answer
311 views

Calculate score of rock-paper-scissors (Advent of Code 2022: Day 2)

Advent of code, Day 2. Here is my code. Less verbose version of the question follows. ...
Infinity's user avatar
  • 505
3 votes
1 answer
389 views

Beginner in Python - Rock Paper Scissors game

Im a beginner in python and just started making little games and projects like this rock paper scissor one. Any advice to write this shorter or any better? I got kicked off of stack overflow for a ...
Austin0x's user avatar
3 votes
4 answers
245 views

simple Rock, paper, scissors game

I just recently started learning how to program and how to use python and after watching a few courses I made a simple Rock paper scissors game where basically the script randomly chooses Rock, paper ...
Greg's user avatar
  • 31
3 votes
3 answers
155 views

Rock, paper, scissors bot

...
Akshaltz's user avatar
5 votes
1 answer
168 views

Rock, Paper, Scissors game in object-oriented Python

I would like to learn Python and (maybe...) someday become a developer. Nevertheless... I've written a small "Rock, Paper, Scissors" game. Can you please take a look at the code and write ...
Mariusz Wiśniewski's user avatar
1 vote
1 answer
685 views

Simple Rock Paper Scissor game

I am new to javascript and I made a simple Rock Paper scissor game with User Interface. There will be 5 rounds and user will play against the computer by clicking any of the three buttons. See Live ...
Samir's user avatar
  • 143
0 votes
1 answer
190 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 ...
Nabeel Rajabali's user avatar
7 votes
2 answers
2k 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. ...
Lucio Mazzini's user avatar
4 votes
2 answers
1k 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 ...
rohit's user avatar
  • 41
2 votes
3 answers
563 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 ...
Jakub's user avatar
  • 456
2 votes
1 answer
107 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 ...
Keke's user avatar
  • 21
3 votes
1 answer
87 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. ...
clush's user avatar
  • 31
2 votes
2 answers
1k 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? <...
Leprekus's user avatar
6 votes
3 answers
4k 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 ...
pat's user avatar
  • 63
15 votes
5 answers
4k 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 ...
darrancebeh's user avatar
4 votes
1 answer
241 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 ...
Xinite's user avatar
  • 41
6 votes
1 answer
644 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 ...
ImNotThatCSharp's user avatar
5 votes
2 answers
8k 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 ...
am2021's user avatar
  • 315
0 votes
2 answers
494 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'...
TheTempest7's user avatar
2 votes
1 answer
307 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. ...
MORTAL's user avatar
  • 3,278
2 votes
2 answers
175 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 ...
CrazyKanav's 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 ...
Zoran Jankov's user avatar
11 votes
3 answers
409 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 ...
Linux Lavender's user avatar
4 votes
2 answers
336 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! ...
CrashcarWill's user avatar
2 votes
2 answers
486 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 ...
Ekrem Gulcan's user avatar
1 vote
1 answer
391 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 ...
ganiyu's user avatar
  • 19
4 votes
4 answers
3k 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 ...
edrrujqg's user avatar
3 votes
1 answer
108 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 ...
impopularGuy's user avatar
3 votes
4 answers
2k 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 ...
Ekrem Gulcan's user avatar
2 votes
1 answer
108 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 ...
Sidwho's user avatar
  • 23
3 votes
1 answer
331 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 ...
Thy.noob's user avatar
9 votes
2 answers
344 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 ...
invader_vim's user avatar