Challenge overview
Hello and welcome to the challenge!
Write a code which counts points that our basketball team earned in the series of matches. Match results are given in x:y
format, where x
means our score in a match. Rules of points counting:
- if
x>y
we earn 3 points - if
x=y
we earn 1 point - if
x<y
we earn 0 points
Have fun and good luck! :)