Skip to content

let's add more cell traits and interesting behaviors #10

@7yl4r

Description

@7yl4r

More cell traits can be added fairly easily. An example:

cell mass

  • mass is proportional to strength
  • mass is inversely proportional to speed

strength and speed are used in the 'move' phase. Higher strength allows cells to push or consume other cells, and a higher speed allows for more agile movement.

to implement this:

  • add mass up/down codon lists in cell.py as well as a function getMass. HINT: you don't need to search for the string yourself, there should be a function in cell.py that does that in a general fashion.
  • create a new top-level script for evolving cells with fighting rules (or something). This script will be similar to evolveWithMovement.py, but with the added code for strength/speed handling.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions