Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add rps automata #42

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open

Commits on Jun 3, 2020

  1. Add rock-paper-scissors rule (ljvmiranda921#26)

    Addresses ljvmiranda921#26.
    
    The current implemenation maintains separate 2D board matrices
    for each state to allow the use of existing lifeforms.
    whonut committed Jun 3, 2020
    Configuration menu
    Copy the full SHA
    c0e03bc View commit details
    Browse the repository at this point in the history
  2. Add multistate-capable board

    This board allows for the use of multistate automata.
    whonut committed Jun 3, 2020
    Configuration menu
    Copy the full SHA
    1e660d9 View commit details
    Browse the repository at this point in the history

Commits on Jun 6, 2020

  1. Rename MultiStateBoard.states

    Renames MultiStateBoard.states to state for consistency
    with Board.
    whonut committed Jun 6, 2020
    Configuration menu
    Copy the full SHA
    95f6c3c View commit details
    Browse the repository at this point in the history
  2. Fix adding lifeforms to MultiStateBoard

    The fix ensures that, when adding lifeforms, each cell is in exactly
    one state at a time i.e. only one of the entries in the state tensor
    corresponding to that cell is set to True at any one time.
    whonut committed Jun 6, 2020
    Configuration menu
    Copy the full SHA
    ca8ba28 View commit details
    Browse the repository at this point in the history
  3. Remove print statement

    whonut committed Jun 6, 2020
    Configuration menu
    Copy the full SHA
    9332937 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    bc5d0be View commit details
    Browse the repository at this point in the history
  5. Reformat board.py

    board.py now conforms with black style guide.
    whonut committed Jun 6, 2020
    Configuration menu
    Copy the full SHA
    3915dd2 View commit details
    Browse the repository at this point in the history
  6. Fix neighbour counting

    Fixed a bug with rps_life_rule with neighbour counting
    caused by the array holding neighbour counts inheriting the
    dtype bool from the state array.
    whonut committed Jun 6, 2020
    Configuration menu
    Copy the full SHA
    ce58213 View commit details
    Browse the repository at this point in the history