SHOW:
|
|
- or go back to the newest paste.
1 | - Add in check functionality (line 111, 207) | |
2 | - Make sure the move chosen does not put king in check (in the make_move function, just randomly select a move and keep randomly selecting moves in potential moves that does not put king in check) | |
3 | - | - If a piece cannot move, select another piece (also probably in make_move) |
3 | + | |
4 | ||
5 | ||
6 | You need to print 2 things in total: | |
7 | ||
8 | All the possible moves for the piece that was randomly picked for that turn | |
9 | The board state itself | |
10 | ||
11 | Return move in UCI notation | |
12 | ||
13 | right now we are returning a list of elements | |
14 | i.e. "2", "3", "4" | |
15 | ||
16 | what we need: | |
17 | "a1a2", "a1a3", "a1a4" | |
18 | ||
19 | create a list of dictionaries to create UCI notation | |
20 | 1) first get the x coordinate and y coordinate | |
21 | 2) columnNotation[XHolder] + columnNotation[YHolder] + columnNotation[x] + columnNotation[y] --> "a1a2" |