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

Comments for 12-pce Rectangular Puzzle

Return to 12-pce Rectangular Puzzle

A new version of this scenario was uploaded on Sat Mar 08 19:39:30 UTC 2014
PointifixPointifix

2014/3/8

sometimes it stops while pulling items from sideboard into the mainboard ;) little bug i found :P
danpostdanpost

2014/3/8

@Pointifix, both the sounds and images folders are empty. And you can see how much code is in the Puzzle and Piece classes. The only other code is in the Text class which can be viewed from my TextFile Viewer World Class scenario. As of right now, the project folder is just under 86 KB. I use a 12-character string to store any solution. The index of each character is the same as the piece number, so only its location needs stored, and there are only 60 possibilities for that. The 'turn' and 'flip' do not need saved as they can be determined after the pieces are placed on the grid. Each pieces location can be stored using just upper and lowercase letters and 8 number characters (26+26+8 = 60).
PointifixPointifix

2014/3/8

with images and sound i ment other scenarios
danpostdanpost

2014/3/8

@Pointifix, maybe you should start an 'Other' discussion for this general UserInfo topic.
danpostdanpost

2014/3/8

@Pointifix, what exactly do you mean by 'it stops'? is this something you can re-create (having it 'stop' in like manner)? was it on the last piece being brought over to the mainboard area, the first piece or just some random piece in between?
PointifixPointifix

2014/3/8

the last piece i think it was, only had it twice. Greenfoot stops so it does not return in your code i think
danpostdanpost

2014/3/8

@Pointifix, when was the last time it happened? because I had fixed a similar problem on an earlier version.
PointifixPointifix

2014/3/8

before the last update i had this
danpostdanpost

2014/3/8

@Pointifix, if it happens again, please let me know (with specifics so I can narrow down where the problem may reside). Also, being able to duplicate the unwanted behavior might help.
A new version of this scenario was uploaded on Sat Mar 08 21:51:49 UTC 2014
danpostdanpost

2014/3/8

UserInfo saving and scoring implemented.
PointifixPointifix

2014/3/9

Got this bug again when i pulled in piece number 9, as you can see on this photo its inside the mainboard but still it is small as on the sideboard. Greenfoot stopped again: http://s14.directupload.net/images/140309/nuvximu2.jpg
danpostdanpost

2014/3/9

@Pointifix, I cannot say what might be causing this. I looked over the code and am baffled. The only thing I found 'wrong' with the code is that a 'setColor' statement could be moved to outside a loop (so it would set the color just once instead of multiple times).
danpostdanpost

2014/3/9

@Anyone, please report any problems you may have with this (other than solving the puzzle).
danpostdanpost

2014/3/9

@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.
A new version of this scenario was uploaded on Sun Mar 09 13:24:02 UTC 2014
danpostdanpost

2014/3/9

@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).
PointifixPointifix

2014/3/9

mhhm maybe you fixed that bug, but now i got this: http://www.fotos-hochladen.net/view/solutiona3si796pdx.jpg i won with this
danpostdanpost

2014/3/9

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.
PointifixPointifix

2014/3/9

im the first who got to highscore (of course except you)
danpostdanpost

2014/3/9

@Pointifix ... yes. congrats!
PointifixPointifix

2014/3/9

i tried mirroring my solution, doesnt work, so well done code ;)
A new version of this scenario was uploaded on Sun Mar 09 15:21:52 UTC 2014
danpostdanpost

2014/3/9

@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.
PointifixPointifix

2014/3/9

k ;) ill try some time later again
A new version of this scenario was uploaded on Sun Mar 09 15:41:06 UTC 2014
A new version of this scenario was uploaded on Sun Mar 09 15:45:50 UTC 2014
A new version of this scenario was uploaded on Mon Mar 10 08:57:37 UTC 2014
A new version of this scenario was uploaded on Mon Mar 10 20:17:11 UTC 2014
A new version of this scenario was uploaded on Mon Mar 10 20:23:02 UTC 2014
A new version of this scenario was uploaded on Tue Mar 11 00:27:57 UTC 2014
A new version of this scenario was uploaded on Tue Mar 11 00:32:01 UTC 2014
danpostdanpost

2014/3/11

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.
danpostdanpost

2014/3/12

At least 18 unique solutions. Is there no one else who can come up with just one? Other than myself, only Pointifix has.
PointifixPointifix

2014/3/12

its not as easy as you think ;) youll need 20 trys to get one and i dont think everyone stays so long ;)
A new version of this scenario was uploaded on Sun Mar 16 02:24:12 UTC 2014
danpostdanpost

2014/3/16

Added the missing ranking numbers in with high score stats.
Super_HippoSuper_Hippo

2014/3/16

I think this just need some luck, but I don't have any.
danpostdanpost

2014/3/16

Hint: most solutions have the 10, 5 and 1 side by side (the 4 is often near also).
PointifixPointifix

2014/3/16

it only counts a miss if all objects were taken from the sideboard or what?
danpostdanpost

2014/3/16

I does not count misses at all. It just records the different solutions you have found.
PointifixPointifix

2014/3/16

'Added the missing ranking numbers in with high score stats.' Oh sry understood this the false way, thought that missing would be counted as well ;D good thing :)
A new version of this scenario was uploaded on Sun Mar 16 13:39:39 UTC 2014
danpostdanpost

2014/3/16

Had to re-size the app window (I have to solve the puzzle each time and get to the Stats screen before uploading or the Stats screen will end up with scrollbars).
A new version of this scenario was uploaded on 2018-02-07 19:19:14 UTC
danpostdanpost

2018/2/7

Now freezes up in HTML5.
A new version of this scenario was uploaded on 2018-02-07 21:43:17 UTC
nolttr21nolttr21

2018/2/7

why are some user images big and some are small?
danpostdanpost

2018/2/7

@nolttr21, the images are smaller when in the tray; they become normal size when in the placement area. This was done to reduce the size of the tray (which would need to be around two to three times the size of the rectangle, otherwise).