Talk:XanderFileUtil

From Robowiki
Jump to navigation Jump to search

Running a bot against itself

Thanks! I think I will give this a try. About running a bot against itself I suggest people just make a subclass of their bot and run that one against the main version. I have several such variants of CassiusClay, one of which is CassiusClayS:

package pez.rumble;
// CassiusClayS - by PEZ - Float like a Butterfly, Sting like a bee.
// An un-versioned clone of CassiusClay - http://robowiki.net/?CassiusClay

public class CassiusClayS extends CassiusClay {
	static void dummy() {};
	public CassiusClayS() {}
}

The purpose of the S-version is so that it doesn't get a new "name" with each version of CC I package. Then I can use Robocode's Save Battle feature to let my White Whale's consume me. (The dummy() method is there so that I can call it and trick Robocode to pack the bot together with "main" CC. Letting others Save Battle and still run against the latest incarnation of CC.) -- PEZ 07:53, 11 November 2011 (UTC)

There are no threads on this page yet.