Archived
another day another dollar
This commit is contained in:
1 parent
84a1addd21
commit
c404c68fe6
12 files changed
+100851
No files matched your search
@@ -0,0 +1,18 @@
|
||||
TP Ant Setup
|
||||
by Charles Siska - Saturday, September 5, 2020, 6:39 PM
|
||||
Number of replies: 0
|
||||
TP Ant Setup
|
||||
1. "Initially, the grid is all black and the Ant is in the center cell,
|
||||
heading North (toward the top)."
|
||||
2. "initialize a 41 by 41 square grid to have all cells black (state 0).
|
||||
The lone Ant should be in the center cell."
|
||||
TP Ant First "Move"
|
||||
3. "it first notices the color of the cell it is on and then changes its
|
||||
direction/heading based on this color,"
|
||||
BEFORE Doing Any Move
|
||||
4. "then 'increments' the color of the cell under it to the next color
|
||||
in sequence"
|
||||
FROM Black to The Next Color
|
||||
5. "finally moves one cell in its new direction"
|
||||
Which Was Set in Step #4, Above.
|
||||
Hope this helps.
|
||||
Reference in new issue
Block a user