Friday, March 19, 2010

Last kakuro posting for a while, I promise

    A     B     C     D     E     F     G  
0        
 
⇓10
 
⇓17
 
1    
12⇒
⇓3
1 2 9  
2
3⇒
 
2 1
9⇒
⇓10
1 8  
3  
6⇒
 
2 1 3
 
⇓17
 
4    
15⇒
⇓3
2 4 9  
5  
5⇒
 
2 3
9⇒
 
8 1
6  
7⇒
 
1 4 2    
Couldn't resist the temptation so the solver now outputs HTML like what you see on the left. It's still not pythonic and not even really OO, but it works so far. I am probably never going to perfect it.

A few more pictures, and sources are here: http://cpark.users.sonic.net/kakuro-python/

No comments: