Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - Add in check functionality (line 111, 207)
- - 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)
- - Castle castling
- You need to print 2 things in total:
- All the possible moves for the piece that was randomly picked for that turn
- The board state itself
- Return move in UCI notation
- right now we are returning a list of elements
- i.e. "2", "3", "4"
- what we need:
- "a1a2", "a1a3", "a1a4"
- create a list of dictionaries to create UCI notation
- 1) first get the x coordinate and y coordinate
- 2) columnNotation[XHolder] + columnNotation[YHolder] + columnNotation[x] + columnNotation[y] --> "a1a2"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement