Skip to content

Conversation

@nealey
Copy link

@nealey nealey commented Aug 5, 2018

I guessed at what chance was supposed to do: we now pick a number between 0 and 100 every time through the loop (1 second), and if the number is less than chance, you get a strike.

@nealey
Copy link
Author

nealey commented Aug 5, 2018

I found a gist that demonstrates chance in use, so I've updated the code.

Now it chooses a random integer between [0,chance), and if it's zero, you get a strike. This frequency is way more gratifying when you first upload it :)

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.

1 participant