I'm trying to explore a little as to how I could make a simple 'dots and boxes' game.
The problem I'm facing is in what way to store which lines are allocated by who. The problem lies in the fact that all inner lines are shared by neighbour boxes. So I can't just have four variables on each box because the right line of upper left-hand box is actually the same as the left line of box next to it. So I'd need them to be stored in one variable.
What technique of saving this data would be practical in this case?
