Welcome to
.----------------. .----------------. .----------------. .----------------. .----------------. .----------------.
| .--------------. || .--------------. || .--------------. || .--------------. || .--------------. || .--------------. |
| | _______ | || | _____ _____ | || | ________ | || | ____ | || | ___ ____ | || | _____ _____ | |
| | / ___ | | || ||_ _||_ _|| || | |_ ___ `. | || | .' `. | || | |_ ||_ _| | || ||_ _||_ _|| |
| | | (__ \_| | || | | | | | | || | | | `. \ | || | / .--. \ | || | | |_/ / | || | | | | | | |
| | '.___`-. | || | | ' ' | | || | | | | | | || | | | | | | || | | __'. | || | | ' ' | | |
| | |`\____) | | || | \ `--' / | || | _| |___.' / | || | \ `--' / | || | _| | \ \_ | || | \ `--' / | |
| | |_______.' | || | `.__.' | || | |________.' | || | `.____.' | || | |____||____| | || | `.__.' | |
| | | || | | || | | || | | || | | || | | |
| '--------------' || '--------------' || '--------------' || '--------------' || '--------------' || '--------------' |
'----------------' '----------------' '----------------' '----------------' '----------------' '----------------'
mvn package
java -Dfile.encoding=UTF-8 -jar target/sudoku.jar
docker build -t borisskert/sudoku .
docker run -it --rm borisskert/sudoku
Game looks like:
Width: 3
Height: 3
Level (1=easy, 2=medium, 3=hard): 2
Creating puzzle...
╔═╤═╤═╦═╤═╤═╦═╤═╤═╗
║ │ │ ║ │ │7║ │ │ ║
╟─┼─┼─╫─┼─┼─╫─┼─┼─╢
║ │ │ ║ │ │ ║ │ │ ║
╟─┼─┼─╫─┼─┼─╫─┼─┼─╢
║ │ │ ║ │2│1║ │ │6║
╠═╪═╪═╬═╪═╪═╬═╪═╪═╣
║ │8│ ║ │ │2║ │5│ ║
╟─┼─┼─╫─┼─┼─╫─┼─┼─╢
║ │ │ ║ │ │8║3│ │ ║
╟─┼─┼─╫─┼─┼─╫─┼─┼─╢
║ │ │ ║7│ │ ║ │ │ ║
╠═╪═╪═╬═╪═╪═╬═╪═╪═╣
║ │ │2║ │4│ ║ │6│8║
╟─┼─┼─╫─┼─┼─╫─┼─┼─╢
║7│ │8║ │1│9║ │ │5║
╟─┼─┼─╫─┼─┼─╫─┼─┼─╢
║ │ │ ║ │7│ ║ │ │ ║
╚═╧═╧═╩═╧═╧═╩═╧═╧═╝
Columns: right to left, 1 to 9
Lines: top to bottom, 1 to 9
Values: 1 to 9
Type in 'SOLVE' to solve the puzzle
Column: _
Line: _
Value: _