forked from AuraStormLucario/TicTacToe-Perfect-AI
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathIssues.txt
80 lines (71 loc) · 2.35 KB
/
Issues.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
'''
Issues:
- Add function to recognize move that makes fork
- Add cpu_move_turn_four()
- Try to eliminate global variables
- Simplify Functions]
- assign_letter()
- cpu_win()
- cpu_block()
- main(turn)
- Make order[turn] and player/cpu consistent
- Double quotes for visual strings, single quotes for everything else
Stylizing (https://www.python.org/dev/peps/pep-0008/#introduction):
- Change tabs to 4 spaces
- Make all lines < 80 characters (comments < 72)
# for i in range(x, y, step) is x <= i < y
# i = random.randint(x, y) is x <= i <= y
# i = random.randrange(x, y, step) is x <= i < y
'''
'''
Cases to code
player plays corner, cpu plays center, player plays opposite edge (to player)
player plays edge, cpu plays center, player plays opposite corner (to player)
player plays edge, cpu plays center, player plays adjacent edge (to player)
cpu plays corner, player plays adjacent edge, cpu plays center, player plays opposite corner (to cpu)
player plays corner
cpu plays center
player plays opposite corner (to player)
cpu plays any edge case
player plays adjacent corner (to player)
cpu plays edge between player corners check_win
player plays opposite edge (to player)
#
player plays adjacent edge (to player)
cpu plays corner blocking player check_win
player plays edge
cpu plays center
player plays opposite corner (to player)
# case
player plays adjacent corner (to player)
cpu plays corner blocking player check_win
player plays opposite edge (to player)
cpu plays corner case
player plays adjacent edge (to player)
# case
player plays center
cpu plays corner
player plays opposite corner (to cpu)
cpu plays corners case
player plays adjacent corner (to cpu)
player plays opposite edge (to cpu)
player plays adjacent edge (to cpu)
cpu plays corner blocking player check_win
cpu plays corner
player plays opposite corner (to cpu)
cpu plays corner
# EXTRA
# player plays edge blocking cpu
# cpu plays corner
player plays adjacent center (to cpu)
cpu plays opposite corner (to cpu)
player plays opposite edge (to cpu)
cpu plays center
player plays adjacent edge (to cpu)
cpu plays center
# EXTRA
# player plays opposite corner (to cpu) blocks win
# cpu plays empty adjacent edge (to cpu)
player plays center
cpu plays opposite corner (to cpu)
'''