From 2dde0ed3d9b12c05bf1d091515cbad93434f8e7f Mon Sep 17 00:00:00 2001 From: Pytron Date: Tue, 26 Mar 2019 16:30:36 +0000 Subject: [PATCH] Fix a few things --- pytron_run/run.py | 4 ++-- views/index.pug | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) 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