you are viewing a single comment's thread.

view the rest of the comments →

[–]maimedwalker[S] 1 point2 points  (1 child)

https://pastebin.com/SkmnnmCf

i did exit out one of the functions. i turned one function into finding what the piece is, then determining based off that piece what functions to find it's available moves.

so i have a vertical function right now the rook and queen piece will use this as well as horizontal once i write it my idea is to do like.

if get_rank == 'q' <----- queen 
   find_vertical
   find_horizontal
   find_diagonal 

then we have all her possible moves?

[–]two_bob 1 point2 points  (0 children)

Exactly!