Learn Javascript Rock, Paper, Scissors

  Рет қаралды 9,164

CodeWithRana

CodeWithRana

Күн бұрын

#RajneeshRana #rajneeshrana #devilcoders #cwr #codewithrana
Rock, Paper, or Scissors
Rock paper scissors is a classic two player game. Each player chooses either rock, paper, or scissors. The items are compared, and whichever player chooses the more powerful item wins.
The possible outcomes are:
Rock destroys scissors.
Scissors cut paper.
Paper covers rock.
If there’s a tie, then the game ends in a draw.
Our code will break the game into four parts:
Get the user’s choice.
Get the computer’s choice.
Compare the two choices and determine a winner.
Start the program and display the results.
Contact info-:
Gmail-:. ranarajneesh07@gmail.com
Instagram-: / rajneeshrana0
Telegram-: telegram.me/co...
Telegram channel link -: telegram.me/ra...
Facebook-: / codewithrana
Website -: www.codewithra...
Twitter Link-: / rajneeshrana0
KZbin channel Direct Link-: www.youtube.co....
Instagram-: / rajneeshrana0
Free Premium Theme Or Courses Downlaod Website
link-:www.devilcoder...

Пікірлер: 11
@patrickstork7517
@patrickstork7517 Ай бұрын
Hey man was doing this while i was on the lesson. Was working at it before and that switch statement and explaining nesting of ifs really helped my confusion. Thanks alot
@official1tesla327
@official1tesla327 Жыл бұрын
May the universe bless you bro!!!!!!!!!!!!!!!!
@robertn1107
@robertn1107 2 жыл бұрын
On your switch statement, why did you not need a break between the cases?
@luikssmart7751
@luikssmart7751 2 жыл бұрын
This ^^^
@Kay-tm8pd
@Kay-tm8pd 2 жыл бұрын
Exactly what I came to ask
@joeljimenez5009
@joeljimenez5009 Жыл бұрын
break is not needed because of the return statement.
@pindrop_
@pindrop_ 2 жыл бұрын
Thanks, this is really useful.
@sayyedshoeib7107
@sayyedshoeib7107 2 жыл бұрын
how to find ho is winner after the player or computer point is 5,10 final result
@TrumpGaylord69
@TrumpGaylord69 Жыл бұрын
thanks, i don't wanna pay for pro just to do this project.
@Master_Mind-d6k
@Master_Mind-d6k Жыл бұрын
Same here bro😂. Btw, same dps lol
@official1tesla327
@official1tesla327 Жыл бұрын
@@Master_Mind-d6k 🤣🤣
THE ODIN PROJECT: FOUNDATIONS - ROCK PAPER SCISSORS | PROJECT SOLUTION
26:06
Watermelon magic box! #shorts by Leisi Crazy
00:20
Leisi Crazy
Рет қаралды 109 МЛН
Every parent is like this ❤️💚💚💜💙
00:10
Like Asiya
Рет қаралды 25 МЛН
Seja Gentil com os Pequenos Animais 😿
00:20
Los Wagners
Рет қаралды 15 МЛН
小蚂蚁会选到什么呢!#火影忍者 #佐助 #家庭
00:47
火影忍者一家
Рет қаралды 88 МЛН
Learn JSON in 10 Minutes
12:00
Web Dev Simplified
Рет қаралды 3,2 МЛН
Build JavaScript ROCK PAPER SCISSORS in 18 minutes! 👊
18:54
Rock, Paper, Scissors... and Traits | Advent of Code 2022 Day 2
21:20
chris biscardi
Рет қаралды 10 М.
Top 10 CSS One Liners That Will Blow Your Mind
13:34
developedbyed
Рет қаралды 967 М.
5 Tips for Writing BETTER For Loops in JavaScript
16:15
James Q Quick
Рет қаралды 70 М.
Why I Don't Use Else When Programming
10:18
Web Dev Simplified
Рет қаралды 1,2 МЛН
Tips and Tricks for Debugging JavaScript
13:03
James Q Quick
Рет қаралды 412 М.
Code Rock Paper Scissors In JavaScript
12:25
Kenny Yip Coding
Рет қаралды 19 М.
Watermelon magic box! #shorts by Leisi Crazy
00:20
Leisi Crazy
Рет қаралды 109 МЛН