all permutations

master
Matthew Huntington 3 years ago
parent e6e1843165
commit 674e65acdb

@ -1,10 +1,12 @@
let id = 0;
for( let one = 0; one < 4; one++){
for( let two = 0; two < 4; two++){
for( let three = 0; three < 4; three++){
for( let four = 0; four < 4; four++){
for( let five = 0; five < 4; five++){
for( let six = 0; six < 4; six++){
console.log(`${one} ${two} ${three} ${four} ${five} ${six}`);
console.log(`${id}: ${one} ${two} ${three} ${four} ${five} ${six}`);
id++;
}
}
}

Loading…
Cancel
Save