Ok, got the recursive thing done, and the removal of the boxes. Sent it in, too, so no use in changing it now to make it better. It's got a couple of bugs left in though.
1) It still refuses to check the other directions after finding a direction that works fine. 2) The boxes'll only be removed when you walk past one box in the group. 3) Pushing a box into a wall'll get an index out of bound in an array somewhere. 4) I got weird results when trying to see if you won or not, so I left that out (as it wasn't obligatory anyways :whistle: ) |
The current time is 09:50 AM (GMT) |
Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.