Movatterモバイル変換


[0]ホーム

URL:


Skip to content
DEV Community
Log in Create account

DEV Community

Cover image for Rock Paper and Scissors with Elixir
Diego Novais
Diego Novais

Posted on • Edited on

     

Rock Paper and Scissors with Elixir

Hey, dev!

Let's code the game Rock, Paper, and Scissors in Elixir?

About the game

The game Rock, Paper, Scissors (aka "Ro-Sham-Bo"; janken; "Bato, Bato, Pick"; and "Scissors, Paper, Stone") is a simple hand game with many names and variations.

In the game, usually, we have two opponents. And the players use their hands to choose and represent one of three items: a rock, paper, or scissors.

Who wins?

The player who chooses the most powerful object is the winner of the game.

As the picture below:

  • Rock breaks the scissor;
  • Scissor cut the paper;
  • Paper covers the Rock;

Who wins?

One crucial detail is that the players can also draw the game when they choose the same item.

In the next article we'll initialize the project.

See ya!

Contacts

Email:contato@diegonovais.com.br
Linkedin:https://www.linkedin.com/in/diegonovais/
Twitter:https://twitter.com/diegonovaistech

Top comments(0)

Subscribe
pic
Create template

Templates let you quickly answer FAQs or store snippets for re-use.

Dismiss

Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment'spermalink.

For further actions, you may consider blocking this person and/orreporting abuse

Senior Software Engineer | Ruby | Ruby On Rails | Elixir | Phoenix | Technical Writer | LLM
  • Location
    Brazil
  • Joined

More fromDiego Novais

DEV Community

We're a place where coders share, stay up-to-date and grow their careers.

Log in Create account

[8]ページ先頭

©2009-2025 Movatter.jp