Advertisement
Guest User

Untitled

a guest
Mar 29th, 2020
86
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.  
  4.  
  5. You need to print 2 things in total:
  6.  
  7. All the possible moves for the piece that was randomly picked for that turn
  8. The board state itself
  9.  
  10. Return move in UCI notation
  11.  
  12. right now we are returning a list of elements
  13. i.e. "2", "3", "4"
  14.  
  15. what we need:
  16. "a1a2", "a1a3", "a1a4"
  17.  
  18. create a list of dictionaries to create UCI notation
  19. 1) first get the x coordinate and y coordinate
  20. 2) columnNotation[XHolder] + columnNotation[YHolder] + columnNotation[x] + columnNotation[y] --> "a1a2"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement