Swift Playgrounds - Learn to Code 1: Walkthrough & tutorial with working solutions for every level!
Swift Playgrounds - Learn to Code 1: Walkthrough & tutorial with working solutions for every level is here to help you understand the code and to compare your solutions with the ones posted here. This is not intended as a cheat sheet, but rather a helper on your coding journey.
Follow the code as it gets executed, learn the algorithms and understand the solutions.
If you have a different solution, let me know! All comments are welcome because discussion is what helps us become better coders/programmers/developers!
In this video you will find solutions for all levels:
00:00:00 Let's start!
00:00:30 Issuing Commands
00:01:00 Adding a New Command
00:01:26 Toggling a Switch
00:02:03 Portal Practice
00:02:45 Finding and Fixing Bugs
00:03:20 Bug Squash Practice
00:04:05 The Shortest Route
00:05:28 Composing a New Behavior
00:06:05 Creating a New Function
00:07:05 Collect, Toggle, Repeat
00:08:11 Across the Board
00:09:08 Nesting Patterns
00:10:26 Slotted Stairways
00:12:17 Treasure Hunt
00:14:47 Using Loops
00:15:46 Looping All the Sides
00:16:39 To the Edge and Back
00:18:02 Loop Jumper
00:19:23 Branch Out
00:22:10 Gem Farm
00:23:58 Four Stash Sweep
00:26:41 Checking for Switches
00:27:18 Using else if
00:27:50 Looping Conditional Code
00:29:12 Conditional Climb
00:30:44 Defining Smarter Functions
00:33:06 Boxed In
00:34:43 Decision Tree
00:38:05 Using the NOT Operator
00:38:55 Spiral of NOT
00:40:18 Checking This AND That
00:41:58 Checking This OR That
00:43:14 Logical Labyrinth
00:45:32 Running Code While...
00:46:18 Creating Smarter While Loops
00:47:40 Choosing the Correct Tool
00:49:01 Four by Four
00:50:30 Turned Around
00:51:51 Land of Bounty
00:54:25 Nesting Loops
00:56:29 Random Rectangles
00:57:48 You're Always Right
01:02:32 The Right-Hand Rule
01:06:00 Adjusting Your Algorithm
01:13:47 Conquering a Maze
01:17:37 Which Way to Turn?
01:22:35 Roll Right, Roll Left
Please note that sometimes Playgrounds app would go haywire and misrepresent the movement of the character but the solution would still be correct. In these cases I would the level again to show the correct behavior of characters.
In rare cases the code you see here is version 1.0 - most of the time it had at least one correction, sometimes more. Sometimes it's even version 2.0 or 3.0! Don't worry if you don't get things right from the start or if you're struggling with understanding how to do things. Just keep going and slowly improve. We've all been there!
Enjoy and happy coding!
Please LIKE this video and SUBSCRIBE to support this channel. Click the NOTIFICATION bell to join us in our next battle! Thank you!
Hashtags:
#SwiftPlaygrounds, #LearntoCode1, #SwiftPlayground
Видео Swift Playgrounds - Learn to Code 1: Walkthrough & tutorial with working solutions for every level! канала dux mi514v
Follow the code as it gets executed, learn the algorithms and understand the solutions.
If you have a different solution, let me know! All comments are welcome because discussion is what helps us become better coders/programmers/developers!
In this video you will find solutions for all levels:
00:00:00 Let's start!
00:00:30 Issuing Commands
00:01:00 Adding a New Command
00:01:26 Toggling a Switch
00:02:03 Portal Practice
00:02:45 Finding and Fixing Bugs
00:03:20 Bug Squash Practice
00:04:05 The Shortest Route
00:05:28 Composing a New Behavior
00:06:05 Creating a New Function
00:07:05 Collect, Toggle, Repeat
00:08:11 Across the Board
00:09:08 Nesting Patterns
00:10:26 Slotted Stairways
00:12:17 Treasure Hunt
00:14:47 Using Loops
00:15:46 Looping All the Sides
00:16:39 To the Edge and Back
00:18:02 Loop Jumper
00:19:23 Branch Out
00:22:10 Gem Farm
00:23:58 Four Stash Sweep
00:26:41 Checking for Switches
00:27:18 Using else if
00:27:50 Looping Conditional Code
00:29:12 Conditional Climb
00:30:44 Defining Smarter Functions
00:33:06 Boxed In
00:34:43 Decision Tree
00:38:05 Using the NOT Operator
00:38:55 Spiral of NOT
00:40:18 Checking This AND That
00:41:58 Checking This OR That
00:43:14 Logical Labyrinth
00:45:32 Running Code While...
00:46:18 Creating Smarter While Loops
00:47:40 Choosing the Correct Tool
00:49:01 Four by Four
00:50:30 Turned Around
00:51:51 Land of Bounty
00:54:25 Nesting Loops
00:56:29 Random Rectangles
00:57:48 You're Always Right
01:02:32 The Right-Hand Rule
01:06:00 Adjusting Your Algorithm
01:13:47 Conquering a Maze
01:17:37 Which Way to Turn?
01:22:35 Roll Right, Roll Left
Please note that sometimes Playgrounds app would go haywire and misrepresent the movement of the character but the solution would still be correct. In these cases I would the level again to show the correct behavior of characters.
In rare cases the code you see here is version 1.0 - most of the time it had at least one correction, sometimes more. Sometimes it's even version 2.0 or 3.0! Don't worry if you don't get things right from the start or if you're struggling with understanding how to do things. Just keep going and slowly improve. We've all been there!
Enjoy and happy coding!
Please LIKE this video and SUBSCRIBE to support this channel. Click the NOTIFICATION bell to join us in our next battle! Thank you!
Hashtags:
#SwiftPlaygrounds, #LearntoCode1, #SwiftPlayground
Видео Swift Playgrounds - Learn to Code 1: Walkthrough & tutorial with working solutions for every level! канала dux mi514v
Показать
Комментарии отсутствуют
Информация о видео
Другие видео канала
![Butter Royale: Merry Christmas! (full game)](https://i.ytimg.com/vi/4YireDycXb4/default.jpg)
![Epic Little War Game - Skirmish: Killing Fields](https://i.ytimg.com/vi/v9YuCqHQfko/default.jpg)
![Epic Little War Game - Skirmish: Jungle Jaunt](https://i.ytimg.com/vi/yd7hxX0SRZo/default.jpg)
![Epic Little War Game - Skirmish: Mars Attacks!](https://i.ytimg.com/vi/qWPOoLaoZnY/default.jpg)
![Epic Little War Game: Campaign Mission 10: Surrounded](https://i.ytimg.com/vi/GkY5qKfC34A/default.jpg)
![Swift Playgrounds - Placing at a Specific Location (Learn to Code 2)](https://i.ytimg.com/vi/wAd1AO8AdKw/default.jpg)
![Epic Little War Game - Skirmish: Jungle Paradise](https://i.ytimg.com/vi/AUwXbz0WyMU/default.jpg)
![Butter Royale: Let’s go for the team victory!](https://i.ytimg.com/vi/e0xps8Kwnn4/default.jpg)
![Swift Playgrounds - Using the NOT Operator (Learn to Code 1)](https://i.ytimg.com/vi/S41U3nPRavA/default.jpg)
![Plants vs. Zombies playing Day level 10!](https://i.ytimg.com/vi/lvN4dxUaqaE/default.jpg)
![Among Us: Why do they do this?](https://i.ytimg.com/vi/it9A0bDpyPI/default.jpg)
![Epic Little War Game - Skirmish: Four Mounds](https://i.ytimg.com/vi/0Z6lUf4l9YI/default.jpg)
![Butter Royale: A fantastic performance ;)](https://i.ytimg.com/vi/FTYSNA1oixY/default.jpg)
![Epic Little War Game - Skirmish: Two Escarpments](https://i.ytimg.com/vi/RMmM5MWZU2M/default.jpg)
![Butter Royale: Snipermesan victory!](https://i.ytimg.com/vi/Ndf_Bn5dcVI/default.jpg)
![Epic Little War Game - Skirmish: Lava Drift](https://i.ytimg.com/vi/vkZfMe6EFEU/default.jpg)
![Epic Little War Game: Campaign Mission 5: Time for Tanks](https://i.ytimg.com/vi/bP_pwZ12G_Y/default.jpg)
![Among Us: How I met the First Lady](https://i.ytimg.com/vi/du_K69VzEXs/default.jpg)
![Plants vs. Zombies playing Night level 3!](https://i.ytimg.com/vi/RXcJ1e5T5hw/default.jpg)
![Butter Royale: I'm the last man standing!](https://i.ytimg.com/vi/v-AZLGnt-dU/default.jpg)
![Ai-Mo vs. 9 crazy bots - The Battle of Polytopia](https://i.ytimg.com/vi/Wie-xBgTpio/default.jpg)