Skip to content

douglasjsellers/camelot-jr-puzzle-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Camelot Jr Puzzle Generator

Have your childern played the awesome board game Camelot Jr.? Have you been frustrated with the limited number of puzzles that it comes with? This is a simple way to generate a whole new set of Camelot Jr puzzles and solutions - complete with images. If you run it with all the available configurations 4772 puzzles and solutions will be generated. If you are looking for a curated book of an additional 62 puzzles here is a link to a pdf with some of the better puzzles.

Copyright

Please note that the game Camelot Jr and all of the images, rules and branding associated with it are copyrighted by Smart - Belgium / Raf Peteers. © 2005 - 2007 Concept, game design & artwork: Smart - Belgium/ Raf Peeters

Usage

Basic usage is as follows:

  • Create a new Puzzle with the puzzle pieces that you want and the available solving pieces
  • Grab the valid solutions
  • Render the board out to a nice image
  puzzle = Puzzle.new( [OrangePiece.new], [PurplePiece.new, BluePiece.new, BluePiece.new] )
  puzzle.valid_solutions.each do |valid_solution|
    rendered_starting_position = RenderedBoard.new( valid_solution.board, [PurplePiece.new, BluePiece.new, BluePiece.new] )
    rendered_solution_position = RenderedBoard.new( valid_solution.solution )

    rendered_starting_position.rendered_file( "puzzle.png" )
    rendered_solution_position.rendered_file( "solution.png" )
  end                                         

Good examples of the usage can be seen in bin/scenario_*.rb.

Samples

Puzzle Puzzle

Solution Solution

Tests

Good test coverage can be found in the specs under the tests directory

bundle exec rake test

About

Puzzle and Solution Generator for Camelot Jr Puzzle games

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages