Here's another Rosetta Code challenge that is a bit of fun: the Nim Game!
Take turns with the computer, taking 1 to 3 tokens from a pile. Whoever takes the last token wins! Can you beat the computer?
(Spoiler: no, you can't. 😉 )