Skip to content

1.0.3

Latest
Compare
Choose a tag to compare
@terrencetec terrencetec released this 28 Feb 02:48
· 8 commits to master since this release

[1.0.3] 2021-02-28

Added

  • [pconway.core.gameoflife.compute_cell_next_state] Compute the next state
    of a single cell.

Changed

  • [pconway.render.play] and [pconway.clitools.gameoflife] Changed default
    alive_char from "o" to "." because it looks better.
  • [setup.py] Read version number from pconway/version.py instead of
    separately definition.
  • [pconway.tests.test_gameoflife.py] Changed random_matrix to accommodate
    recent changes.
  • [pconway.core.gameoflife.mutation] Draw random number from np.random.binomial
    and use xor gate to perform mutation instead of using nested for-loops.
  • [pconway.core.gameoflife.get_alive_neighbours] Use np.count_nonzero to count
    number of alive cells instead of using nested for-loops.
  • [pconway.core.gameoflife.compute_next_state] Use np.vectorize and
    pconway.core.gameoflife.compute_cell_next_state (new) to compute
    next state of a matrix instead of using nested for-loops and statements.
  • Put tests in the module instead.
  • [pconway.render.play] Compute wait time efficiently by using time.sleep()

Fixed

  • Typos in CHANGELOG.md
  • Formatting according to PEP 8