Some minor simulator refactoring. These changes are made on top of #14.
I turned Piece into an enum. There was no reason why it was a full class, since the only property of each instance was an enum anyway.
I changed the winner from being a nullable player into an enum. This lets us represent four disjoint states: the winner is undetermined, the attacker has won, the defender has won, and the game ended in a tie.
Some minor simulator refactoring. These changes are made on top of #14.
winner
from being a nullable player into an enum. This lets us represent four disjoint states: the winner is undetermined, the attacker has won, the defender has won, and the game ended in a tie.