Presentation is loading. Please wait.

Presentation is loading. Please wait.

Day 1 Goal: To create a model of people hunting in the forest for mushrooms and then start working on improving their mushroom hunting ability mathematically.

Similar presentations


Presentation on theme: "Day 1 Goal: To create a model of people hunting in the forest for mushrooms and then start working on improving their mushroom hunting ability mathematically."— Presentation transcript:

1 Day 1 Goal: To create a model of people hunting in the forest for mushrooms and then start working on improving their mushroom hunting ability mathematically.

2 to setup ask patches [set pcolor green] end Day 1

3 to setup ask patches [set pcolor green] ask n-of 5 patches [set pcolor red] end

4 Day 1 to setup ask patches [set pcolor green] ask n-of 5 patches [ask n-of 10 patches in-radius 5 [set pcolor red]] end

5 Day 1 to setup ask patches [set pcolor green] ask n-of 5 patches [ask n-of 10 patches in-radius 5 [set pcolor red]] crt 2 [set size 3 set shape “person” set color blue] end

6 Day 1 to setup ask patches [set pcolor green] ask n-of 5 patches [ask n-of 10 patches in-radius 5 [set pcolor red]] crt 2 [set size 3 set shape “person” set color blue] end to go ask turtles [fd 1] wait.3 end

7 Day 1 to setup clear-all ask patches [set pcolor green] ask n-of 5 patches [ask n-of 10 patches in-radius 5 [set pcolor red]] crt 2 [set size 3 set shape “person” set color blue pen-down] end to go ask turtles [fd 1] ask turtles [if pcolor = red [set pcolor yellow show “found one!”]] wait.3 end

8 Day 1 to setup clear-all ask patches [set pcolor green] ask n-of 5 patches [ask n-of 10 patches in-radius 5 [set pcolor red]] crt 2 [set size 3 set shape “person” set color blue pen-down] end to go ask turtles [set heading heading + random 20 – random 20 fd 1] ask turtles [if pcolor = red [set pcolor yellow show “found one!”]] wait.3 end

9 Day 1 Try doing the following: 1. Change the size, color, and shape of your hunters. 2. Change the number of groups of mushrooms, mushrooms in each group, and radius of the groups. 6. Change the number of hunters.j

10

11 Day 2 Goal: To work on improving their mushroom hunting ability mathematically.

12 to setup clear-all ask patches [set pcolor green] ask n-of 5 patches [ask n-of 10 patches in-radius 5 [set pcolor red]] crt 2 [set size 3 set shape “person” set color blue pen-down] end to go ask turtles [set heading heading + random 20 – random 20 fd 1] ask turtles [if pcolor = red [set pcolor yellow show “found one!”]] wait.3 end Day 2

13 to setup clear-all reset-ticks ask patches [set pcolor green] ask n-of 5 patches [ask n-of 10 patches in-radius 5 [set pcolor red]] crt 2 [set size 3 set shape “person” set color blue pen-down] end to go ask turtles [set heading heading + random 20 – random 20 fd 1] ask turtles [if pcolor = red [set pcolor yellow show “found one!”]] wait.3 tick end Day 2

14 turtles-own [memory] to setup clear-all reset-ticks ask patches [set pcolor green] ask n-of 5 patches [ask n-of 10 patches in-radius 5 [set pcolor red]] crt 2 [set size 3 set shape “person” set color blue pen-down set memory 999] end to go ask turtles [search] wait.3 tick end to search ifelse memory < 20 [right (random 181) – 90][right (random 21) – 10] fd 1 ifelse pcolor = red [set memory 0 set pcolor yellow][set memory memory + 1] end Day 2

15 to search ifelse memory < 20 [right (random 181) – 90][right (random 21) – 10] fd 1 ifelse pcolor = red [set memory 0 set pcolor yellow][set memory memory + 1] end Day 2

16 Try doing the following: 1.Change the number of hunters to 1, then to 5. 2.Try setting the hunters’ initial heading to 45˚ by using the command: set heading 45 3. Change each group of mushrooms to have more mushrooms in a smaller radius. Day 2

17 Try doing the following: 4. Have the hunters say “Found one!” using the command: show “found one!” 5. Instead of turning by -10 to 10 degrees when they haven’t found a mushroom for awhile, change it to -45 to 45. 6. Change where the hunters start by using the command: setxy 10 10 Day 2

18 Challenge: Have the hunters count how many mushrooms they have found. You need to define: turtles-own [counter] You’ll need to use the command: set counter 0 And every time they pick up a mushroom the command: set counter counter + 1 Instead of saying show “found one!” have them: show counter Day 2


Download ppt "Day 1 Goal: To create a model of people hunting in the forest for mushrooms and then start working on improving their mushroom hunting ability mathematically."

Similar presentations


Ads by Google