Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Braden's Solution #21

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Braden's Solution #21

wants to merge 1 commit into from

Conversation

bpolly
Copy link

@bpolly bpolly commented Jun 1, 2016

No description provided.

@mikegee
Copy link
Member

mikegee commented Jun 2, 2016

Do the RSpec tests pass?

@population.each do
happiness_vals.push(rand((100 - successful_crime_rate)..100))
end
happiness_vals.each do |value|
Copy link
Contributor

Choose a reason for hiding this comment

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

You can use Enumerable#reduce here to simplify this line

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.

3 participants