DEV Community

Ania Kubow
Ania Kubow

Posted on

6 2

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

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​

SurveyJS custom survey software

JavaScript UI Libraries for Surveys and Forms

SurveyJS lets you build a JSON-based form management system that integrates with any backend, giving you full control over your data and no user limits. Includes support for custom question types, skip logic, integrated CCS editor, PDF export, real-time analytics & more.

Learn more

Top comments (1)

Collapse
 
nickytonline profile image
Nick Taylor

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

The Most Contextual AI Development Assistant

Pieces.app image

Our centralized storage agent works on-device, unifying various developer tools to proactively capture and enrich useful materials, streamline collaboration, and solve complex problems through a contextual understanding of your unique workflow.

👥 Ideal for solo developers, teams, and cross-company projects

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay