1.0.20 • Published 3 years ago

mad5dsudoku v1.0.20

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

sudoku (from MAD5D)

Sudoku generator node.js

Installation

	$ npm install mad5dsudoku

Usage

	const mad5dsudoku = require('mad5dsudoku');

	//Create a full random 4x4 sudoku
	let sudoku = mad5dsudoku.create_sudoku_4x4();
	//Create full random 9x9 sudoku
	let sudoku = mad5dsudoku.create_sudoku_9x9();
	//Create a full random 16x16 sudoku
	let sudoku = mad5dsudoku.create_sudoku_16x16();

	puzzle     = sudoku.grid_with_holes;
	solution   = sudoku.full_grid;


	//Create a PARTIAL random 36x36 sudoku
	//Be carefull, it's very envy for the CPU. Optimization in progress.
	let double_tableau = sudoku.creer_combo_sudoku_36_36();

	puzzle     = double_tableau[1];
	solution   = double_tableau[0];

Usage(old, depreciated)

	
	//BREAK CHANGE, BE CAREFULL
	//This old method will be delete the 01/09/2021 (dd/mm/aaaa)
	const sudoku = require('mad5dsudoku');
	//Create full random 9x9 sudoku
	let double_tableau = sudoku.creer_combo_sudoku();
	//Create a full random 4x4 sudoku
	let double_tableau = sudoku.creer_combo_sudoku_4_4();
	//Create a full random 16x16 sudoku
	let double_tableau = sudoku.creer_combo_sudoku_16_16();

	//Create a PARTIAL random 36x36 sudoku
	//Be carefull, it's very envy for the CPU. Optimization in progress.
	let double_tableau = sudoku.creer_combo_sudoku_36_36();

	puzzle     = double_tableau[1];
	solution   = double_tableau[0];

License

Copyright 2021, Marc-Antoine DROUIN.

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

1.0.20

3 years ago

1.0.19

3 years ago

1.0.18

3 years ago

1.0.17

3 years ago

1.0.16

3 years ago

1.0.14

3 years ago

1.0.13

3 years ago

1.0.12

3 years ago

1.0.11

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.10

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago