A scala solution to the coding dojo kata bowling problem described at http://codingdojo.org/cgi-bin/wiki.pl?KataBowling.
Compile and run:
$ scalac src/main/scala/kataBowling/kataBowling.scala
warning: there were 1 feature warnings; re-run with -feature for details
one warning found
$ scala kataBowling.kataBowling
XXXXXXXXXXXX : 300
9-9-9-9-9-9-9-9-9-9- : 90
5/5/5/5/5/5/5/5/5/5/5 : 150
--1-2-3-4-5-6-7-8-9- : 45
---1-2-3-4-5-6-7-8-9 : 45