You are viewing a single comment's thread. Return to all comments →
Easier JS:
function catAndMouse(x, y, z) { return (Math.abs(x-z) > Math.abs(y-z)) ? 'Cat B' : ((Math.abs(x-z) < Math.abs(y-z)) ? 'Cat A' : 'Mouse C') }
Seems like cookies are disabled on this browser, please enable them to open this website
Cats and a Mouse
You are viewing a single comment's thread. Return to all comments →
Easier JS: