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 TA-only test cases #25

Closed lky-bulbasaur closed 3 years ago

lky-bulbasaur commented 3 years ago

May I know that in TA-only test cases, will the thread states be checked using getState()? For example, when implementing PausePieceAction, I might not necessarily use the suggested interrupt() and notifyAll() to implement the same functionality. Will this affect the result of the TA-only tests?

Thanks.

Troublor commented 3 years ago

Where is the getState() method? I couldn't find it in the code skeleton.

lky-bulbasaur commented 3 years ago

From what I have Googled, java.lang.Thread.getState() can be used to check the state of a Thread. I wonder if this method will be used to strictly check the states of each thread in TA-only test cases.

Troublor commented 3 years ago

Oh, it is not used in tests.