szmer
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
Tixanou@lemmy.world to Programmer Humor@lemmy.ml · 2 years ago

coding chess

lemmy.world

message-square
40
fedilink
667

coding chess

lemmy.world

Tixanou@lemmy.world to Programmer Humor@lemmy.ml · 2 years ago
message-square
40
fedilink
  • Venator@lemmy.nz
    link
    fedilink
    arrow-up
    91
    ·
    2 years ago

    Reminds me of how I made tic tac toe game for my first university assignment 🤣

    • Eager Eagle@lemmy.world
      link
      fedilink
      arrow-up
      40
      ·
      2 years ago

      “hey, as long as it works…”

    • jaybone@lemmy.world
      link
      fedilink
      arrow-up
      38
      ·
      2 years ago

      That has a finite number of moves. And then you could possibly generate the code based on that finite set.

      • Shard@lemmy.world
        link
        fedilink
        arrow-up
        40
        ·
        2 years ago

        Chess technically has a finite number of moves. Although its a huge number and some have theorized its larger than the number of atoms in the known universe.

        • Albbi@lemmy.ca
          link
          fedilink
          arrow-up
          11
          arrow-down
          4
          ·
          2 years ago

          Technically it’s infinite, but that’s because of a stalemate. You can keep repeating the same moves over and over.

          • eatham 🇦🇺@aussie.zone
            link
            fedilink
            English
            arrow-up
            11
            arrow-down
            1
            ·
            2 years ago

            Stalemate is after 3 repeat moves, so no.

            • jaybone@lemmy.world
              link
              fedilink
              arrow-up
              4
              ·
              2 years ago

              But it’s a state machine, and you could easily contrive scenarios for infinite moves, without stalemate.

          • Scubus@sh.itjust.works
            link
            fedilink
            arrow-up
            4
            ·
            2 years ago

            *finite, I’m assuming autocorrect gotcha

Programmer Humor@lemmy.ml

programmerhumor@lemmy.ml

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !programmerhumor@lemmy.ml

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

  • Posts must be relevant to programming, programmers, or computer science.
  • No NSFW content.
  • Jokes must be in good taste. No hate speech, bigotry, etc.
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 303 users / day
  • 798 users / week
  • 2.5K users / month
  • 7.36K users / 6 months
  • 42 local subscribers
  • 39.1K subscribers
  • 2.05K Posts
  • 38.9K Comments
  • Modlog
  • mods:
  • AgreeableLandscape@lemmy.ml
  • cat_programmer@lemmy.ml
  • BE: 0.19.6
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org