This project is a simulation of a logic problem. The problem is as follows: A cat is hiding in one of five boxes that are lined up in a row. Each night the cat hides in an adjacent box, exactly one number away. Each morning you can open a single box to try to find the cat. Can you win this game of hide and seek? What is your strategy for finding the cat? Bonus: What if there are n boxes in a row? The reason why I made this project was to to help better visualize the problem. I also added a button in the bottom right corner that will allow you to see the cat. This was added to help the user better visualize the movement of the cat.
IF YOU WANT TO CHANGE THE NUMBER OF BOXES DO THE FOLLOWING: Look inside the project enter the box sprite. You will find a comment with instructions. IMPORTANT NOTE: If you simulate more than 5 boxes, there will be 2 rows of boxes. The fifth box on the top row (from left to right) is adjacent to the first box on the bottom row (from left to right).