Skip to content

Instantly share code, notes, and snippets.

View johnwquarles's full-sized avatar

John W Quarles johnwquarles

View GitHub Profile
@johnwquarles
johnwquarles / gist:9800adbe5d2e19ff7227
Created May 17, 2015 04:57
rudimentary alert-window blackjack (dealer goes first..?)
var API_URL = "http://deckofcardsapi.com/api";
var API_PROXY = "https://jsonp.afeld.me/?url=";
var game;
startGame();
// to start off the game, make a new game object (with attributes that will preserve the game's state, ie, who has what cards) and then
// ask the API for a deck ID to assign to the game object's deck (we need to use it for subsequent calls to the API, when we ask it for cards from
// our deck).
// We can't do anything until we have that deck ID, but the program would happily continue on prior to actually loading the object that contains the
@johnwquarles
johnwquarles / whack_a_link.js
Last active August 29, 2015 14:20
Whack-a-link