Coder Social home page Coder Social logo

enkiv2 / skynet Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tra38/skynet

1.0 3.0 0.0 423 KB

Skynet is a command-line program that can generate stories based on a template written in a scripting language called Sky.

License: Other

Ruby 93.48% Shell 0.70% Gherkin 3.05% Python 2.77%

skynet's Introduction

Skynet

Skynet is a command-line program that can generate stories based on a template written in a scripting language called Sky.

While the program was originally created to generate a novel for National Novel Writing Month, it may also be used for other creative writing projects as well.

Though the program's source code is licensed under the MIT, the Sky files may be placed under their own individual licenses.

Installation

$ git clone https://github.com/tra38/Skynet.git
$ gem install skynet-0.1.0.gem

Usage

$ skynet path/to/story.sky

Sky Language

puts %{ #{HERO.name} never cared too much about #{NOUN}. It was too far away, too remote for him
to worry about. Instead, he would busy himself with his career as a #{HERO.job},
where he would #{HERO.job_purpose}. While he would work, #{HERO.name} wished for some
adventure in his life. Sometimes, #{HERO.name} would #{HERO.action}, but it proves no use. Ah well. }

For a 'real-world example' where Skynet may be more useful, look at story.sky.

There are currently 4 different characters...the HERO, the QUEST_GIVER, the MONSTER, and the MONSTER_KID. NOUN is a "special location" that is meant to be a focus of the story, but it does not have to be.

Because Sky is a DSL of Ruby, Ruby code would work just as fine in Sky. There may be quirks in this system that I have to discover and document.

TODO: Provide more detailed documentation.

Contributing

  1. Fork it ( https://github.com/tra38/skynet/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

skynet's People

Contributors

tra38 avatar enkiv2 avatar

Stargazers

 avatar

Watchers

 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.