Help with Java Calkuro!

Hey guys was wondering if anyone could help me out with a problem I am having.

I am trying to build a Calkuro game similar to the one found here:

http://www.youplay.com/games/play/83/170482/

At the moment I’m trying to come up with ideas as to how to ‘Group’ the cages of numbers on the game grid, (if you follow that earlier link this will make sense).

So far the only solution I can come up with is to hard code in all the possible cage combinations, but there must be an easier way! :stuck_out_tongue:

Any suggestions as to how I could go about creating this would be very appreciated.

Thanks heaps!

Seems like there should be a way to use a few random function calls. Are there rules like there has to be certain pattern?

If you do make a template (perhaps the easiest thing to do) then you can save a lot by making sure it is something you can rotate and flip. That gives you 8 possibilities from one pattern.

No rules, the puzzle can be any variation of cages we can come up with.

The main problem I’m having is working out how to group the numbers within the cages.

I’m really stuck. Please help me! :stuck_out_tongue:

Yay I worked it out :slight_smile: Thanks guys!

http://imageshack.us/a/img11/6945/calkuro.png