From the course: Coding Exercises: Scala
Unlock this course with a free trial
Join today to access over 25,300 courses taught by industry experts.
Rocketship - Scala Tutorial
From the course: Coding Exercises: Scala
Rocketship
- In this final challenge, we are going to take your Scarla skills to the stratosphere by making a rocket ship. Well, not an actual rocket ship, but an animation of one. The file 01_15b.scarla has all the setup you need. Comments in the file guide you through the process of writing the code. If you complete it all correctly, you'll end up with an animation of a rocket ship soaring into the sky. So jump right in and get coding. Now, pause a video and come back when you've completed the challenge and I'll show you how I tackled it. So here's a file we've given you and has a lot of comments describing what each section is doing. This is not stuff we have to change so let's keep going down the file. And eventually we'll get to the first bit, here we go, we need to implement. This is telling us that state is either countdown, containing an integer, counts left or flying, containing a point and location and so on.…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
Palindrome detector2m 15s
-
(Locked)
Password checker4m 20s
-
(Locked)
Colored boxes2m 15s
-
(Locked)
System properties1m 17s
-
(Locked)
Resistor tolerance2m 36s
-
(Locked)
Snakes and camels1m 58s
-
(Locked)
Stuff the stats sheet5m 50s
-
(Locked)
A slice of Pi5m 13s
-
(Locked)
Cron and regular expressions4m 35s
-
(Locked)
Reservoir sampling4m 55s
-
(Locked)
Evaluate a decision tree3m 3s
-
(Locked)
Calculator2m 41s
-
(Locked)
Error handling2m 58s
-
(Locked)
Sierpinski Triangle2m 2s
-
(Locked)
Rocketship7m 16s
-