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.
17344 Solvers
Duplicate each element of a vector.
521 Solvers
114 Solvers
5378 Solvers
Convert a vector of Integers into a matrix of binaries
65 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!