A rules engine and game player for Magic: the Gathering.