Skip to content

Elixir Rock, Paper, Scissors #4

@emson

Description

@emson

Recreate the classic "Rock, Paper, Scissors" game in Elixir. See the website for more details : http://elixirgolf.com/articles/elixir-rock-paper-scissors/

  • The user will input their choice as a String of 3 characters e.g. "rps"
  • The program will then output as a String of 3 characters "spr" and a result e.g. "Draw", "Win", "Lose"
  • The program will choose it’s response output randomly
  • Each individual input character will always output one of the three possibilites
  • If the user enters blank or any other character, then the program simply returns
  • The program should not be influenced by the user’s input, i.e. it should make it’s choice at random
  1. Please add your solutions as comments to this Github issue
  2. Remember to add your Twitter handle (I will link to it if you get a mention)
    Many thanks, Ben
    When the puzzle is over I'll write them up on http://elixirgolf.com and link back to your Twitter handle

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions