Giter Site home page Giter Site logo

ruby-racer-3's Introduction

Ruby Racer 1 Outrageous Fortune

##Learning Competencies

  • Work with input / output from the console
  • Model a real world system using ruby code

##Summary

Vroom vroom! We're going to build a simple game called Ruby Racer. This is a "game" like Chutes and Ladders is a game: the fixed board layout and random rolls of the dice completely determine the outcome.

The game works like a (random and much quieter) drag race. There are two players. Each starts with a "car" sitting at the beginning of the track, side-by-side. The track is N squares long. Players take turns rolling a die and advance their car according to the value of the roll.

We'll create less fatalistic versions in future challenges.

This challenge is about modeling a simple game with little human interaction and no strategy. You'll learn a bit about how console output works when you have to print the board. The starting code is well-written, so pay attention to the style, what methods exist, what their inputs and return values are, and how they segment the actions necessary to "play" the game.

##Releases

###Release 0 : Implement Using the Skeleton Code

The source gist for this challenge contains a lot of skeleton code; use it! You should mostly be filling out the pre-defined RubyRacer class, although feel free to dress up the output and have a little fun with the logic of the game. Maybe add some totally sweet ASCII art?

Here's what the output should look like, roughly:

https://www.youtube.com/embed/a4u4hV7Cguw

Note: Are you assuming there are only two players and they're always labeled 'a' and 'b'? Why? If it's intentional as a means to get a simpler version up and running, that's fine, but it's important to be clear about what assumptions your program is making and why! Try to write a version that accepts any number of players (identified by single characters) as input.

###Release 1 : Think of Fun Additions

As a thought experiment, think about what would make this game more fun? Powerups? Landmines that send you back to the start? More player control?

Is your code well-suited to adding these features or would it be difficult?

##Resources

ruby-racer-3's People

Contributors

aespaldi avatar johana-star avatar

Stargazers

Joan Petersohn 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.