Git Product home page Git Product logo

cs7641-assignment-3's Introduction

Install Instructions
====================

Run `bin/setup_jruby.sh` from a console. This will load jruby into the path and install Nokogiri (which was used to parse XML).


Running Instructions
====================

To run the code type `bin/console` (after installing) and it will load an IRB console that you can use to play with BlackjackExperimenter (used to Q-Learning, Value Iteration, and Policy Iteration) as well as MazeExperimenter. 

To do that type

```ruby
maze_experimenter = MazeExperimenter.new
maze_experimenter.value_iteration #=> Prints output
maze_experimenter.policy_iterationg #=> Prints output
maze_experimenter.q_learning #=> Runs Q-Learning code

blackjack = BlackjackExperimenter.new # Runs QLearning by default
blackjack.value_iteration
blackjack.policy_iteration
```


You can also play the games by typing `Blackjack.play!` or `Maze.play!` as well. Though I don't really suggest that since you have to kill the process to exit out.

I honestly preferred to have this inside of a console so I could interact with it. You could easily run this on a command line but I think this is easier this way.

cs7641-assignment-3's People

Contributors

hexgnu avatar

Watchers

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.