Tuesday, April 19, 2011

Pirate Fleet assignment code online

Ahoy! The eagerly awaited release of the Pirate Fleet framework has occurred. It is available for download from week 10 in the lecture schedule > practical exercise column. A new PDF has been included with the distribution. This explains what new features the code facilitates for assignment 2.

Things to try:
  1. Compile the code and run it. The PixSail is highlighted in green for you to see. In the code's current form, the PixSail controller (in PowerfulAIControllerExample.cpp and .h files) is set to imitate the fleet's signalling system... you can see the result yourself!
  2. Comment out the PixSail's signalling imitation and see what happens now.
The PixSail controller provided is a sample only. The controller that will be pitted against your fleet will be a bit smarter and more difficult to defeat. This will be released when the assignment is due so that we can see how your fleet fares!

Notes:
  1. During the lecture discussion last week I indicated that the accuracy of the routine for one ship to obtain the heading of another diminished with increased distance from the target. This has not been implemented. Instead, a ship's heading can be determined with 100% accuracy.
  2. Each ship has 3 signalling flags that can be set or unset. These may be used to communicate between ships, or to distinguish an enemy from a friend. There is no independent way of determining friend from foe... you will need to use the flags to perform this task! Beware, the PixSail may trick out your ships (see the example provided).

No comments:

Post a Comment