A JavaScript simulator of the card game war.