Open
Description
Bug fix
-
Jump chain title
should be deleted
Content
- The exercise solution needs to include the discussion and text at the end of the lecture (move
solution-end
) - Pseudocode could be wrapped in a special admonition
- We could focus the lecture a bit more clearly on simple
local
interactions and how they lead to unexpected macro outcomes
Code
- Fix the
Entering Loop String
repetition in the code output. Put the figures side by side for better comparisons of the neighborhood formation. - Add some small network diagrams in the
preferences
section to diagrammatically showhappiness
- Add a
happiness
distribution as the iterations go from 0 to 7 to see how that distribution changes. (What proportion of people are happy in Cycle 0?)
Comments by @longye-tian:
Content
- Use a graph to illustrate the preference section (similar to the second point in the Code section above)
- Unbold
not
in 'An important point to note is that agents are not averse to living in mixed areas.'
Code
- Add location attribute as a
namedtuple
with storing the x and y location of the agent. - Add a legend for agents of Type I and Type II.
- Add graphing parameters for further customization.