At first you can move around with the arrow keys, and train the AI however you want. Then press space to let the AI decide where to move. At any time press space to bring the cat back to where he started. DISCLAIMER: This AI will only attempt to mimic your behavior, and recognize patterns somewhat successfully. This is mostly just me messing around and having funmeant to show it can be done
Sources: http://setosa.io/ev/markov-chains/ https://www.youtube.com/watch?v=rFPySEM6rNE Music by Jake Chudnow: http://www.youtube.com/jakechudnow