Fix a few things
This commit is contained in:
parent
c8b876a53b
commit
2dde0ed3d9
|
@ -57,8 +57,8 @@ def run_battle(ai1, ai2):
|
||||||
|
|
||||||
# Inverse positions and replay to be symmetrical
|
# Inverse positions and replay to be symmetrical
|
||||||
game = Game(width, height, [
|
game = Game(width, height, [
|
||||||
PositionPlayer(1, ai1.builder(), initial_position_two),
|
PositionPlayer(1, ai2.builder(), initial_position_one),
|
||||||
PositionPlayer(2, ai2.builder(), initial_position_one),
|
PositionPlayer(2, ai1.builder(), initial_position_two),
|
||||||
])
|
])
|
||||||
game.main_loop()
|
game.main_loop()
|
||||||
|
|
||||||
|
|
|
@ -21,11 +21,11 @@ block content
|
||||||
if ai1.name == ai2.name
|
if ai1.name == ai2.name
|
||||||
td
|
td
|
||||||
else if data.battles[ai1.name + "/" + ai2.name] > data.battles[ai2.name + "/" + ai1.name]
|
else if data.battles[ai1.name + "/" + ai2.name] > data.battles[ai2.name + "/" + ai1.name]
|
||||||
td.has-text-success= data.battles[ai1.name + "/" + ai2.name]
|
td.has-text-centered.has-text-success= data.battles[ai1.name + "/" + ai2.name]
|
||||||
else if data.battles[ai1.name + "/" + ai2.name] < data.battles[ai2.name + "/" + ai1.name]
|
else if data.battles[ai1.name + "/" + ai2.name] < data.battles[ai2.name + "/" + ai1.name]
|
||||||
td.has-text-danger= data.battles[ai1.name + "/" + ai2.name]
|
td.has-text-centered.has-text-danger= data.battles[ai1.name + "/" + ai2.name]
|
||||||
else
|
else
|
||||||
td= data.battles[ai1.name + "/" + ai2.name]
|
td.has-text-centered= data.battles[ai1.name + "/" + ai2.name]
|
||||||
.column.is-narrow.is-desktop
|
.column.is-narrow.is-desktop
|
||||||
table.table.is-bordered.is-striped.is-hoverable
|
table.table.is-bordered.is-striped.is-hoverable
|
||||||
tr
|
tr
|
||||||
|
|
Loading…
Reference in New Issue