This is my rendition of the classic pen and paper game, Hex. Pick the grid size to start ("5" corresponds to a 5x5 hexagonal grid, "7" to a 7x7, and so on). Red is set to go first but the current turn can be manipulated by pressing the RESET TURN button at any point after the grid is mapped. The CLEAR button does just what you'd think: the current grid becomes blank for a new game. To reset a single tile in the case of a mistake or some variant where tiles can be recolored, press and hold a click on an already-colored tile. If a new grid size is desired simply restart the program by clicking the green flag. To win, a linked and unbroken bridge must join one side of a team's color to the corresponding other side; it is up to the players to realize this win state.
There's no win detection implemented as of yet, and if I continue to work on this project it will likely be in trying to figure out how to do that detection. I have a few ideas already but I figure the ones I have now are too script-costly to implement without serious lag. I wanted to be sure to get the classic 11x11 rhombus in the game, but since this was more focused on being used as an activity for students and the sprites I selected lent themselves to a limit on shrinkage, I went no bigger. Interestingly, the method I used to clone the single hexagon tile to map the entire grid doesn't work for even numbers. Thus, I'll have to rethink it if I want to get the version John Nash, one of the mathematicians who invented the game, suggested: the 14x14 grid. There's an issue where some spots on the grid highlight two hexagons; it's impossible to get two colorings if clicked, but this can still lead to some confusing turns if the mouse pointer is on the border of two hexagons. In a similar vein, I want to create other pen and paper games to be used in the classroom. One particularly underrepresented game of this variety is Sim, and I think I'll have to take a crack at it next. That game should be far simpler to make than this one, but win-detection is likely to show up again as a difficult wall to overcome with it too. It's less of a big deal than the above but I'm no graphics buff, so any kind of GUI update or a remix overhaul of the sprite costumes are welcomed and encouraged.