sfuhrm / sudoku Goto Github PK
View Code? Open in Web Editor NEWA very fast Java Sudoku library implementation along with a command line client
License: GNU Lesser General Public License v3.0
A very fast Java Sudoku library implementation along with a command line client
License: GNU Lesser General Public License v3.0
Creator.createFull(GameSchemas.SCHEMA_4X4)
should return a valid 4x4 Sudoku.
Creator.createFull(GameSchemas.SCHEMA_4X4)
(1) returns an invalid Sudoku:
Example in Kotlin:
Creator.createFull(GameSchemas.SCHEMA_4X4)
(2) throws an AssertionError:
Example in Java:
Arguments: -t -e Both -s S4x4
JVM-Options: -ea
It would also be nice if the size could be variable to solve for example 4x4 or 16x16 sudokus...
Originally posted by @Lemkinator in #4 (comment)
Really great and fast library!
However it would be great if the riddles difficulty could be defined when creating a new riddle.
I would imagine this could be implemented by solving it partially depending on the set difficulty.
Hi @sfuhrm ,
I've been trying to use your library to build my own webbased game as a personal learning project, and I'm impressed by your library! Very cool!
One thing I'm struggeling with, is saving and loading riddles to resume later. I can save a Riddle to a file and load it with the sample code you have built in the sudoku client: https://github.com/sfuhrm/sudoku/blob/master/sudoku-client/src/main/java/de/sfuhrm/sudoku/client/Client.java#L160
But this will always solve the riddle, and not provide me with a reuseable Riddle.
A GameMatrix instantiated with the data will always give the same solution, but not always the same Riddle if we use: https://github.com/sfuhrm/sudoku/blob/master/sudoku/src/main/java/de/sfuhrm/sudoku/Creator.java#L297
TL;DR; Is there a way to instantiate a Riddle with given data?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.