Type | Instruction | Description |
---|---|---|
Action | hop | If the space ahead is empty, move forward, otherwise, do nothing. |
left | Turn to face left. | |
right | Turn to face right. | |
infect | If the space ahead contains a creature of a different species, change that creature to be of your species, reset the program counter to zero, but leave the direction unchanged, otherwise, do nothing. | |
Control | if_empty n | If the space ahead is empty, go to line n, otherwise, go to the next line. |
if_wall n | If the space ahead is a wall, go to line n, otherwise, go to the next line. | |
if_random n | Randomly choose between going to line n or the next line. If rand() from <cstdlib> returns an odd number, go to line n. Call srand(0) at the start of every test case that uses rand(). | |
if_enemy n | If the space ahead contains a creature of a different species, go to line n, otherwise, go to the next line. | |
go n | Go to line n. |
Food 0: left 1: go 0 Hopper 0: hop 1: go 0 Rover 0: if_enemy 9 1: if_empty 7 2: if_random 5 3: left 4: go 0 5: right 6: go 0 7: hop 8: go 0 9: infect 10: go 0 Trap 0: if_enemy 3 1: left 2: go 0 3: infect 4: go 0
Species my_species_f; my_species_f.add_instruction(...); my_species_f.add_instruction(...); ... Species my_species_h; my_species_h.add_instruction(...); my_species_h.add_instruction(...); ... Species my_species_r; my_species_r.add_instruction(...); my_species_r.add_instruction(...); ... Species my_species_t; my_species_t.add_instruction(...); my_species_t.add_instruction(...); ... // read eval print loop (REPL) ... Darwin x(72, 72); x.add_species("f", my_species_f); x.add_species("h", my_species_h); x.add_species("r", my_species_r); x.add_species("t", my_species_t); ... Creature my_creature("f", ...); ... x.add_creature(my_creature, ...); ...
Settings -> General -> Visibility, project features, permissions -> Issues
Issues -> New Issue -> Labels -> Manage project labels
(labels are case sensitive):
(Titanium yellow)
(Dark violet)
(Gray)
(Dark coral)
Issues -> Import issues -> Import CSV
Assets | Location |
---|---|
Correctness
|
|
Build Files
|
|
Issues
|
|
Unit Tests |
|
Acceptance Tests
|
|
Continuous Integration |
|
Code |
|
Documentation |
|