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.
406 Solvers
6645 Solvers
Create a Multiplication table matrix...
285 Solvers
Find the maximum two numbers of every column of a matrix
140 Solvers
Add a row of zeros on top of a matrix
196 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!