Code Monkey home page Code Monkey logo

assignment_ruby_warmup's Introduction

Small Games in Ruby

Created in Ruby.

  • anagrams.rb - returns an array of anagrams that can be made with the specified string. Assume the input is only a single word (e.g. "loot" not "William Shakespeare").
  • dice_outcomes.rb - takes the number of dice to roll and the number of times to roll them, then outputs a visual chart in command line of how many times each possible number comes up. Example of Visual Chart in Bash
  • fibonacci.rb - outputs the Fibonacci Sequence members out to the specified number of members.
  • roll_dice.rb - returns the result of rolling N 6-sided dice where N is the input to the method (the default should be 1).
  • stok_picker.rb - takes an array of stock prices (prices on days 0, 1, ...) and outputs the most profitable pair of days on which to first buy the stock and then sell the stock

Getting Started

If you want to quick run some the examples to see the code in action, run

$ ruby example.rb

from the project directory.

Authors

Acknowledgments

It is part of the assignment created for Viking Code School

assignment_ruby_warmup's People

Contributors

visiona avatar eriktrautman avatar

Watchers

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