Place lighted candles in some of the empty cells. Each clue determines the total height of all candles in the up to eight adjacent cells. Candles without neighbouring candles have height 4. Since the heat of nearby candles melts wax, the height of a candle has to be reduced by 1 for each orthogonally adjacent candle. There are no candles of height 0.
Solution code: The diagonals from top left and from top right: the height of each candle and - for empty cells and clues
on 26. January 2015, 11:14 by Luigi
@zorant: You seem to be very close to the solution. As far as I can read from your code, you might have a problem with the 6,9,7 in the block column 3-6 row 5-7. Please recheck.