This is the the Quadrats video game.
Rules are simple. Players go in turns. On each turn, player has to select one edge. Once selected, edge turns into player's color. Other player cannot select this edge anymore. If player closes a square by selecting an edge, they takes this square, gets a point and an extra turn. The goal of this game is to take as much squares as possible.