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

Three small fixes #1

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Three small fixes #1

wants to merge 3 commits into from

Conversation

philomory
Copy link

There are three small bugs in the code as it stands:

  1. The randomization method allows for the same tile to be chosen repeatedly, e.g., ['boy.png', 'boy.png', 'boy.png', 'boy.png' ... ],
  2. The tile type array is appended to itself, in order, so the matching tiles are always in the same column, two rows below (or above),
  3. The app behaves incorrectly if the player taps their active tile a second time rather than choosing a new tile.

This pull request fixes these issues.

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