Skip to content

About

Simple and lightweight rock paper scissors game (without long if-elif-else loop) in just 45 lines of code.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

RockPaperScissors

Simple and lightweight rock paper scissors game (without long if-elif-else loop) in just 45 lines of code.

I've often seen advice for novice developers to write a game of rock, paper, scissors. In all examples I've seen infinite if-elif-else loops. I’m sure it’s necessary to understand how such loops work, but the program doesn’t come out short and easy.

So I decided to write a short version with just one such loop.

The result is in front of you.

About

Simple and lightweight rock paper scissors game (without long if-elif-else loop) in just 45 lines of code.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages