nemologic
v1.0.0
Published
Solving Nemonemo logic puzzles.
Downloads
4
Maintainers
Readme
NemoLogic.js
NemoLogic.js is a Javascript library for solving Nemonemo logic puzzles. It provides a flexible and efficient solution for solving puzzles of this type.
You can use this library for the above puzzle to get output like this:
□■□■□
■□■□■
■□□□■
□■□■□
□□■□□
Features
- Solves Nemonemo logic puzzles with various configurations.
Getting Started
Prerequisites
- node.js 14 or later
Usage
- Initialize NemoLogicSolver with row and column hints.
For the puzzle example above, you need to pass the following hint parameter:
const rowsHints = [[1, 1], [1, 1, 1], [1, 1], [1, 1], [1]];
const columnHints = [[2], [1, 1], [1, 1], [1, 1], [2]];
const solver = new NemoLogicSolver(rowsHints, columnHints, false);
- Process and solve the puzzle:
solver.process();
Check out some additional test examples: 2Fnemologic.solver.js
License
This project is licensed under the The Apache License, Version 2.0