This is the solution to a PHP code challenge for a development position. It simulates the childhood card game known as WAR. The rules can be found here http://www.pagat.com/war/war.html