A simulation of the card game War