This site requires JavaScript, please enable it in your browser!
Greenfoot back

danpost's Comments

Back to danpost's profile

At least 18 solutions (without rotating and mirroring). Is there not anyone else who can come up with just one? So far, only one person has come up with a solution -- Pointifix.
Actually, you can use an unbounded world to allow actors to exceed the border limits. Refer to the World class constructors.
danpostdanpost

2014/3/10

Either it has to do with a snake or he is sleeping.
danpostdanpost

2014/3/10

@Pointifix, probably forgot to 'Save the world' before uploading.
@Pointifix, I took the puzzle completion check out of the world act method and the Piece resizeing out of its act method, created separate methods for both and called then anytime a piece handle was dragged and moved. That should fix the moving of pieces after solution was found.
@Pointifix ... yes. congrats!
It seems to have determined that you had found a solution before the location of the piece was updated on the display. It did save your solution properly. Next time that happens, try clicking on the 'Run' button to view the stats, then click on it again and see if it adjusted. Inform me of results.
@Pointifix, I belive I have fixed the problem. Evidently the order the act method of the classes were (1) handle controlled movement of piece (and itself); (2) world checked for completion; and (3) piece checks size;. Because the check for completion was occurring before the resizing, an error crept in. It was happening on the last piece because all 12 pieces had to be in the puzzle area for the next phase of the completion check occurred and that is where it determines where the blue part of the pieces are (with the piece not being full size, it was looking outside the bounds of the image).
@Pointifix, ok I was able to duplicate it. I think it deals with how fast you pass the piece from the one side to the other. I will see what I can do with it now.