Open-Source-Project-Collaboration / board-game-playing-ai

Chess AI using Neural Network and Min/Max algorithm and tree pruning
6 stars 3 forks source link

get_(pieces)_moves() could take a selected_piece_color argument to simplify things. #14

Open ElizabethGraham opened 4 years ago

ElizabethGraham commented 4 years ago

Currently get_knight_moves, get_pawn_moves, etc. all use a (piece)_color variable but we could probably just pass a selected_piece_color argument to these functions instead of having several individual variables.