Page 1 of 5 1 2 3 ... LastLast
Results 1 to 10 of 46

Thread: Witchess Puzzle Solver

  1. #1

    Default Witchess Puzzle Solver

    I did a thing! This will complete the daily witchess puzzles.

    Get it via "svn checkout https://github.com/AllenTuring/WitchessSolver/trunk" in your gCLI.

    It can be launched with "witchess_solver".

    I typed up the puzzle solutions in ruld (right up left down) format from the communal google doc of solutions. Currently, the script finds the puzzle number and does a lookup and translation of the solutions. (I know it may be more efficient to store the coordinates instead of the RULD, but this way it is more human-readable).

    I have left open the capability to parse the page into a model and solve it to generate solutions. Currently the script is dependent on the solution data file, whose coverage drops off at ~35.
    Please contribute with pull requests on github!
    Last edited by professorjellybean; 03-09-2016 at 05:45 AM.

  2. #2

    Default

    It works for me, but I really really really hope it works for everyone. Please let me know about any errors you encounter!

  3. #3
    Senior Member
    Join Date
    Feb 2010
    Posts
    818

    Default

    I'm not familiar enough with GIT to know what the problem is but I get the following when using the command you gave:

    Code:
    The requested repo failed validation. Complain to the script's author.

  4. #4

  5. #5
    Senior Member
    Join Date
    Dec 2013
    Posts
    360

    Default

    You need to get rid of the readme file in the top directory.

  6. #6

    Default

    Oops, thank you all. Fixes made.

  7. #7
    Member T_E's Avatar
    Join Date
    Dec 2009
    Location
    Here
    Posts
    91

    Default

    This worked well for me after the fixes- thank you for the script!

  8. #8

    Default

    No problem!
    Please send me any additional solutions or ideas for automated solving. I have very very limited ability and coverage right now.

  9. #9

    Default

    Update!
    Code now covers all puzzles up to #56, assuming the google doc is trustworthy. I did some quick cursory tests on dimension and displacement to verify, also, but nothing formal--so typos are still possible.

    Also, some puzzles appear to be non-square. However, they are still rectangular. This has been taken into consideration.

    Once I test it tomorrow, if it works, I will merge with master shortly after rollover.

    I also have a few ideas about puzzle space reduction, although it still won't be pretty. Will get around to implementing those, probably, as soon as I figure out how far I can push Mafia data structures. They kind of suck.

  10. #10
    Senior Member
    Join Date
    Dec 2013
    Posts
    360

    Default

    There's an error for solution #55.
    Code:
    55	u u u u r d d d d r r r r r r u l u r u u u l l d l d d l d l u u u r u l l u r r r r r r u
    is the correct solution.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •