Have a go at this Micro bit challenge

Can you find a way to keep score in this game?