diff --git a/pytron_run/run.py b/pytron_run/run.py index 40425b2..d487eec 100755 --- a/pytron_run/run.py +++ b/pytron_run/run.py @@ -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() diff --git a/views/index.pug b/views/index.pug index 3891883..39ab0ad 100644 --- a/views/index.pug +++ b/views/index.pug @@ -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