From c587235aa91ac428b42c19be9674ae1c6252a100 Mon Sep 17 00:00:00 2001 From: "DESKTOP-N04EG04\\mghmu" Date: Mon, 30 Nov 2020 00:42:12 +0900 Subject: [PATCH] =?UTF-8?q?2017162021=20=EB=AC=B8=EC=A7=80=ED=9D=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/app.py b/app.py index 56dcf15..aad851a 100644 --- a/app.py +++ b/app.py @@ -2,6 +2,8 @@ import random import json +#tic_tac_toe_pork_pull_request + app = Flask(__name__) x = 1 @@ -59,7 +61,8 @@ def computer_hard(positions, moves): else: res["choose"] = 7 else: - res["choose"] = 0 + res["choose"] = 0 #승 + elif positions[6] == x: if positions[2] == o: if positions[8] == o: @@ -67,7 +70,8 @@ def computer_hard(positions, moves): else: res["choose"] = 3 else: - res["choose"] = 2 + res["choose"] = 2 #승 + # positions[0] == x else: if positions[8] == o: