smly/mjai.app

Comment of function `target_actor_rel()` seems to be wrong.

Closed this issue · 1 comments

Describe the bug

Comment of function target_actor_rel() seems to be wrong.

def target_actor_rel(self) -> int:
"""
Relative position of target actor.
0 = shimocha, 2 = toimen, 3 = kamicha.
"""
return (self.target_actor - self.player_id + 4) % 4

shimocha should be 1.

smly commented

You're right. Thanks for the report!