From c0f31e61df257a1a796b21e2ca83d12b38730b90 Mon Sep 17 00:00:00 2001 From: redfast00 Date: Tue, 7 Apr 2020 23:57:41 +0200 Subject: [PATCH] Make python3 explicit for non-Arch based systems (as if those even exist) --- backend/templates/help/help_6.html.tera | 4 ++-- backend/templates/index2.html.tera | 2 +- client/run.sh | 2 +- client/runner.py | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/backend/templates/help/help_6.html.tera b/backend/templates/help/help_6.html.tera index f7040c2..f33186e 100644 --- a/backend/templates/help/help_6.html.tera +++ b/backend/templates/help/help_6.html.tera @@ -18,9 +18,9 @@ How to connect $ wget mozaic.zeus.gent/bot/runner.py $ wget mozaic.zeus.gent/bot/simple.py -$ python runner.py -p 9142 --host mozaic.zeus.gent \ +$ python3 runner.py -p 9142 --host mozaic.zeus.gent \ -n <Your name> -i <Id from the lobby> \ - python simple.py + python3 simple.py diff --git a/backend/templates/index2.html.tera b/backend/templates/index2.html.tera index 55b771a..86339a1 100644 --- a/backend/templates/index2.html.tera +++ b/backend/templates/index2.html.tera @@ -54,7 +54,7 @@

Build a bot! All information about the planetwars game, please visit for input output format etc. You can find an example bot here.

Optionally, you can create your own custom with the mapbuilder

Start a game instance in the lobby, don't forget to name it, watching the visualization afterwars is the only way to know who won atm.

-

Start up your bot and connect to the game instance. In the lobby you will see keys corresponding to players in the game. You can use the botrunner to run your bot, with the command python runner.py --host mozaic.zeus.gent -n {your name} -i {your key} {The command to start you bot}. +

Start up your bot and connect to the game instance. In the lobby you will see keys corresponding to players in the game. You can use the botrunner to run your bot, with the command python3 runner.py --host mozaic.zeus.gent -n {your name} -i {your key} {The command to start you bot}.

Invite friends!

Bash your friends because you have the superior bot, according to the visualizer

diff --git a/client/run.sh b/client/run.sh index 8b4dad1..ed0ef4c 100755 --- a/client/run.sh +++ b/client/run.sh @@ -1,4 +1,4 @@ #!/bin/bash echo "Using token $1" -python runner.py -n simple.py --host ${HOST:-localhost} -p 9142 -i $1 python simple.py +python3 runner.py -n simple.py --host ${HOST:-localhost} -p 9142 -i $1 python3 simple.py diff --git a/client/runner.py b/client/runner.py index ff4e0e1..3f2b8f9 100755 --- a/client/runner.py +++ b/client/runner.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#!/usr/bin/env python3 import socket, sys, subprocess, argparse, io, threading, json