master > master: code go - requirements + colours
Requirements angepasst, damit auf Windows läuft, colour-mode jetzt per default aus
This commit is contained in:
@@ -85,7 +85,7 @@ var menuColourMode = menus.Menu{
|
||||
{Label: "aus", Action: actionColourModeOff},
|
||||
},
|
||||
},
|
||||
Default: 0,
|
||||
Default: 1,
|
||||
}
|
||||
|
||||
var menuDebugMode = menus.Menu{
|
||||
@@ -241,7 +241,10 @@ func actionAlgorithmSearchBinary() (bool, error) {
|
||||
return cancel, err
|
||||
}
|
||||
setup.DisplayStartOfCaseBlank()
|
||||
algorithm_search_binary.FancyBinarySearch(input_L, input_x)
|
||||
_, err = algorithm_search_binary.FancyBinarySearch(input_L, input_x)
|
||||
if err != nil {
|
||||
logging.LogError(err)
|
||||
}
|
||||
setup.DisplayEndOfCase()
|
||||
return cancel, nil
|
||||
}
|
||||
@@ -259,7 +262,10 @@ func actionAlgorithmSearchInterpolation() (bool, error) {
|
||||
return cancel, err
|
||||
}
|
||||
setup.DisplayStartOfCaseBlank()
|
||||
algorithm_search_interpol.FancyInterpolationSearch(input_L, input_x, 0, len(input_L)-1)
|
||||
_, err = algorithm_search_interpol.FancyInterpolationSearch(input_L, input_x, 0, len(input_L)-1)
|
||||
if err != nil {
|
||||
logging.LogError(err)
|
||||
}
|
||||
setup.DisplayEndOfCase()
|
||||
return cancel, nil
|
||||
}
|
||||
@@ -276,7 +282,10 @@ func actionAlgorithmSearchIthElement() (bool, error) {
|
||||
return cancel, err
|
||||
}
|
||||
setup.DisplayStartOfCaseBlank()
|
||||
algorithm_search_ith_element.FancyFindIthSmallest(input_L, input_i)
|
||||
_, err = algorithm_search_ith_element.FancyFindIthSmallest(input_L, input_i)
|
||||
if err != nil {
|
||||
logging.LogError(err)
|
||||
}
|
||||
setup.DisplayEndOfCase()
|
||||
return cancel, nil
|
||||
}
|
||||
@@ -293,7 +302,10 @@ func actionAlgorithmSearchIthElementDc() (bool, error) {
|
||||
return cancel, err
|
||||
}
|
||||
setup.DisplayStartOfCaseBlank()
|
||||
algorithm_search_ith_element.FancyFindIthSmallestDC(input_L, input_i)
|
||||
_, err = algorithm_search_ith_element.FancyFindIthSmallestDC(input_L, input_i)
|
||||
if err != nil {
|
||||
logging.LogError(err)
|
||||
}
|
||||
setup.DisplayEndOfCase()
|
||||
return cancel, nil
|
||||
}
|
||||
@@ -318,7 +330,10 @@ func actionAlgorithmSearchJump() (bool, error) {
|
||||
return cancel, err
|
||||
}
|
||||
setup.DisplayStartOfCaseBlank()
|
||||
algorithm_search_jump.FancyJumpSearchLinear(input_L, input_x, input_m)
|
||||
_, err = algorithm_search_jump.FancyJumpSearchLinear(input_L, input_x, input_m)
|
||||
if err != nil {
|
||||
logging.LogError(err)
|
||||
}
|
||||
setup.DisplayEndOfCase()
|
||||
return cancel, nil
|
||||
}
|
||||
@@ -337,7 +352,10 @@ func actionAlgorithmSearchJumpExp() (bool, error) {
|
||||
return cancel, err
|
||||
}
|
||||
setup.DisplayStartOfCaseBlank()
|
||||
algorithm_search_jump.FancyJumpSearchExponentiell(input_L, input_x)
|
||||
_, err = algorithm_search_jump.FancyJumpSearchExponentiell(input_L, input_x)
|
||||
if err != nil {
|
||||
logging.LogError(err)
|
||||
}
|
||||
setup.DisplayEndOfCase()
|
||||
return cancel, nil
|
||||
}
|
||||
@@ -350,7 +368,10 @@ func actionAlgorithmSearchPoison() (bool, error) {
|
||||
return cancel, err
|
||||
}
|
||||
setup.DisplayStartOfCaseBlank()
|
||||
algorithm_search_poison.FancyFindPoison(input_L)
|
||||
_, err = algorithm_search_poison.FancyFindPoison(input_L)
|
||||
if err != nil {
|
||||
logging.LogError(err)
|
||||
}
|
||||
setup.DisplayEndOfCase()
|
||||
return cancel, nil
|
||||
}
|
||||
@@ -363,7 +384,10 @@ func actionAlgorithmSearchPoisonFast() (bool, error) {
|
||||
return cancel, err
|
||||
}
|
||||
setup.DisplayStartOfCaseBlank()
|
||||
algorithm_search_poison.FancyFindPoisonFast(input_L)
|
||||
_, err = algorithm_search_poison.FancyFindPoisonFast(input_L)
|
||||
if err != nil {
|
||||
logging.LogError(err)
|
||||
}
|
||||
setup.DisplayEndOfCase()
|
||||
return cancel, nil
|
||||
}
|
||||
@@ -378,7 +402,10 @@ func actionAlgorithmSearchSequential() (bool, error) {
|
||||
return cancel, err
|
||||
}
|
||||
setup.DisplayStartOfCaseBlank()
|
||||
algorithm_search_sequential.FancySequentialSearch(input_L, input_x)
|
||||
_, err = algorithm_search_sequential.FancySequentialSearch(input_L, input_x)
|
||||
if err != nil {
|
||||
logging.LogError(err)
|
||||
}
|
||||
setup.DisplayEndOfCase()
|
||||
return cancel, nil
|
||||
}
|
||||
@@ -389,7 +416,10 @@ func actionAlgorithmSumMaxsub() (bool, error) {
|
||||
return cancel, err
|
||||
}
|
||||
setup.DisplayStartOfCaseBlank()
|
||||
algorithm_sum_maxsubsum.FancyMaxSubSum(input_L)
|
||||
_, _, _, err = algorithm_sum_maxsubsum.FancyMaxSubSum(input_L)
|
||||
if err != nil {
|
||||
logging.LogError(err)
|
||||
}
|
||||
setup.DisplayEndOfCase()
|
||||
return cancel, nil
|
||||
}
|
||||
@@ -400,7 +430,10 @@ func actionAlgorithmSumMaxsubDc() (bool, error) {
|
||||
return cancel, err
|
||||
}
|
||||
setup.DisplayStartOfCaseBlank()
|
||||
algorithm_sum_maxsubsum.FancyMaxSubSumDC(input_L)
|
||||
_, _, _, err = algorithm_sum_maxsubsum.FancyMaxSubSumDC(input_L)
|
||||
if err != nil {
|
||||
logging.LogError(err)
|
||||
}
|
||||
setup.DisplayEndOfCase()
|
||||
return cancel, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user