Skip to content

Instantly share code, notes, and snippets.

@manvillej
Last active October 20, 2018 18:20
Show Gist options
  • Save manvillej/b6c9f176b1bd340b4546c9bf36fdaff5 to your computer and use it in GitHub Desktop.
Save manvillej/b6c9f176b1bd340b4546c9bf36fdaff5 to your computer and use it in GitHub Desktop.
2 turns forward from number 1
>>> nextState = nextState * transitionMatrix
>>> nextState
matrix([[1, 2, 0, 1, 0, 0, 0, 1, 0, 0]])
>>> np.sum(nextState)
5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment