By: Phichaya W.

Introduction

👋🏻 Hello everyone, my name is Phichaya. Welcome to my R project! Today, I would like to introduce you to a game called Rock-Paper-Scissors Game (Familiar with the game, right?!), which I developed using the R programming language.

This game marks my first experience writing code in R, and I must admit, it was quite challenging!!!!!!! I got stuck in a loop, not just in the game but almost in real life too 🤣🤣🤣.

In fact, this game was part of an assignment I completed during my data bootcamp at DataRockie🏕️. The task was to create a rock-paper-scissors game where the player could play up to 10 rounds or until they typed "quit" to stop the game. The program would then summarize what the scores were between the player and the computer.

I initially wrote the code to meet the assignment requirements, and the draft version is what you’ll find in the code.

However, after finishing the draft version, I wanted to make the game more user-friendly by allowing players to enter their names and have the game interact with them using their names. This led to the version you are reading now.

I hope you enjoy the game and learn alongside me đź’•!

Visit my draft ver. here ( This ver. use list to store scores and it’s not interactive with the player)

Rock-paper-scissors game - draft ver.

Game flowchart

Example Output

Code lines