def move(): data = request.get_json() goNext = ['up','right','down','left'] decision = decide(data) return jsonify( move = goNext[decision], taunt = 'msg' )
def move(self, data): decision = decide(data) return decision