• vithigar@lemmy.ca
    link
    fedilink
    arrow-up
    8
    ·
    edit-2
    8 days ago

    Even fewer than that, since you’re not accounting for the actual rules of the game. You counted every possible arrangement of X’s and O’s on the board, but many of those aren’t valid game states, like all X’s for example.

    On top of that you can also eliminate rotationally equivalent states. Ditto for mirrored states. Starting with an X in the top-right isn’t a meaningfully different state than starting in any other corner. There are effectively only three distinct starting states. Center, any corner, or any side.

    On the other hand, there are semi-filled final states you’re not considering. Not every square on the board needs to be filled for a player to win. You’re also only counting distinct winning lines (many of which could be eliminated due to rotational equivalence), but not the turns to get there, which would provide several possible scenarios for a given final state.

    All that said, I expect the actual number of unique possible games to be quite a bit lower than 500.

        • AbsentBird@lemm.ee
          link
          fedilink
          English
          arrow-up
          3
          ·
          9 days ago

          By my estimation, of those 126: 80 are a win for X (or whoever goes first), 30 are a win for O (or whoever goes second), and 16 are a stalemate.

          So the number of losing positions depends on whether you go first or second.