/** * File : PitOriginal.java * Desc : Which problem is this? * Hist * 2004-02-22 : @author Douglas Reay */ public class PitOriginal extends Pit { /** Should we display a progress marker? */ public boolean showProgress() { return true; } /** How many trials to run? (1,000,000 takes a minute) */ public int getTrials() { return 10000000; } /** Is this a 2D pit, a 3D pit, or worse? */ public int getDimensions() { return 2; } /** Are there 4 or more pebbles */ public int getPebbles() { return 4; } /** Is it a round pit, square, or other distribution? */ public Space getSpace() { return new SpaceRound(); } /** The pebbles themselves */ public Points getPoints() { return new PointsFour( getPebbles(), getDimensions(), getSpace() ); } /** Command line entry point */ public static void main(String[] args) { (new PitOriginal()).start(); } } // End of File