no js
This commit is contained in:
parent
083b4f236c
commit
2a6c17f55c
1 changed files with 0 additions and 19 deletions
19
parse.js
19
parse.js
|
@ -1,19 +0,0 @@
|
|||
const data = require("./data/cah-cards-full.json");
|
||||
|
||||
let whites = [];
|
||||
let blacks = [];
|
||||
|
||||
for (pack of data) {
|
||||
console.log(pack.name);
|
||||
console.log("white cards: " + pack.white.length);
|
||||
if (pack.white) {
|
||||
whites.concat(pack.white);
|
||||
}
|
||||
console.log("black cards: " + pack.black.length);
|
||||
if (pack.white) {
|
||||
blacks.concat(pack.black);
|
||||
}
|
||||
}
|
||||
|
||||
console.log(whites.length);
|
||||
console.log(blacks.length);
|
Loading…
Add table
Reference in a new issue