-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathchanges.txt
More file actions
61 lines (47 loc) · 1.69 KB
/
changes.txt
File metadata and controls
61 lines (47 loc) · 1.69 KB
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
//write changes we make to UML;
// Template:
// [Class] : aslfdkjasdlkfjasdlkfj
ChessBoard:
changed selfInCheck() to isInCheck()
Player:
added accessor for isCheckmate(), isStalemate(), getColor()
!!! player now has access to the chessboard via pointer
added accessor for board ^^^
AI:
made generateMove() private
since we now have pointer to chessboard, removed parameter board
Game:
make p1,p2 -> pw pb
prinstScoreBoard now private method
made a reset private method to clean up after game finishes
Strategies!!!
//Talk about shit we did
11-28th
dummy constructor for move to make life easier
11-28
Player:
move doMove function from player into chessboard
Game:
added isSetup, isRunning
added addPiece helper function for setup mode
11-29
ChessBoard:
added trysetpiece
Makefile:
Added preprocessor configurations for Window.h so that we can compile with or without the graphic configurations
11-30
Piece:
added hasmoved, setmoved, moved for all pieces by putting them in superclass
ChessBoard:
added aftermove function that sets moved to true (can also handle other aftermoves later like castling or promotion)
Added checks for pawn moves in simulateMove that prevent moving diagonally if there is no piece to capture
12-01
Move:
added startPos field
Pawn:
added enPassant field, setEnPassant(), getEnPassant()
12-03:
AI:
added random number function randNumBetween() and getAllLegalMoves() function
Person/Player:
moved castleMoveCreator from private in Person to protected in Player so that AI can access it