css Audio - Active file-generic CSS - Active Generic - Active HTML - Active JS - Active SVG - Active Text - Active file-generic Video - Active header Love html icon-new-collection icon-person icon-team numbered-list123 pop-out spinner split-screen star tv
CodePen probably won't work great in this browser. We generally only support the major desktop browsers like Chrome, Firefox, Safari, and Edge. Use this one at your own risk! If you're looking to test things, try looking at Pens/Projects in Debug View.
user profile image

This Pen is a fork of Sophie Alpert's Pen Tic Tac Toe.


  1. hi,

    Wouldn't it make sense if, when traveling back in time, the history gets updated as well ?

    // nothing changes above this
    jumpTo(step) {
        const history = this.state.history.slice(0, step + 1);
          history: history,
          stepNumber: step,
          xIsNext: step % 2 === 0
    // nothing changes below this

    Full example visible here (it's a simple fork):


  2. Where does the variable "move" get populated ?

Leave a Comment Markdown supported. Click @usernames to add to comment.

You must be logged in to comment.