• Researchgrant@lemmy.world
    link
    fedilink
    arrow-up
    3
    arrow-down
    1
    ·
    1 year ago

    It’s definitely satire. 2 million lines of code is an absurd under-exageration. This post had me looking up the number of possible chess games, because if you coded chess like above you would have to have an if statement for every outcome, and it’s 10^120 different possible games.

    https://en.wikipedia.org/wiki/Shannon_number

    • Taalen@lemmy.world
      link
      fedilink
      arrow-up
      3
      ·
      1 year ago

      The way I understood it, it’s two million lines and nowhere near finished.

      Anyway, satire.

    • PeriodicallyPedantic@lemmy.ca
      link
      fedilink
      arrow-up
      1
      ·
      edit-2
      1 year ago

      That’s the number of possible games, the number of possible board states is much lower, 10^40.

      Although you’re still clearly correct in the end anyways because it’s still an absurd number of board states and it’s not even formatted to be one state per line.

    • flames5123@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      1 year ago

      You only have to code a fraction of those as the computer should take the same move for several of the user inputs.