switched positioning of teams
This commit is contained in:
parent
2c922fa4c1
commit
6c495c71a5
@ -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
|
# Since only one game for now, this is the object that will hold the data for the game
|
||||||
game = {}
|
game = {}
|
||||||
color = 0
|
color = 0
|
||||||
coloumn = 0
|
vertical = 0
|
||||||
|
|
||||||
# Renders client
|
# Renders client
|
||||||
@app.route("/")
|
@app.route("/")
|
||||||
@ -21,14 +21,14 @@ def update_game():
|
|||||||
# Not currently being used anywhere
|
# Not currently being used anywhere
|
||||||
if request.method == 'GET':
|
if request.method == 'GET':
|
||||||
global color
|
global color
|
||||||
global coloumn
|
global vertical
|
||||||
color = color + 1
|
color = color + 1
|
||||||
team = ["red", "blue"][color % 2]
|
team = ["red", "blue"][color % 2]
|
||||||
row = 10 + color % 2
|
horizontal = 10 + color % 2
|
||||||
coloumn = coloumn + 1
|
vertical = vertical + 1
|
||||||
answer = {
|
answer = {
|
||||||
"team": team,
|
"team": team,
|
||||||
"coordinate": [row, coloumn]
|
"coordinate": [vertical, horizontal]
|
||||||
}
|
}
|
||||||
|
|
||||||
return jsonify(answer)
|
return jsonify(answer)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user