Darts
export const score = (x,y) => {
let radius = Math.sqrt(xx+yy);
if (radius <= 1) return 10;
else if (radius > 1 && radius <= 5) return 5;
else if (radius > 5 && radius <= 10) return 1;
else return 0;
};
export const score = (x,y) => {
let radius = Math.sqrt(xx+yy);
if (radius <= 1) return 10;
else if (radius > 1 && radius <= 5) return 5;
else if (radius > 5 && radius <= 10) return 1;
else return 0;
};
Thank you, friend!
I'm @steem.history, who is steem witness.
Thank you for witnessvoting for me.
please click it!
(Go to https://steemit.com/~witnesses and type fbslo at the bottom of the page)
The weight is reduced because of the lack of Voting Power. If you vote for me as a witness, you can get my little vote.