GithubHelp home page GithubHelp logo

visiona / assignment_oop_warmups_1 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from vikingeducation/assignment_oop_warmups_1

0.0 3.0 0.0 34 KB

Ruby practice, Cloning Enumerable, Rock Paper Scissors etc.

Ruby 100.00%

assignment_oop_warmups_1's Introduction

Recursion methods in Ruby - warmups

Created in Ruby.

  • Enumerables.rb
  • my_all.rb - extends the Array class and works the same as Ruby's native all? method.
  • my_each.rb - extends the Array class and has identical functionality to Ruby's native each method
  • my_select.rb - extends the Array class and has identical functionality to Ruby's native select method.
  • my_benchmark.rb - that takes a parameter number_of_times and a block and returns how long that block took to run that block, that many times.
  • my_inject.rb - extends the Array class and works the same as Ruby's native inject method
  • my_reverse_.rb - own method that reverses any string you put into it
  • my_map.rb - extends the Array class and has identical functionality to Ruby's native map method.
  • fibs.rb - takes an integer and spits out an array of that many elements of the Fibonacci Sequence, which starts with 0 and 1 and computes the next element by adding the most recent two elements together.
  • rock_paper_scissors - command line OOP Rock-Paper-Scissors game, starting with one player against the computer.
  • tower_of_hanoi_oo.rb - Rebuilt Tower of Hanoi using good object-orientation Screen Shot of Tower of Hanoi game in Bash

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_oop_warmups_1's People

Contributors

eriktrautman avatar visiona avatar

Watchers

 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.