Skip to content

fedorw/jigsaw

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

jigsaw

Puzzle consists of sixteen square plastic pieces with different shapes on each side of the square. Shapes are arrows pointing in, arrows pointing out, a ball and a cross. Shapes are either on the outside or cut out (negative).

(See png-file for scan of all pieces)

In this ascii representation, the shapes in parentheses () are the shapes that are cut out instead of sticking out.

   v      v      v      o  
(<)  o (>)  < (o)  o (o)  > 
  (^)    (+)    (+)    (^)

   ^      ^      +      +  
(>)  < (o)  > (+)  o (>)  < 
  (o)    (v)    (o)    (v)  

   ^      +      v      + 
(>)  + (<)  o (o)  < (>)  o 
  (o)    (o)    (+)    (^) 

   v      o      o      o  
(+)  o (o)  o (o)  o (o)  > 
  (v)    (^)    (^)    (+)  

The program just solves the puzzle by brute forcing all possibilities until it finds a solution. This is one of the solutions:

  (o)     o     (v)    (v)   
(>)  o (o)  > (>)  + (+)  < 
   v     (+)     o      ^  

  (v)     +     (o)    (^)    
(o)  > (>)  < (<)  > (>)  <  
   +     (v)     v      o   

  (+)     v     (v)    (o) 
(o)  + (+)  o (o)  > (>)  o 
   o     (v)     ^      o    

  (o)     v     (^)    (o)  
(>)  o (o)  o (o)  + (+)  <  
   o     (+)     o      ^   

About

solves plastic jigsaw puzzle

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages