public override string ToTree(int level) { return(new string(' ', level * 2) + "Die:\n" + new string(' ', level * 2) + " Heads: " + Heads + "\n" + new string(' ', level * 2) + " Potential: " + PotentialValue.ToString(DISPLAY_FORMAT)); }
public override string ToCode() { return("{!coin," + (Heads ? "1" : "0") + "," + PotentialValue.ToString(CODE_FORMAT) + "}"); }