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 CriticalRegionRule #17

Closed lky-bulbasaur closed 3 years ago

lky-bulbasaur commented 3 years ago

Suppose criticalRegionSize = 1 and criticalRegionCapacity = 1, and I have a game like this: image

If the Blue Knight (c5) captures the Green Knight (d3), will this move violate the critical region rule?

Thanks.

Troublor commented 3 years ago

I don't think so. Would you clarify your point?

lky-bulbasaur commented 3 years ago

In the picture shown, there is 1 Knight (Green) in the critical region. If the Blue Knight (c5) captures the Green Knight (d3), there will still be 1 Knight (Blue) in the critical region.

Is my understanding correct?

Troublor commented 3 years ago

Yes, you are correct. Do you mean the problem is that: the capturing move is said to be violating the rule by the demo program?

lky-bulbasaur commented 3 years ago

After several attempts I was able to reproduce the game in question using the demo program, so I could finally verify the specification.

Closing this issue now. Thanks.