Using command line arguments



Using the config file



Editing the values in the program itself

The programs can be configured in three ways:This is also the order of 'importance' assigned to parameters (from highest to lowest) this means that if you use a command line argument, for example to specify the number of shafts to dig, it will override the values in the config file or in the program itself. As mentioned before both command line arguments and the usage of the config file is entirely optional.Examples of command-line arguments (assuming no config file):--> This will dig 4 tunnels (the default) on 3 levels, each tunnel long enough so 6 shafts can be dug.--> Suppose the previous operation failed for some reason (the server restarting). At this point in time the program isn't capable of recovering from this. However, the user can pick up the turtle, move it back to the original refuel/dropoff station and use these parameters. The turtle will then skip the first level, and only dig the third and fourth tunnel there (since he skips two). Apart from this the program will behave just like the one above. So on the next level the turtle will dig all four of the tunnels.--> The turtle will visit all 4 tunnels on this level, digging 6 pairs of shafts (left and right) in each. The other parameters specify that the turtle does not require fuel to operate and is expected to place torches in the shafts, the turtle can restock on torches by checking the chest behind the turtle.--> The turtle will dig the tunnels and shafts on as many levels, tunnels and shafts as indicated by the default values or the config file. It is configered to have 5 block types it will not excavate (example: stone, dirt, gravel, wood, stone bricks) and the last parameter tells the turtle that there is only a single refuel/dropoff station: at the current position of the turtle. So if fuel is low or the inventory is full he will come back here to restock.