Voronoi game on a torus

In a Voronoi game players place points in a space, and gain the total surface of their Voronoi cells. This applets computes the percentage of the Voronoi cells in a torus: on this rectangle the left border is connected to the right border, and the top border is connected to the bottom border. Place a point with a mouse click, remove a point with a mouse click while holding the Shift key.

We actually worked on a discrete version of this game which plays on graphs. This program is adapted from the Voronoi/Delaunay Applet.