In test case 3, the closest players to goalie 1 are all 3's--aren't they offside?
Thanks for pointing it out :-).. Corrected that. In reality, it wont be offside, since team 1 is in attack. However, I found it kind of difficult to define one team being in attack. So, corrected it anyway.
707 Solvers
First non-zero element in each column
593 Solvers
07 - Common functions and indexing 6
348 Solvers
121 Solvers
poll: would you like the regexp (?@cmd) functionality to be banned in Cody?
169 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!