-
Notifications
You must be signed in to change notification settings - Fork 3
/
main.py
56 lines (54 loc) · 1.38 KB
/
main.py
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
#main file!
# import whatever modules we need
#
# loading screen
# print an ASCII graphics picture
# "Welcome, chess players."
# "Do you wish to [p]lay, or [q]uit?"
# if neither p or q is entered:
# "Please type in p or q."
# else if p:
# "Good to see. :)"
# load player entry screen
# else if q:
# "Oh...bye then."
#
# player entry screen
# "Who is playing white?"
# input the name
# "And who's playing black?"
# input that name
# "All right. Ready to play!"
# load chessboard
#
# chessboard
# load 8x8 B&W checkered grid
# place pieces on appropriate squares
# begin gameplay loop
#
# gameplay loop
# start on white
#
# if king is in check:
# restrict valid moves to whatever gets king out of check
# else:
# valid moves are what pieces can do, and what isn't obstructed
#
# have piece moved when clicked and dragged
#
# if move is invalid:
# it doesn't happen
#
# if move is onto opponent's piece:
# opponent's piece disappears
# player's piece overtakes it
#
# if opponent is checkmated:
# "[color] wins! :D"
# go to loading screen
# elif checkmate is impossible:
# "Stalemate... :/"
# go to loading screen
# else:
# end turn
# switch players