Basketball Points Easy

Challenge ends in

Before you start the test, check out our tutorial challenge

  • DATE Mar 15, 2019 - Feb 12, 2020

Basketball Points

Challenge outline

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! :)