master > master: code py - bessere Darstellung für moves
This commit is contained in:
parent
760bff11f2
commit
61e49f19e0
@ -56,9 +56,9 @@ def represent_cost_matrix(
|
|||||||
|
|
||||||
match verb:
|
match verb:
|
||||||
case VerboseMode.MOVES:
|
case VerboseMode.MOVES:
|
||||||
table[3:(3+m), 3:(3+n)] = '.';
|
table[3:(3+m), 3:(3+n)] = '\x1b[2m.\x1b[0m';
|
||||||
for (i, j) in path:
|
for (i, j) in path:
|
||||||
table[3 + i, 3 + j] = '*';
|
table[3 + i, 3 + j] = '\x1b[31;1m*\x1b[0m';
|
||||||
case VerboseMode.COSTS | VerboseMode.COSTS_AND_MOVES:
|
case VerboseMode.COSTS | VerboseMode.COSTS_AND_MOVES:
|
||||||
table[3:(3+m), 3:(3+n)] = Costs.copy();
|
table[3:(3+m), 3:(3+n)] = Costs.copy();
|
||||||
if verb == VerboseMode.COSTS_AND_MOVES:
|
if verb == VerboseMode.COSTS_AND_MOVES:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user