Git Product home page Git Product logo

markovtextadventure's Introduction

Markov Text Adventure Analysis

This is a Markov analysis of the The Teeny Tiny Mansion. Please see Evan Miller's blog for the basic information on what this is supposed to do.

Usage:

julia MarkovTextAdventure.jl

or

python MarkovTextAdventure.py

Typical output:

Scenario 1: Green-key bug and help-me bug
 => There is a dead end :-(
   => Calculating how bad it is...
   => Still calculating...
 => This bug affects 78.46% of button-mashing players
 => Valid states: 1680
 => MAX_FINISH_DEPTH: 14
Scenario 2: Green-key bug only
 => There is a dead end :-(
   => Calculating how bad it is...
   => Still calculating...
 => This bug affects 25.00% of button-mashing players
 => Valid states: 1664
 => MAX_FINISH_DEPTH: 14
Scenario 3: Help-me bug only
 => There is a dead end :-(
   => Calculating how bad it is...
   => Still calculating...
 => This bug affects 71.28% of button-mashing players
 => Valid states: 1680
 => MAX_FINISH_DEPTH: 14
Scenario 4: No bugs (hopefully)
 => 59 recurrent classes and no dead ends! Hooray!
   => Verifying the result...
   => Still calculating...
 => This bug affects -0.00% of button-mashing players
 => Valid states: 1664
 => MAX_FINISH_DEPTH: 14

Python differences

The Python port (contributed by hackerb9 has some differences from the Julia version.

Changes:

  • MarkovTextAdventure.py runs on Python (2 and 3).
  • Uses Arnoldi Iteration and sparse arrays.
  • Runs faster, requires less memory.
  • Now works on CPUs from the 1990's which lack SSE2 (woohoo!).
  • Does not yet implement % button-masher code.

To do:

  • Calculate % of button-mashers affected.
  • Make matrix more sparse by culling actions that go "backward" .
  • Allow Alice and Bob to be eaten by a GRUE.

NB: This is a work of ergodic fiction, suitable for appropriate age groups only.

markovtextadventure's People

Contributors

evanmiller avatar hackerb9 avatar

Watchers

 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.