Find file
Fetching contributors…
Cannot retrieve contributors at this time
71 lines (62 sloc) 2.53 KB
#!/usr/bin/env python
# vim: set tw=0 :
# -*- coding: utf-8 -*-
from kakuro import Kakuro
one = Kakuro(4, (
0 , 0 ,(0,7),(0,6),
0 ,(4,4), 1 , 1 ,
(7,0), 1 , 1 , 1 ,
(6,0), 1 , 1 , 1 ,
))
two = Kakuro(5, (
0 , 0 ,(0,23),(0,21), 0,
0 ,(8,15), 1 , 1 , 0,
(8,0), 1 , 1 , 1 , 0,
(27,0), 1 , 1 , 1 , 1,
(5,0), 1 , 1 , 0 , 0,
(14,0), 1 , 1 , 0 , 0,
0 , 0 , 0 , 0 , 0,
))
three = Kakuro(8, (
0 ,(0,23),( 0,30), 0 , 0 ,( 0,27),( 0,12),( 0,16),
(16,0), 1, 1 , 0 , (24,17), 1 , 1 , 1,
(17,0), 1, 1 , (29,15), 1 , 1 , 1 , 1,
(35,0), 1, 1 , 1 , 1 , 1 ,( 0,12), 0,
0 ,(7,0) , 1 , 1 , ( 8, 7), 1 , 1 ,( 0, 7),
0 ,(0,11),(16,10), 1 , 1 , 1 , 1, 1,
(21,0), 1, 1 , 1 , 1 ,( 5, 0), 1, 1,
(6,0) , 1, 1 , 1 , 0 ,( 3, 0), 1, 1,
))
four = Kakuro(8, (
0,0,0,0,0,0,(0,16),(0,3),
0,0,0,0,0,(8,6),1,1,
0,(0,16),(0,6),0,(14,30),1,1,1,
(11,0),1,1,(7,0),1,1,(0,6),0,
(10,0),1,1,(13,7),1,1,1,(0,16),
0,(14,0),1,1,1,(8,0),1,1,
0,(0,4),(9,17),1,1,(11,0),1,1,
(12,0),1,1,1,0,0,0,0,
(10,0),1,1,0,0,0,0,0
))
# http://www.bestkakuro.com/killer2.gif
killer2 = Kakuro(18, (
0, (0,24), (0,28), 0, (0,14), (0,33), (0,13), (0,8), (0,39), 0, (0,27), (0,45), (0,16), (0,8), 0, (0,20), (0,32), (0,21),
(12,0), 1, 1, (16,43), 1, 1, 1, 1, 1, (30,0), 1, 1, 1, 1, (11,10), 1, 1, 1,
(43,0), 1, 1, 1, 1, 1, 1, 1, 1, (36,6), 1, 1, 1, 1, 1, 1, 1, 1,
(32,0), 1, 1, 1, 1, 1, (22,19), 1, 1, 1, 1, 1, 1, (11,11), 1, 1, 1, 1,
0, (33,13), 1, 1, 1, 1, 1, (42,45), 1, 1, 1, 1, 1, 1, 1, (12,40), 1, 1,
(15,0), 1, 1, 1, (29,8), 1, 1, 1, 1, 1, 1, 1, (18,30), 1, 1, 1, 1, 1,
(11,0), 1, 1, 1, 1, (24,10), 1, 1, 1, (18,0), 1, 1, 1, 1, (22,12), 1, 1, 1,
0, (0,24), (34,36), 1, 1, 1, 1, 1, (0,35), 0, (23,26), 1, 1, 1, 1, 1, (0,21), (0,13),
(24,0), 1, 1, 1, (19,26), 1, 1, 1, 1, (6,6), 1, 1, 1, (10,27), 1, 1, 1, 1,
(20,0), 1, 1, 1, 1, 1, (42,27), 1, 1, 1, 1, 1, 1, 1, (23,28), 1, 1, 1,
(12,0), 1, 1, (33,7), 1, 1, 1, 1, 1, 1, 1, (33,7), 1, 1, 1, 1, 1, (0,22),
(27,0), 1, 1, 1, 1, (23,12), 1, 1, 1, 1, 1, 1, (24,12), 1, 1, 1, 1, 1,
(37,0), 1, 1, 1, 1, 1, 1, 1, 1, (36,0), 1, 1, 1, 1, 1, 1, 1, 1,
(7,0), 1, 1, 1, (10,0), 1, 1, 1, 1, (16,0), 1, 1, 1, 1, 1, (8,0), 1, 1,
))
test = Kakuro(8, (
0,0,0,0,(0,17),0,0,0,
0,0,0,0, 1 ,0,0,0,
(30,0),1,1,1, 1 ,1,1,1,
))