This is code from an assignment is CSC 462, Computational Intro to Statistics at the University of Rochester, in the spring of 2015. We used a markov chain model to simulate a tic-tac-toe game with alternating players. To run the simulation:
Read the assignment.
Read my report.