GithubHelp home page GithubHelp logo

benley / analogy_farm Goto Github PK

View Code? Open in Web Editor NEW

This project forked from rspeer/analogy_farm

0.0 2.0 0.0 560 KB

A Web-based puzzle from MIT Mystery Hunt 2013.

Python 46.61% JavaScript 46.15% HTML 7.23%

analogy_farm's Introduction

Analogy Farm was a popular puzzle from the 2013 MIT Mystery Hunt. The puzzle is a web application; your goal is to interact with the web application until the answer becomes clear. The answer is a single word.

solution.txt and solved.svg contain spoilers, if you couldn't tell from the filenames.

Interesting features of the code

  • The app maintains state in a SQLite database, and updates it live. If you and someone else are solving the same instance of the puzzle, and they fill in a box, you see the box update in your browser.
  • The boxes you fill in on the page are auto-generated by finding the rectangles in solved.svg, in the script parse_svg.py.
  • It actually survived the load of the Mystery Hunt.

Interesting misfeatures of the code

  • The parse_svg script generates .json, and you need to add an assignment to it to make it a valid .js file. Oops.
  • Static file paths are hardcoded.

To do

  • Get it hosted again, probably in a gunicorn + WSGI setup (There's a server available for this purpose, if someone figures out the configuration)
  • Make it so that a single copy of the software can host multiple "teams" of progress
  • Add a reasonable way to reset progress

analogy_farm's People

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.