initial commit

This commit is contained in:
Alec Maier
2019-08-29 22:14:54 -04:00
parent cc32a2a844
commit f1fcdf43c0
648 changed files with 102404 additions and 0 deletions

21
static/setup.js Normal file
View File

@@ -0,0 +1,21 @@
class Card {
constructor(name, team, description) {
this.name = name;
this.team = team;
this.description = description;
}
}
function generateAccessCode() {
let code = "";
let charPool = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
for (let i = 0; i < 6; i++) {
code += charPool[getRandomInt(61)]
}
console.log("Access Code: " + code);
return code;
}
function getRandomInt(max) {
return Math.floor(Math.random() * Math.floor(max));
}