From d2dfb7ccda23782d0692f6aff76157ba876a436d Mon Sep 17 00:00:00 2001 From: constraintAutomaton Date: Tue, 8 Apr 2025 19:12:27 +0200 Subject: [PATCH] Update README with working WebAssembly usage example. --- README.md | 127 +++++++++++++++++++++++++++++++++--------------------- 1 file changed, 78 insertions(+), 49 deletions(-) diff --git a/README.md b/README.md index 0e8438d4..cbd9ff51 100644 --- a/README.md +++ b/README.md @@ -197,57 +197,86 @@ Then a `pkg` directory will be created, containing everything you need for a web ```html - - - Scryer Prolog - Sudoku Solver Example - - - + + // Output results + document.write(`

Sudoku solver returns:

`); + for (const solution of formattedSolutions) { + document.write(`
${solution}
`); + } + + + + + + ```