Lines is a JavaScript game created by Dmitry Baranovskiy. Players attempt to match balls of 7 colors in straight lines of 5.
Implementing this game is a somewhat challenging excersize in keeping your code organized, by sheer virtue of the reference implementation having many features.