Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

45 lines (40 sloc) 0.566 kb
use v6;
BEGIN { @*INC.push: 'lib' };
use Sudoku;
# from http://sudokugarden.de/de/online/2010-09-09
# 000000009
# 800060000
# 004000051
# 000005008
# 000000700
# 009001003
# 300000600
# 000000000
# 000079040
#
# solution:
# 237514869
# 815963274
# 964827351
# 126735498
# 543298716
# 789641523
# 391452687
# 472186935
# 658379142
my $puzzle = join '', <
237504009
800060000
004000051
000005008
000000700
009001003
300000600
000000905
000079040
>;
my $s = Sudoku.from-string($puzzle);
say $s;
$s.solve();
say $s;
#say $s.perl;
Jump to Line
Something went wrong with that request. Please try again.