Fix a few things

This commit is contained in:
Pytron 2019-03-26 16:30:36 +00:00
parent c8b876a53b
commit 2dde0ed3d9
2 changed files with 5 additions and 5 deletions

View File

@ -57,8 +57,8 @@ def run_battle(ai1, ai2):
# Inverse positions and replay to be symmetrical
game = Game(width, height, [
PositionPlayer(1, ai1.builder(), initial_position_two),
PositionPlayer(2, ai2.builder(), initial_position_one),
PositionPlayer(1, ai2.builder(), initial_position_one),
PositionPlayer(2, ai1.builder(), initial_position_two),
])
game.main_loop()

View File

@ -21,11 +21,11 @@ block content
if ai1.name == ai2.name
td
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]
td.has-text-danger= data.battles[ai1.name + "/" + ai2.name]
td.has-text-centered.has-text-danger= data.battles[ai1.name + "/" + ai2.name]
else
td= data.battles[ai1.name + "/" + ai2.name]
td.has-text-centered= data.battles[ai1.name + "/" + ai2.name]
.column.is-narrow.is-desktop
table.table.is-bordered.is-striped.is-hoverable
tr