RosettaCode.org

Look under “explore” on http://www.rosettacode.org/ for examples on how to solve common problems using different programming languages.

Here’s an example from rosettacode, it’s the ‘2048’ game in python: