Skip to content

Conversation

@jonahroth
Copy link

@maxdignan
Copy link

This seems good.

happiness_vals = []
happiness = 0
(1..@population).each do
happiness_vals.push(rand((100 - successful_crime_rate)..100))

Choose a reason for hiding this comment

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

Maybe move out the logic in this loop to another function, cause it's a little hairy in here with the rands and the constant values

@paradime
Copy link
Contributor

Looking good so far, you should try out the extra credit, Using TDD!

@jonahroth
Copy link
Author

My impression from the instructions was that I was supposed to get the code to pass the Rubocop tests, which it does. These are great notes and good to keep in mind for the future though

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