aaronskiba / CMPUT-455-assignment-2

0 stars 0 forks source link

Fix redundant checking of whether self.board[x] is occupied. #10

Open aaronskiba opened 2 years ago

aaronskiba commented 2 years ago

-e.g. is_legal() Checks if a square if occupied. However, generate_legal_moves() gathers all empty squares and then calls is_legal() -Find out where to remove it. -If removed from is_legal(), ensure every is_legal() is preceded by an 'is occupied' check.