master > master: code py - config optionen für richtungsprios
This commit is contained in:
1 parent
b4a5ee213c
commit
0145f1f873
5 files changed
+28
-7
No files matched your search
@@ -23,6 +23,6 @@ __all__ = [
|
||||
class Directions(Enum):
|
||||
UNSET = -1;
|
||||
# Prioritäten hier setzen
|
||||
DIAGONAL = 0;
|
||||
HORIZONTAL = 1;
|
||||
VERTICAL = 2;
|
||||
DIAGONAL = OPTIONS.hirschberg.move_priorities.diagonal;
|
||||
HORIZONTAL = OPTIONS.hirschberg.move_priorities.horizontal;
|
||||
VERTICAL = OPTIONS.hirschberg.move_priorities.vertical;
|
||||
@@ -25,4 +25,4 @@ def gap_penalty(x: str):
|
||||
return OPTIONS.hirschberg.penality_gap;
|
||||
|
||||
def missmatch_penalty(x: str, y: str):
|
||||
return 0 if x == y else OPTIONS.hirschberg.penality_missmatch;
|
||||
return 0 if x == y else OPTIONS.hirschberg.penality_mismatch;
|
||||
Reference in new issue
Block a user