### How to play Kenken

Kenken is a numbers puzzle game like sudoku, and both are meant to be good for sharpening your arithmetic skills and your logic. You have a square grid (typically 4x4, 6x6 or 8x8) to be filled with numbers such that each number is unique in its own row and colum.  The boxes in the grid are also partitioned into "cages"; often defined by a common thick border line.  The numbers in a cage must produce the total number specified in the cage when the specified operation is applied to all the numbers in the cage.  Here's an empty kenken board:

In the bottom row, for instance, we have 2 cages: one composed of 3 numbers (one for each box) whose sum (because the given operation is addition) is 6, the other cage has only one box containing number 4.  No operation needs to be specified for a cage with only one box.  So filling first the single-box cages, we have:

Now looking at the rightmost column, there's a 2-box cage with total 2 and operation division.  Since we have a 4x4 grid (meaning, the only possible numbers are 1, 2, 3, 4), only 2 and 1 can be used to fill this 2-box cage.  That leaves 3 as the only number for the remaining box at the top of the rightmost column.

Now that we've filled that upper-right-most box with 3, it's cage therefore has 3x1x3 = 9 (which we could actually deduce even without knowledge about the other boxes).

The topmost row has only one box left and it can only be 4.  So the cage for that box (2 by division) contains 4 and 2 because 4/2=2.

Now we can go more quickly.  The cage on the right (2 by division, 2/1=2) will have 1 in the upper box and 2 in the lower.  The cage in the third row (7 by addition, 4+3=7) will have 3 in the left box and 4 on the right box.

Thus we can now easily deduce the complete solution.  The cage in the first column (3 by subtraction, 4-1=3) will have 4 on the upper box and 1 on the lower box.  The last cage at the bottom will have 3+1+2=6.

Yoohoo!  We have just solved our first Kenken puzzle!

Anonymous said…
Nice tutorial!

iKendu is a Sudoku like logic puzzle game now available for the iPhone and iPod touch in the iTunes App Store.

Rachel said…
I didn't really understand how to play kenken but thenks anyway.I'll just try to figure it out myself.
Allister said…
Hi Rachel,
It's not really complicated. You can have a look at the tutorial at kenken.com

Thanks for dropping by,
Allister

### Juan Luis Guerra: Mi Bendición (Guitar Chords and Lyrics)

I discovered the Latin singer Juan Luis Guerra yesterday on Spotify and I fell in love with one of his songs "Mi Bendición". I couldn't find the guitar chords online so I decided to pick up my old guitar and write them down myself.  Here goes...

Mi Bendición Juan Luis Guerra
CM7--F-G
C             Dm7        Em7      FM7 Dicen que las flores no dejaban de cantar    Dm7        G7sus4   G7 tu nombre, tu nombre cariño C            Dm7          Em7         FM7 Que las olas de los mares te hicieron un chal      Dm7      E7sus4  E7 de espuma, de nubes y lirios
Am        Am/G     Am/F# Y la luna no se convenció   D7                 D7sus4-D7 Y bajo a mirarte el corazón   C          Dm7           Em7       FM7 Y al mirarte dijo que no había visto un sol     Dm7       E7sus4    E7     FM7 radiante, mas bello que mi bendición
G        Em7     C7sus4    C7      FM7 Tenerte, besarte, andar de la mano contigo      G       Em7     C7sus4      C7        FM7 Mi cielo, mirarte, decirte un te quiero al oído …

### Relearning C++

There's quite a lot of developments in the C++ programming language in recent years, first with the long-awaited C++11, and just this week, the new (surprisingly on-time) C++14.  The language has changed quite considerably that it's safe to say, "It's not your grandma's C++ (or C, for that matter)!"

So, I think I'll have to devote some time from now on to learn about new C++ paradigms.  I'll be posting about them as I go along.

### Oh! Kinabuhi (Oh, Life!)

I've just seen that video of famous boxer Manny Pacquiao singing a sort of medley of Visayan songs so I thought I'd post the lyrics and translation of one of them here. This song is called "Oh! Kinabuhi" by Filipino singer Victor Wood.

Oh! Kinabuhi
Victor Wood

Inig sidlak sa adlaw sa sayo sa kabuntagon
Masud-ong ta ang katahoman ning kalibutan
Gidayandayan sa nahigmata nga kalanggaman
Nga nanag-awit ning kabukiran

Ug mopadulong sa pagsalop sa kahapunon
Ug sa dughan nga walay naglaylay
Sa kasing-kasing nga way nagsapnay
Sama kanako nga sinalikway ay magamahay

Chorus:

Oh kinabuhi sama ka sa usa ka gapnod
Nga gianod-anod sa bul-og ning mga luha
Way kinutoban way hunong ang iyang guidulngan
Ayayay-ayayay nganong sakiton man.
Here's the English translation:

Oh Life!
by Victor Wood
(translated by Allister Sanchez)

When the sun shines early in the morning
We'll see the beauty of this world