Giter VIP home page Giter VIP logo

dorothy's Introduction

= Dorothy

Dorothy is a z-machine interpreter library.  It's core is C (taken in part from
Frotz), the interface is Ruby.  Ideally this project forms the basis for
writing interpreters and other tools.

The two most critical references for this are:

  * The Z-Machine Standards Document <http://www.inform-fiction.org/zmachine/standards/z1point0/index.html>
  * Frotz's source code <http://frotz.sourceforge.net/>

= Demo

There is a demo webapp that uses Dorothy at iFrotz <http://ifrotz.org>.

= Testing

You'll need the Inform 6 to compile the test programs <http://www.inform-fiction.org/software/index.html>.

= Sample IRB Session

eki@indus> irb -r dorothy                                    ~/projects/dorothy
>> m = Z::Machine.new( "minizork.z3" )
=> #<Z::Machine:0xb7cd7be0>

>> m.run
=> nil

>> m.output
=> ["MINI-ZORK I: ", "The Great Underground Empire", "\n", "Copyright (c) 1988
Infocom, Inc. All rights reserved.\nZORK is a registered trademark of Infocom,
Inc.\nRelease ", 34, " / Serial number ", "8", "7", "1", "1", "2", "4", "\n",
"\n", "West of House", "\n", "You are standing in an open field west of a white
house, with a boarded front door. ", "You could circle the house to the north
or south.", "\n", "There is a ", "small mailbox", " here", ".", "\n", "\n",
">"]

>> m.output.clear     
=> []

>> m.keyboard << "open mailbox\n"
=> "open mailbox\n"
>> m.run
=> nil

>> m.output
=> ["> ", "open mailbox", "\n", "Opening the ", "small mailbox", " reveals ",
"a ", "leaflet", ".\n", "\n", ">"]


dorothy's People

Contributors

eki avatar

Stargazers

Angus H. avatar Paul Pajo avatar

Watchers

Paul Pajo avatar James Cloos 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.