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

You're missing 1 display option for 9! #3

Open
tastewar opened this issue Jan 2, 2016 · 0 comments
Open

You're missing 1 display option for 9! #3

tastewar opened this issue Jan 2, 2016 · 0 comments

Comments

@tastewar
Copy link

tastewar commented Jan 2, 2016

Your display options for 9 are missing one possibility: 5+2+1+1 :-)
I believe it should look like this in your code:

case 9:
  switch(random(3))
  {
    case 0:
      bits[0]|=offset;
      bits[3]|=offset;
      bits[4]|=offset;
      break;
    case 1:
      bits[1]|=offset;
      bits[3]|=offset;
      bits[4]|=offset;
      break;
    case 2:
      bits[0]|=offset;
      bits[1]|=offset;
      bits[2]|=offset;
      bits[4]|=offset;
      break;
  }
byrdman added a commit to byrdman/fibo that referenced this issue Feb 1, 2017
One of the permutations for representing 9 was missing.
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

No branches or pull requests

1 participant