CastleLab / COMP3021-2020Fall-PA3-Student-Version

HKUST - COMP3021 - 2020Fall - Programming Assignment 3 - Student Version
https://course.cse.ust.hk/comp3021/
Apache License 2.0
1 stars 0 forks source link

About isWhite/BlackPlayerHuman in Configuration class #5

Closed leiyi777 closed 3 years ago

leiyi777 commented 3 years ago

In the readme, it says that there are other types of HumanPlayer in TA-only tests so we need to use "instanceof HumanPlayer" to check whether this player is a human player or not. However, the isWhite/BlackPlayerHuman methods in Configuration class just use "instanceof ConsolePlayer" to check the type. Do I need to change the already implemented methods to "instanceof HumanPlayer"?

Troublor commented 3 years ago

Those methods are legacy of PA2. Should be removed from PA3.