Advertisement
Guest User

Untitled

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