Assessment 2009 Hard

From Progzoo
Revision as of 19:36, 17 October 2009 by Andr3w (Talk | contribs) (Chess)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Guardian Puzzles. For these problems you must read the puzzle definition from a file. In each case there are two files given, you should use the exact same routine for both examples.

Sudoko

Example of a sudoku
  8 
4   73  
  3 1 65 
   8   4 
 37   5 6
5    9 2
  1 957  
  51    
    46   

http://progzoo.net/sudoko1.txt


[Font] [Default] [Show] [Resize] [History] [Profile]

Killer

Each region has a number and a letter associated. The grid of letters shows the shape of each region. Region a has number 18, region b has 21 etc.

18 21 39 14 9 10 32 24 11 19 19 24 7 14 11 22 13 7 22 25 9 4 8 9 14
abbbccccc
abddeeecf
agdhhijjf
agdkhijjf
gggkhlmmf
nnokplqrs
nnokplqrs
tttuplvvs
wwtuxxxyy
Andrew's attempt at this
Example of a killer from the Guardian


[Font] [Default] [Show] [Resize] [History] [Profile]

Chess

Example of a chess problem

http://www.guardian.co.uk/sport/2009/jul/10/chess-ronan-bennett The string shows 8 rows separated by the / characters. The first row has a black rook (lower case r) followed by 5 spaces followed by a black king (lower k) followed by one space. The white pieces have upper case letters. The knight is represented by n or N (because king uses k)

r5k1/3P2pp/8/5N2/8/p4K2/5PP1/8 w

You have access to a number of images for example "chbr.png" has an image of a black rook. These files can be downloaded: http://progzoo.net/chbp.png http://progzoo.net/chbb.png http://progzoo.net/chbn.png http://progzoo.net/chbr.png http://progzoo.net/chbk.png http://progzoo.net/chbq.png http://progzoo.net/chwp.png http://progzoo.net/chwb.png http://progzoo.net/chwn.png http://progzoo.net/chwr.png http://progzoo.net/chwk.png http://progzoo.net/chwq.png


[Font] [Default] [Show] [Resize] [History] [Profile]

Crossword

Example of a crossword
00000000
01010101
00000000
01010101
00000000
01010101
11111000

The crossword always has rotational symmetry order 4. The input file indicates 1 for black squares in the upper left quarter of the crossword puzzle.

http://www.guardian.co.uk/crossword/print/0,,-24670,00.html?answers=156

[Font] [Default] [Show] [Resize] [History] [Profile]

Kakuro

Example of a kakuro
00010011001
00000010000
11000000100
10010001001
00001100000
00000100100
11000100011
00100100000
00000110000
10010001001
00100000011
00001000000
10011001000
6 3 3 29 30 17 39 
6 14 12 14 13 16
34 31 30
17 36 16 14
9 3 21 23 17 17 8
29 27 35
22 4 42 9
14 36 9 6 20 4
17 17 16 15
35 11 10 26
16 17 13 6 4 16
13 9 23 7 4
28 21
4 8 7


[Font] [Default] [Show] [Resize] [History] [Profile]