I have this code that works perfectly when used in the scala REPL, but when I try to compile it using scalac, I get a bunch of errors.
This is my code (too long to post here) - http://pastebin.com/rkKL3xjH
And the errors I get are:
error: expected class or object definition
How do I compile my code so that it can be opened on another computer and executed? I am new to scala and programming so I don't know how to do this yet or what needs to be included in my file.
Thank you