This is a template project designed for people taking Creative Scala.
-
Fork or clone this template. What's the difference?
- If you fork this repository you get your own copy on Github. You can then clone that repository to get a copy on your computer and save work back to your fork on Github and share it with other programmers.
- If you clone this repository without forking you get a copy on your computer but no copy on Github that you can save work back to and share.
-
Open your Terminal or Command Prompt in this directory.
- In Visual Studio, go to Terminal -> New Terminal. There should be a terminal window that pops up under the code editor.
- Or, in Mac,
- Press Cmd + Space to open the Spotlight Search.
- Type "Terminal" to find the Terminal.
- Click that to open it.
- Go to this directory:
cd <path to>/creative-scala-template
. Replace<path to>
with your directory path.
- In Windows,
- Go to the Start Menu.
- Search for Command Prompt.
- Click that to open it.
- Go to this directory:
cd <path to>/creative-scala-template
Replace<path to>
with your directory path.
-
Type
sbt run
and skip to step 6 (steps 4 and 5 do the same thing as this). Or, continue to step 4. -
Run
./sbt.sh
(OS X and Linux) orsbt.bat
(Windows) to start SBT. -
Type
console
in SBT. -
Type
Example.image.draw()
. You should see a pop-up window containing a picture of three nested circles. If so, everything is working well.
You can edit the file Example.scala
to create your own code. See Creative Scala for more!