Computational Model Library

This release is out-of-date. The latest version is 1.7.0

Game of Thrones model (version 1.0.0)

This model slowly evolves to become Westeros, with houses fighting for the thrones, and whitewalkers trying to kill all living things. You can download each version to see the evolution of the code, from the Wolf Sheep Predation model to the Game of Thrones model. If you are only interested in the end product, simply download the latest version.

For instructions on each step, see: https://claudinegravelmigu.wixsite.com/got-abm

Final.png

Release Notes

This is step 2 in the process of creating an ABM of Game of Thrones. It simply adds humans to the Wolf Sheep Predation model (Wilensky 1997). The people move around the landscape and can domesticate some of the wolves they encounter (or get eaten by them). People can feed on grass (let’s pretend it’s wheat) and sheep as well.

Note that there is an error in the humans-feed-animals procedure. In its current state, humans take away dogs’ energy even when there is no sheep to share. The correct code should read:

to humans-feed-animals
; Identifies the dogs and feed them by sharing a sheep if there is one around
let dogs wolves-here with [ domesticated? = true ] ; temporary variable to identify dogs on the same patch
let prey sheep-here ; check if there are sheep that can be fed to the dog

if any? dogs and any? prey [ ; if there are any dogs here and a sheep they can be fed with…
ask one-of dogs [
eat-sheep * ; the human tells its dog to hunt a sheep …
set energy energy - 20 * ; … and take some of the nutrients for itself (but not all of it)

] * ; end of the “ask one-of dogs”
set energy energy + 20 * ; the human also gets nutrients from the hunted sheep

] * ; end of the “if any? dogs” bracket*

end

Download Version 1.0.0
Version Submitter First published Last modified Status
1.7.0 Claudine Gravel-Miguel Sun Jan 3 22:49:39 2021 Sun Jan 3 22:49:39 2021 Published
1.6.0 Claudine Gravel-Miguel Sun Jan 3 22:49:30 2021 Sun Jan 3 22:49:30 2021 Published
1.5.0 Claudine Gravel-Miguel Sun Jan 3 22:49:20 2021 Sun Jan 3 22:49:20 2021 Published
1.4.0 Claudine Gravel-Miguel Sun Jan 3 22:49:10 2021 Sun Jan 3 22:49:10 2021 Published
1.3.0 Claudine Gravel-Miguel Sun Jan 3 22:49:01 2021 Sun Jan 3 22:49:01 2021 Published
1.2.0 Claudine Gravel-Miguel Sun Jan 3 22:48:53 2021 Sun Jan 3 22:48:53 2021 Published
1.1.0 Claudine Gravel-Miguel Sun Jan 3 22:48:43 2021 Sun Jan 3 22:48:43 2021 Published
1.0.0 Claudine Gravel-Miguel Sun Jan 3 22:48:33 2021 Sun Jan 3 22:48:33 2021 Published

Discussion

This website uses cookies and Google Analytics to help us track user engagement and improve our site. If you'd like to know more information about what data we collect and why, please see our data privacy policy. If you continue to use this site, you consent to our use of cookies.