DEV Community

Jacob Stern
Jacob Stern

Posted on

Day 52 / 100 Days of Code: Rock Paper Scissors (RPS) Project

Wed, August 21, 2024

It’s not just me who thinks Rock Paper Scissors (RPS) is awesome. I used to play RPS sometimes when I was underway in the Navy, and I’ve even seen a couple of small property rights court cases decided by RPS. This simple game has a surprising range of applications!

Thoughts on the RPS Project

  • Codecademy’s Flexibility: One thing I love about Codecademy is how it allows us to calibrate the control flow to be less verbose. Instead of comparing an input to a list of variables in a condition statement, you can create an array and use modern JavaScript methods to compare them. For example, when I see radius * radius * radius, I think, why not write radius ** 3?
  • Importance of Practice: One of the reasons I enjoy practicing coding is that online learning sometimes skips the planning phase or abbreviates and consolidates steps to keep things engaging. Practice questions help fill in those gaps and reinforce the concepts.
  • Staying Focused: I find the Pomodoro timer incredibly useful for maintaining focus. I’ll continue using it daily to keep my coding sessions productive.

rockPaperScissors

Hostinger image

Get n8n VPS hosting 3x cheaper than a cloud solution

Get fast, easy, secure n8n VPS hosting from $4.99/mo at Hostinger. Automate any workflow using a pre-installed n8n application and no-code customization.

Start now

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

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

Okay