Mon premier article de blog

Merci de visiter mais je n’ai rien à dire (pour l’instant)

CoursSDA 2018-2018

ressources pour TD 1 SDA: https://filesender.renater.fr/?s=download&token=2e22134d-22f5-b9a4-da96-897f0d1eeace

Enoncé TD2 et travail personnel TP19

Starter code:

to setup
clear-all

crt number [
set color white
setxy random-xcor random-ycor
]
; ask patches [ if ((random 10) < 1) [set pcolor blue]]
reset-ticks
end

to go

ask turtles
[ move ]
update-plots
output-print ( count patches with [pcolor = white]) / ( count patches )
tick
end

to go-until-end
while [ (count patches with [pcolor = black]) > 0 ] [go]
end

to move ;; turtles procedure

rt random 100
lt random 100
fd 1
set pcolor white
end