Closed AhmadND00 closed 10 months ago
1) Player characters can move to the same cell as the enemy.
2) Enemy can move to the same cells.
3) Player character can move during enemy's turn.
https://github.com/FakhriF/elephant-project/issues/15#issuecomment-1811705845 partially fixed in https://github.com/FakhriF/elephant-project/pull/30#issue-2013808549 (no 1 and 3 problem)
Current implementation is at calculate_enemy_target is:
while is_occupied(nearest_target): nearest_target.x += 1 # Avoid moving to player cell
it only check if target cell is occupied by character unit