I recently applied for a PHP programming job and they required me to do a coding challenge. One of the challenges involved simulating the card game war which I found intriguing. I "over-engineered" it as they requested, but I still don't think it was good enough for them. Is there anything I could have done better?
A live example is here: http://dev.lifeboatcreative.com/war/index.php
The rules this game is based off are found here: http://www.pagat.com/war/war.html
Source files are attached.