summaryrefslogtreecommitdiff
path: root/lambda-calcul/javascript/index.js
diff options
context:
space:
mode:
authorEmmanuel Gaillot <emmanuel.gaillot@gmail.com>2025-12-20 22:27:27 +0100
committerEmmanuel Gaillot <emmanuel.gaillot@gmail.com>2025-12-20 22:27:27 +0100
commit2ac732dc527d53974d65a5afbb33c452a567797b (patch)
treebe422f4d47652dd92552302c9bcb5bd954839cf5 /lambda-calcul/javascript/index.js
parent1b1877e3328170fe839d2f8ca4d108ec2b0a0454 (diff)
downloadlambda-nantes-2ac732dc527d53974d65a5afbb33c452a567797b.tar.gz
Post solution
Diffstat (limited to 'lambda-calcul/javascript/index.js')
-rw-r--r--lambda-calcul/javascript/index.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/lambda-calcul/javascript/index.js b/lambda-calcul/javascript/index.js
index c01c39e..d8b5e68 100644
--- a/lambda-calcul/javascript/index.js
+++ b/lambda-calcul/javascript/index.js
@@ -15,7 +15,8 @@ const solveNextChallenge = (token) => client
.nextChallenge(token)
.then(challenge => console.log(`Next challenge: ${challenge}`) || challenge)
.then(client.solve)
- .then(solution => console.log(`… solved into: ${solution}`));
+ .then(solution => console.log(`Posting solution: ${solution}`) || solution)
+ .then(solution => client.postSolution(token, solution));
const waitForEnterToBePressed = () => {
const readlineInterface = createInterface({