Advertisement
Guest User

Untitled

a guest
Mar 29th, 2020
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. - Castle castling
  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"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement