In order to overcome the boredom during the Covid19 lockdown, you have created a small but clever game, very aptly named, “The Game of Triangles”. The idea is not too complicated. Your program randomly generates a lot of triangles. Each of these triangles is represented in the Cartesian coordinate system with vertices in integer coordinates. But the game hides the triangle from the players. Players take turns and cut the coordinate system (or the 2D plane) with a straight line along either the x-axis or the y-axis. The game continues for as many rounds as you want. In each round, you calculate your score by calculating the number of triangles affected by your cut. A triangle is affected by a cut if both the right side and the left side areas of the cut have positive areas.

This is a companion discussion topic for the original entry at https://toph.co/p/game-of-triangles