Skip to content

Calculates max unique paths for the "wheel" puzzle from The Witness game

License

Notifications You must be signed in to change notification settings

jeekobu/witness-wheel-puzzle

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

witness-wheel-puzzle

Description

This program calculates the maximum unique paths for the "wheel" puzzles from the game The Witness.

The puzzles have 7 normal nodes (which all act as starting points), and 6 of those nodes have "exit" nodes attached to the outside of them (where your path finishes and you're unable to draw anymore). You can't revisit or pass through a node if you've been on it in the past. There are 12 normal vertices in the puzzle. If you count the edge normal nodes connecting to the exit nodes, there are 18 vertices.

Exits are special nodes: you can't start on an exit, and you must finish on an exit.

I will now attempt to draw an ASCII version of the puzzle:

                       +------+
                       |      |
                       |      |X
                    XXX+------+XXXXX
                XXXX      X         XXXXX
           XXXXXX         X             XXXX
+------+XXXX              X                XXXXX+-------+
|      |                  X                     |       |
|      |                  X                     |       |
+------+XX                X                XXXXX|       |
    X    XXXXX         +--------+    XXXXXXX    +-------+
    X        XXXXX     |        |XXXXX               X
    X            XXXXXX|        |                    X
   X               XXX |        |X                   X
   X           XXXX    +--------+XXXXX               X
   X        XXXX            X        XXXX            X
   X      XXX               X           XXX          X
   X    XXX                 X             XXXXX      X
 +-------+                  X                 XXXX   X
 |       |                  X                    +-------+
 |       |                 XX                    |       |
 |       |                  X                    |       |
 +-------+XXX               X                    |       |
            XXXXXX          X                XXXX+-------+
                 XXX     +-------+      XXXXXX
                   XXXXX |       |  XXXXX
                       X |       |
                         |       |
                         +-------+

If that diagram doesn't do the trick, try this URL, which has screenshots from the game: http://www.ign.com/wikis/the-witness/Desert_Ruins

Usage

To run the program: it's not intended to be run alone; import it as a module. The tests file gives you good examples of how to use it.

To run the tests: python -m unittest discover

About

Calculates max unique paths for the "wheel" puzzle from The Witness game

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%