Upload files to ''
This commit is contained in:
parent
2074092648
commit
fa6c03c27f
1 changed files with 2 additions and 2 deletions
|
@ -22,7 +22,7 @@ let problem = await prompt("<What's the project? (no external libs or reqs)>: ")
|
||||||
|
|
||||||
let lang = await prompt("<What's the lang? (js, python, ppython [panda3d python])>: ");
|
let lang = await prompt("<What's the lang? (js, python, ppython [panda3d python])>: ");
|
||||||
|
|
||||||
let generations = await prompt("<How many generations? (more generations = more memory used and more time!)>: ");
|
let generations = await prompt("<How many answers? (more answers = more memory used and more time!)>: ");
|
||||||
generations = Math.ceil(Number(generations))
|
generations = Math.ceil(Number(generations))
|
||||||
console.log("coding, this will take a bit of time!");
|
console.log("coding, this will take a bit of time!");
|
||||||
|
|
||||||
|
@ -101,7 +101,7 @@ async function aThousand() {
|
||||||
`
|
`
|
||||||
|
|
||||||
for (let i = 0; i < generations; i++) {
|
for (let i = 0; i < generations; i++) {
|
||||||
console.log(`Generation ${i + 1}`);
|
console.log(`Answer ${i + 1}`);
|
||||||
let potentialAnswer = await main();
|
let potentialAnswer = await main();
|
||||||
potentialAnswers.push(potentialAnswer);
|
potentialAnswers.push(potentialAnswer);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue