Closed Rfrixy closed 6 years ago
May I work on this issue and contribute?
Hi @Rfrixy ,
Thanks for pointing this out. Please feel free to make a PR to develop
branch with a fix for this, if you happen to put one together. It would be greatly appreciated.
I seemed to have made a mistake while dealing with the ball-wall logic, the current code is perfectly fine. I apologize for wasting your time
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Rewards for the agents are decided by a hitWall script on the ball. This script has one error- (The following code are from lines 45 to 74 from above script)
What's happening here is that if the lastAgent was 0 which means agent was A, and it hits wall A, which is the wall behind agent A's racquet, he gets a penalty and B scores. And also, if B hits A's wall directly, he gets the point.
However, in this part,
It again checks for agent A's hit and penalizes it for hitting B's Wall.
I propose changing
to
(in the first if statement in the block where it checks for wallB. ) This should resolve the issue.