I built this game a couple years ago as a demo of coding skills for a client. It’s not a game so much as a template for building a more complex game. And for laughs, there’s the Wilhem scream built in as a sound effect.
How to play: Select a coin, select a square to move to…. or select another occupied square and watch your coin die.
The code is an example of well organized flexible OOP Action-script coding. My general approach to building Flash applications of any complexity is a home-rolled MVC set up, observer design pattern, and the use interfaces… for starters. The complexity of the Flash projects I was taking on in the late 2000s, demanded adopting a flexible code organization. The primary objective was not get it out the door, but rather to build it so we can add bells/ whistles and pull them out on short notice – without starting over from scratch. Here is the code for the game template.