This repository has been archived by the owner on Aug 5, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
79155e3
commit c3124d4
Showing
13 changed files
with
15 additions
and
28 deletions.
There are no files selected for viewing
17 changes: 3 additions & 14 deletions
17
...ok/Chapters/Chapter1.playgroundchapter/Pages/Cellular automaton.playgroundpage/main.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,13 @@ | ||
//#-code-completion(everything, hide) | ||
/*: | ||
Large swarms of fish or birds are complex entities that are comprised of hundreds if not thousands of individuals. | ||
Each of these is following a set of behavioral rules. One might think that such a rule could be to try and follow a leading bird. | ||
For small swarms, this might actually be the case but for larger ones, it is quite the opposite. | ||
Each of these is following a set of behavioral rules. | ||
Turn your attention to human behavior in a group for a moment. | ||
Picture a concert hall where everybody wants to leave after the show. Every human has the same goal - to reach the exit. However most of the time not everybody is just going straight for the exit but instead, move laterally to get into a better spot within the group that is trying to leave. | ||
Another example is people at the checkout in the grocery store. Not everybody is using the same checkout terminal but instead, they are distributing to wherever the least people are at that moment. | ||
These are some basic examples of rules in the real world and just like humans, fish, and birds have similar rules that determine their behavior. | ||
You might have noticed the fish on the right. These are currently following one simple rule: | ||
A simulation where you have a lot of individual entities that each follow a set of rules is called a cellular automaton. These are used in areas like biology and physics amongst others to recreate real-world behaviors of complex systems and this playground will make use of it to show you how awesome swarms are! You might have noticed the fish on the right. These are currently following one simple rule: | ||
`move in a random direction` | ||
*/ | ||
|
||
/*: | ||
A simulation where you have a lot of individual entities that each follow a set of rules is called a cellular automaton. These are used in areas like biology and physics amongst others to recreate real-world behaviors of complex systems and this playground will make use of it to show you how awesome swarms are! | ||
The fish on the right will be your pets! You can interact with them by touching them 🐠 | ||
They will be your pets! Take care of them, you can interact by touching them 🐠 | ||
Continue to the [next page](@next) to discover some more interesting rules and get coding! | ||
*/ |
1 change: 0 additions & 1 deletion
1
...rs/Chapter1.playgroundchapter/Pages/Introduction.cutscenepage/PrivateResources/index.html
This file was deleted.
Oops, something went wrong.
Binary file modified
BIN
-254 Bytes
(99%)
...hapter/Pages/Introduction.cutscenepage/PrivateResources/resources/C5B55C-restorable.plist
Binary file not shown.
2 changes: 1 addition & 1 deletion
2
.../Introduction.cutscenepage/PrivateResources/resources/boidsintro_hype_generated_script.js
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters