Giter Site home page Giter Site logo

mascot_race's Introduction

mascot_race

A day at the race

WDI - Lemon, 3/23/2015

Contributors

  • Qiao Lin
  • Steve McIntosh
  • Molly Setzer

##What data will your variables represent and what will they be called?

  • var distance---> determines random distance inside this.run=funtion() inside var Mascot function
  • var Smaller---> determines the two smallest values
  • var Smallest---> determines the smallest value
  • var raceDistance ---> the given variable length of the race (20 meters)
  • var lowest---->funtion that determines if there is a winner (or tie) by comparing var race=function()

##What objects will you need to create?

  • var mascot1 = new Mascot("Pete", "Potato", 4);
  • var mascot2 = new Mascot("Benny", "Blueberry", 4);
  • var mascot3 = new Mascot("Harry", "Hamburger", 4);

note: mascot1, mascot2, and mascot3 all need to be created and hold values for this.name, this.food, this.endurance, and this.run

##What functions will you need to create?

  • var race---->function that compares the variable racedistance, to mascot1, to mascot2, to mascot3

##Who will be responsible for which section of code, or will you all be writing each section together?

  • We decided to all approach the problem individually for 15 minutes and then compare our ideas.

##Most importantly, what kind of food items are best for racing against each other?

  • Pete the Potato won our race!

mascot_race's People

Contributors

mawlsetz avatar scmgithub avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

mawlsetz

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.