[Coco] Jeweled game done

Kevin Diggs kevdig at hypersurf.com
Thu May 8 02:10:49 EDT 2008


Roger Taylor wrote:
> 
> 
> All I need is a routine that sets up a scrambled board of gems in a way 
> that each move leads to another possible move or moves (and collapse of 
> certain sets of gems) so that the last move clears the board.  I can't 
> find any algorithms for this on the web even though there's tons of 
> Bejeweled knock-offs with source code to come.  I think most don't have 
> a puzzle mode like the one in Bejeweled 2.  It's not like scrambling a 
> 3-D color cube.  I'm probably going to have to build the board from the 
> bottom rows up, swapping two gems vertically or horizontally as I insert 
> a vertical or horizontal set or sets.  I've tried different approaches 
> and the boards always come out where a 2 year old could solve them.
> 
Roger,

	Just a crazy thought. Maybe the algorithm that maze (old X windows maze 
program) uses to construct its mazes can be adapted?

kevin



More information about the Coco mailing list