Skip to content

Instantly share code, notes, and snippets.

View PlenipotentSS's full-sized avatar

Steven Stevenson PlenipotentSS

View GitHub Profile
<script>
var debug = false
var counter, openPile;
//NEED WELCOME/INTRO
//create class of cards
function Card(rank, suit) {
this.rank = rank;
this.suit = suit;
<script>
var owl, cat, whowins, winner;
whowins= prompt("Guess who will the tootsie pop contest, Owl or Cat?");
function Animal(name, speed, focus){
this.name= name;
this.speed=speed;
this.position=0;
this.focus= focus;
this.run= function(){
if(Math.random() *10 < this.focus) {