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

Obfuscated Version Critical Region #3

Closed DoVaKeitH closed 3 years ago

DoVaKeitH commented 3 years ago

critical

I think there is a bug in the obfuscated version? as the critical region size is 3 and capacity is 2.

The situation in the picture showed should be invalid?

Troublor commented 3 years ago

The capacity refers to the max number of Knights of each player that are allowed in the critical region. So it is valid here.

DoVaKeitH commented 3 years ago

Then I think the description about the capacity of the critical region need to be modified. As the current description is "criticalRegionCapacity: the maximum number of pieces inside the critical region."

Troublor commented 3 years ago

Right, thanks for pointing out