I hereby claim:
- I am breonknight on github.
- I am breon (https://keybase.io/breon) on keybase.
- I have a public key ASCVZJkK7loaexUBE4h4ixE680y4ARUO3CqPY4J02pHzIAo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
console.log('Sanity Check: JS is working!'); | |
$(document).ready(function(){ | |
//getting canvas from ID in the canvas class and turning it into a JS variable. | |
var canvas = document.getElementById("canvas"); | |
var ctx = canvas.getContext("2d"); | |
var x = canvas.width2; | |
var y = canvas.height-30; | |
var dx = 2; | |
var dy = -2; |
function horizontalWin(players){ | |
var counter = 0; | |
for (var x = 0; x < gamegrid.length; x++){ | |
if(gamegrid[x] === players){ | |
counter++; | |
} | |
}if(counter === 3){ | |
console.log(players + " wins"); | |
} |