diff --git a/app.py b/app.py index 56dcf15..006f4fe 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: @@ -161,4 +165,4 @@ def computer_hard(positions, moves): if __name__ == "__main__": - app.run(host='0.0.0.0', port=8080) \ No newline at end of file + app.run(host='0.0.0.0', port=8080)