Open leiyi777 opened 3 years ago
You are right. CAPTURING
behaviour prefers the move which captures enemy's piece.
In the case where there are multiple such moves, randomly pick one is enough.
I want to ask another question about CAPTURING
behaviour. If there are no enemy pieces for this piece to capture (e.g. the number of rounds is still <= numMovesProtection
), do we simply randomly select a move?
@lky-bulbasaur Yes, you can do that. In the TA-only tests, we will not test such cases.
If there is no enemy to capture at all and num_move > numMovesProtection, can we randomly select a move?
If there is no enemy to capture at all and num_move > numMovesProtection, can we randomly select a move?
Yes of course
In the statement, it says that the piece prefers moves that capture more enemies.
However, a piece can capture at most one enemy in each move, so how comes it prefers the moves that capture more enemies? So is it mean that we only need to randomly select one of the moves that capturing enemies?