Tonight (March 12) we will again conduct an integration session. Asumu will add a folder project8/integration to your SVN repository with the following content:

  1. xrun is a Racket script that runs a modified version of your game-tester program on the supplied tests;
  2. largest-alpha/ is a folder with tests like those for game-tester;
  3. strategy/ is a folder with the two strategy implementations that you "ordered" with your specifications.
The folder also comes with xml-diff, an auxiliary XML diff script, tailored to our task that xrun uses. You may safely ignore it.


Task To prepare the integration of the new players,

  1. copy your game-tester program into this new folder;
  2. modify game-tester so that it runs only players that use the largest-alpha strategy.

Now integrate the implementation of largest-alpha into your player. In principle, this should be a function/method call. When your program compiles, run

  ./xrun  
to find out how many test cases your program passes. Try to get all of them to pass eventually with the code that you received.

To run individual tests, say, the first one, run this at the Linux prompt:

  $ ./game-tester < largest-alpha/in0.xml | ./xdiff-xml - largest-alpha/out0.xml
Substitute 1 or 2 for 0 to run the other two tests. To run your game-tester on just the test input, just use the part to the left of the Unix pipe.