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

Consecutive Horizontal Blocks #2

Open
nmarie22 opened this issue Oct 15, 2016 · 0 comments
Open

Consecutive Horizontal Blocks #2

nmarie22 opened this issue Oct 15, 2016 · 0 comments

Comments

@nmarie22
Copy link

Hi!

I've really enjoyed reading through your Unblock Me puzzle solver. It must have been fun to write! I chose this program to analyze for an algorithm description paper for a class and noticed a possible error (although I could be wrong!).

  • Assumption: blocks can be either two or three tiles long. If a horizontal block clocks in at four tiles long, it must be two consecutive two tile blocks (line 101 in your C++ 11 code).
  • Possible problem: But what if the two consecutive blocks are a three tile long block and a two tile long block? That would create a five tile long block and wouldn't get handled. Could there be Unblock Me levels that utilize this board layout and couldn't be solved by your program? Or am I missing something?

I'm sure this code is long past in your mind and you've moved on to bigger and better things, but I know I always enjoy going through my old code and finding things that I missed way back when I wrote it. Just wanted to point this out. Thanks for this project! I love how you read in the board state by a bitmap of the screenshot. It's been a joy to study 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

No branches or pull requests

1 participant