Friday, November 23, 2012
That Pesky "All Stats" Window
If you've been following closely, you'll know that lately I've been working on the "All Statistics" window, which displays every statistic that the program tracks for the game you are currently playing. This includes longest win and loss streaks, longest and shortest games by time and by move count, and more. It's a surprisingly complex window. It seems as if it should just display some numbers, which should be simple. But there's a lot going on behind the scenes: things like implementing the clock that keeps track of how much time you've spent, handling the special scoring that some games have (especially the game TriPeaks, which has quite unique scoring), and a good deal more. This work is now mostly done, but I am still finishing up the clock (which has to pause and resume when you switch away from your game to do something else, and then switch back again). As part of this work I will also be implementing the standard "You win!" window, which includes some shortcut controls for some preference settings, and which interacts a bit with the All Stats window.