| 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 species_f;
species_f.add_instruction(...);
species_f.add_instruction(...);
...
Species species_h;
species_h.add_instruction(...);
species_h.add_instruction(...);
...
Species species_r;
species_r.add_instruction(...);
species_r.add_instruction(...);
...
Species species_t;
species_t.add_instruction(...);
species_t.add_instruction(...);
...
// read eval print loop (REPL)
...
Darwin x(72, 72);
x.add_species("f", species_f);
x.add_species("h", species_h);
x.add_species("r", species_r);
x.add_species("t", species_t);
...
Creature creature("f", ...);
...
x.add_creature(creature, ...);
...
Settings -> General -> Visibility, project features, permissions -> Issues
Manage -> Labels (labels are case sensitive):
(Crimson)(Blue-gray)(Dark coral)(Green-cyan)(Dark sea green)(Carrot orange)(Titanium Yellow)(Lavender)(Deep violet)Issues -> Import issues -> Import CSV| Assets | Location |
|---|---|
1. Correctness
|
|
| 2. Build Files |
|
3. Issues
|
|
| 4. Unit Tests |
|
5. Acceptance Tests
|
|
| 6. Continuous Integration |
|
| 7. Code |
|
| 8. Documentation |
|
9. AI Report
|
|