DEV Community

loading...

3 ways to code Rock, Paper and Scissors in JavaScript (beginner, intermediate and advanced approach)

Ania Kubow
Software Developer and YouTuber, Organizer at GeekGirl Meet-up UK | Beginner JS Tutorials here: youtube.com/aniakubow
・1 min read

In this video I show you how to code Rock paper Scissors in JavaScript in not just one approach, but 3 different approaches.

I am doing this to show you just some of the ways you can solve one problem using JavaScript. I will be using a more beginner approach to start off with, and move onto more intermediate and advanced approaches.

This is a JavaScript tutorial so there will be no styling in this tutorial. That part is totally up to you :)

Please do share your finished games with me, I would absolutely love to see what you have made and how you have chosen to style your games!

00:00​ Introduction
01:18​ Beginner Rock Paper Scissors
17:28​ Intermediate Rock Paper Scissors
32:45​ Advanced Rock Paper Scissors

You can find the code for all three games here: https://github.com/kubowania/rock-paper-scissors-x3


In most videos I use Tabnine as my A.I autocompletion tool. You can download it for free here: http://bit.ly/tabnine-top-tool​

If you would like to buy me a coffee, well thank you very much that is mega kind! : https://www.buymeacoffee.com/aniakubow

Sign up for weekly coding tips from my newsletter partnership: https://bit.ly/JS-tips​

You can also find me on:
Twitter: https://www.twitter.com/ania_kubow
Instagram: https:///www.instagram.com/aniakubow

codingbootcamp​​ #coding​

Discussion (1)

Collapse
nickytonline profile image
Nick Taylor (he/him)

Great stuff Ania! I really enjoyed the premiere on YouTube today. Looking forward to your next video! 😎

Forem Open with the Forem app