- Analyze the game and get clear on the logic of the game.
- Find an indirect way that can test the application, instead of recording/replaying.
- Write scripts to get game data and test logic to implement it. For example, to test Snake, you need to get data regarding where the snake and eggs are at run-time and then use a script to direct the snake to the eggs.
We also use selenium in many projects for test automation using HTML5, not just games. Because selenium scripts are very flexible, if you are creative you can make them do almost anything.