Skip to content

Instantly share code, notes, and snippets.

View davidhaley's full-sized avatar

David Haley davidhaley

View GitHub Profile
@davidhaley
davidhaley / array-of-light.js
Created July 25, 2016 18:04
Array of Light
var array = [];
var arrayOfLight = function(x) {
for (i = 0; i < (x+1); i++) {
array.push(i);
}
console.log(array);
};
arrayOfLight(10);
require 'pry'
require_relative 'player'
# Two player math game.
class MathGame
RANDOM_MAX = 5
# Starts the program.
def initialize