git add readme and flock
This commit is contained in:
parent
adc48b265f
commit
0868ccd1f1
|
|
@ -1 +1 @@
|
|||
10,10;11,11;9,11;12,10
|
||||
10,11;11,11;9,11;12,11
|
||||
|
|
|
|||
|
|
|
@ -0,0 +1,16 @@
|
|||
The goal of this project is to link a multi-agent simulation and the Game of life of Conway.
|
||||
|
||||
In our code we have 3 differents rules :
|
||||
- The Conway rules that state that any living cells with 1 or more than 3 neighbors dies and a dead cell with exactly 3 living neighbors will come to life.
|
||||
- The Blob Rule stating that a cell will stay alive if she has exactly 1,3,5,8 neighbors and a dead cell with exaclty 3,5,7 living neighbors will come to life.
|
||||
- Our rule stating that any living cell with 2 and 4 neighbors dies and a dead cell will come to life if she has 1 or 3 living neighbors
|
||||
|
||||
Part 3
|
||||
To be able to save a world we needed to create a snapshot of the grid where each line is represented as a string of the
|
||||
cell state separated by semicolons.
|
||||
To do that we first create an empty list, and then the state of every cell of the grid is stored inside this list.
|
||||
To save an agent or a rule do the same methodology.
|
||||
|
||||
Agent
|
||||
We implemented the sheep agent and the engineer agent
|
||||
To implement the
|
||||
Loading…
Reference in New Issue