From 6c495c71a5577016dbc7f9cdc2c189f69686ce18 Mon Sep 17 00:00:00 2001 From: unknown Date: Wed, 26 Aug 2015 11:20:37 -0400 Subject: [PATCH] switched positioning of teams --- clashingcomrades/server.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/clashingcomrades/server.py b/clashingcomrades/server.py index 4c03170..5fd9b7a 100644 --- a/clashingcomrades/server.py +++ b/clashingcomrades/server.py @@ -5,7 +5,7 @@ app = Flask(__name__) # Since only one game for now, this is the object that will hold the data for the game game = {} color = 0 -coloumn = 0 +vertical = 0 # Renders client @app.route("/") @@ -21,14 +21,14 @@ def update_game(): # Not currently being used anywhere if request.method == 'GET': global color - global coloumn + global vertical color = color + 1 team = ["red", "blue"][color % 2] - row = 10 + color % 2 - coloumn = coloumn + 1 + horizontal = 10 + color % 2 + vertical = vertical + 1 answer = { "team": team, - "coordinate": [row, coloumn] + "coordinate": [vertical, horizontal] } return jsonify(answer)