Skip to content

Commit

Permalink
style: rename internal functions for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
apowers313 committed Mar 16, 2021
1 parent 4da358e commit 3d34c8c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ function buildWasmModule() {
console.info(`NetHack run # ${runCount} completed with status: ${errorCode}`);
printTimer();
// run NetHack in an infinite loop
runNethack();
startNethack();
},
logReadFiles: true,
// noExitRuntime: false,
Expand All @@ -29,8 +29,8 @@ function buildWasmModule() {
};
}

// run NetHack
function runNethack() {
// start / restart NetHack
function startNethack() {
runCount++;
console.info(`Starting NetHack: run #${runCount}`);
printMemory();
Expand Down Expand Up @@ -116,7 +116,7 @@ module.exports = {
runNethack: async function() {
await init();
nethackInternalLogger = new Log("nethack-internal");
runNethack();
startNethack();
},
crl,
};

0 comments on commit 3d34c8c

Please sign in to comment.