chess board

chess board preview image

1 collaborator

4b6d5391822be53217fb411b36f1b22b aliaa medhat (Author)


(This model has yet to be categorized with any tags)
Visible to everyone | Changeable by everyone
Model was written in NetLogo 5.1.0 • Viewed 651 times • Downloaded 60 times • Run 0 times
Download the 'chess board' modelDownload this modelEmbed this model

Do you have questions or comments about this model? Ask them here! (You'll first need to log in.)

Comments and Questions

Please start the discussion about this model! (You'll first need to log in.)

Click to Run Model

living? live-neighbors

to setup 
ask patches[
  ifelse remainder (pxcor + pycor)2 = 0

to cell-birth
set living? true
set pcolor red

to cell-death
set living? false
set pcolor black  

to go 
ask patches[
set live-neighbors count neighbors with [living? = true]
ask patches with [living? = true] 
[ if live-neighbors < 2 or live-neighbors > 3 [cell-death]
ask patches with [living? = false]
[if live-neighbors = 3 [cell-birth]


There is only one version of this model, created over 8 years ago by aliaa medhat.

Attached files

File Type Description Last updated
chess board.png preview Preview for 'chess board' over 8 years ago, by aliaa medhat Download

This model does not have any ancestors.

This model does not have any descendants.