-
Notifications
You must be signed in to change notification settings - Fork 5
Documentation
###Table of Contents
This software falls under the Creative-Commons Attribution Share-Alike 4.0 International License (cc-by-sa). Share it, edit, use it, credit.
Standards are adapted from CS61B-style
The file MUST end with a newline.
Since there is no package schema in ASH scripts, all names of elements of this library should start with the prefix utils_mining_. All suffix names follow the programming lowerCamelCase naming convention. Parameter names, function names, and field names must be descriptive. (Please, no cultural references).
This script is usable from the graphical CLI. The command must conform to the form:
minevolcano [turns]
Parameters:
-
turnsis a non-optional parameter that specifies the number of adventures to spend.
Major sections should be marked with /** two-asterisk **/ level comments and minor sections should be marked with /** three-asterisk ***/ level comments.
All functions and fields should be fully described with //doubleslash commentary. If expensive, runtime and space bounds should be provided.
Helper functions should appear before their children. They should have their own utility and be fully documented.
Fields and functions should appear in the file as closely as possible to the order they appear here.
Appropriate indentation with a buffer size of four spaces should be applied. All separate elements should be separated with blank lines.
In the Graphical CLI, run the command minevolcano X where X is the number of turns you want to spend.
The following code spends 153 turns mining the Gold mine.
> minevolcano 153
Fork, add documented changes on a new branch, test, merge, and create a pull request.
Get the latest code with svn checkout https://github.com/AllenTuring/KoL-MineVolcano/trunk