• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps auto generated puzzles

olijf

Newbie
hi all,

I am a beginning android developer with about 2 months experience now (3hours aday average).
I did a lot of tutorials and a lot of simple practice apps.

Time to push the limits a little bit... hope I am ready for it.
I want to make a sliding puzzle ( 3 X 3 or morewith the right corner cut out and slide to the solution ) were people can not only choose out of the puzzles I've added but also their own pictures from their gallery/SdCard.

So the app needs to contain:
- a class that cuts up the image in 3x3, 4x4 or 5x5 and removes the right corner
- a class that randomly shuffles the puzzle parts.
- the puzzle class itself that will allow you to slide the pieces and notice's when the puzzle is correct.
- a class that will get the image from the sdcard and save it to a variable so i can do the steps above with it.

What classes and objects do i need for this? just a global line with what i will need and a difficulty degree on a scale from 1to10, so i know if this is do-able with my android skills.

thanks in advance,
~Olijf
 
What classes you need entirely depends on your design. You already mentioned what methods you need in your OP. If it were me, I would make a class for a puzzle piece, a class for the actual board, an activity class, and that's about it, I think.

EDIT: As for difficulty, overall I'd rate the app as about a 3/10. It's a common programming project in 1st level java courses.
 
Back
Top Bottom