It is required to capture as many cells as possible, the one who captures more cells wins.
In the settings, you can set a random generation of the starting position (by default, the first player starts in the lower left corner of the playing field, and the second player in the upper right corner of the playing field)
Also, in the settings, you can specify the setting for the AI - a sharper, in this mode the AI captures more cells, acting as a sharper.