Skip to content

Job Simulation - Ania#18

Open
aniagonzalez wants to merge 2 commits intoAda-C5:masterfrom
aniagonzalez:master
Open

Job Simulation - Ania#18
aniagonzalez wants to merge 2 commits intoAda-C5:masterfrom
aniagonzalez:master

Conversation

@aniagonzalez
Copy link
Copy Markdown

No description provided.

@sudocrystal
Copy link
Copy Markdown

Though I didn't specify it: it would have been nice if this was written as a class that you call method(s) on.

Comment thread job-simulation.rb
# Validate that number is between 1 and 6 (a roll of dice)
unless number > 0 && number < 7
raise ArgumentError.new("Only numbers between 1 and 6 are allowed")
end
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh! I didn't know how to do this in Ruby so I did it a sub-optimal way in my example solution.

@sudocrystal
Copy link
Copy Markdown

👍 looks good

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants