Git Product home page Git Product logo

2110_json_obstacle_course's Introduction

2110 JASON OBSTACLE COURSE

Setup, Features, and Creation

Setup

  • This project was built using Ruby 2.7.2.
    • If you do not have a version of Ruby installed on your computer you can check out this guide
  • Clone down the repository to your local machine.
  • This project uses the following gems:
    • Matrix: This should come standard with your installation of Ruby 2.7.2. If you are getting require errors try installing this gem.
  • That's it! You should be good to go!

Feature

  1. Check out our cohort norms!
  • By running $ ruby norms.rb as a terminal command inside the repo's local directory you can see a pretty printed list of our cohort norms. Look fmailiar? IT SHOULD!! This is all about JSON!
    • If you'd like to listen to them too, run $ ruby norms_english_serializer.rb
  1. Let's play a game!
  • From your terminal, run $ ruby json_game_runner.rb while inside the repo's local directory to boot up JASON BINGO!
    • Press P to play or Q to quit.
    • Follow the on-screen game-play instructions
    • When you see a JASON from your game board, type in their name and hit return.
    • You win when you have three X in a row.

Creation

  • This app was created as a scalable bingo board for anyone to use. Feel free to fork/clone this repo and repurpose for your own uses.
    • To make it your own:
    1. In json_game.rb adjust the game board size to an integer of your choosing. (With odd numbers the free space is in the middle of the board, with even numbers it is placed randomly)
    2. In the make_board method in that same file change the jasons variable to be an array of strings, integers, or whatever you would like your game board to be populated with.
    3. Start up the game using the instructions above and have a blast.
  • Much of this game could stand a refactor to abstract some of the code to different classes or module. On the to-do list for future free time.
  • The particular challenge of this game was creating an end game function that was dynamic and functional. In a future refactor I hope to use the Matrix logic for all of the check_game_end? logic.

2110_json_obstacle_course's People

Contributors

jbreit88 avatar henchworm avatar

Watchers

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