Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

agnos.is Forums

  1. Home
  2. Programmer Humor
  3. Coding chess

Coding chess

Scheduled Pinned Locked Moved Programmer Humor
programmerhumor
101 Posts 68 Posters 36 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N [email protected]

    This is how I got into game development myself. I used to use Javascript to make dumb little interactive games in the early 2000s before it was ever meant to do such things, emulating what is now modern day HTML5 canvas and such

    A This user is from outside of this forum
    A This user is from outside of this forum
    [email protected]
    wrote on last edited by
    #80

    bes way to learn is by doing what you're not supposed to

    N 1 Reply Last reply
    0
    • N [email protected]

      On the lower end of estimates, the number of unique chess board configurations is 10^120, often referred to as the Shannon number. The universe doesn't stand a chance.

      A This user is from outside of this forum
      A This user is from outside of this forum
      [email protected]
      wrote on last edited by
      #81

      maybe a distant future technology could compute that, Clarktech style

      1 Reply Last reply
      1
      • E [email protected]

        The solution to chess is almost certainly a draw, since this is what all top engine chess converges to. Otherwise you are completely correct: chess is unsolved and will likely never be solved.

        A This user is from outside of this forum
        A This user is from outside of this forum
        [email protected]
        wrote on last edited by [email protected]
        #82

        one AI that always manages to draw in chess is Stable diffusion and dalle...

        /j

        1 Reply Last reply
        0
        • B [email protected]

          Professor was an idiot if it gave a D for a working solution. Getting it working is the grade, optimizing is the next step.

          J This user is from outside of this forum
          J This user is from outside of this forum
          [email protected]
          wrote on last edited by
          #83

          Don’t teach lol

          1 Reply Last reply
          7
          • A [email protected]

            bes way to learn is by doing what you're not supposed to

            N This user is from outside of this forum
            N This user is from outside of this forum
            [email protected]
            wrote on last edited by [email protected]
            #84

            True enough! Mistakes are the best teacher. That said, I'm still making games in Javascript to this day, so I guess you can say I haven't learned enough lol.

            U 1 Reply Last reply
            1
            • itslilith@lemmy.blahaj.zoneI [email protected]

              Dwarf planets sometimes have moons (e.g. Pluto)

              C This user is from outside of this forum
              C This user is from outside of this forum
              [email protected]
              wrote on last edited by
              #85

              Some large asteroids have moons too.

              voidjuiceconcentrate@midwest.socialV 1 Reply Last reply
              1
              • M [email protected]
                This post did not contain any content.
                buboscandiacus@mander.xyzB This user is from outside of this forum
                buboscandiacus@mander.xyzB This user is from outside of this forum
                [email protected]
                wrote on last edited by [email protected]
                #86

                This is supposed to be a joke but sadly a lot of beginner tutorials on coding Tic-Tac-Toe teach this

                1 Reply Last reply
                16
                • P [email protected]

                  This is very inefficient, they should be using a switch case.

                  H This user is from outside of this forum
                  H This user is from outside of this forum
                  [email protected]
                  wrote on last edited by [email protected]
                  #87

                  For efficiency you should you GOTO, so you can join trees that end up in same position.

                  Like those create your own adventures books.

                  1 Reply Last reply
                  2
                  • T [email protected]

                    Did the program cheat? Tic tac toe is a tie if opponents play correctly.

                    L This user is from outside of this forum
                    L This user is from outside of this forum
                    [email protected]
                    wrote on last edited by
                    #88

                    I'm probably remembering it wrong, it was a long time ago. It definitely always either won or tied but could never lose, because it knew the right responses to every move. No, it didn't cheat lol.

                    1 Reply Last reply
                    1
                    • R [email protected]

                      Placing moves in invalid locations, passing a turn, or making multiple moves on one turn?

                      couldbealeotard@lemmy.worldC This user is from outside of this forum
                      couldbealeotard@lemmy.worldC This user is from outside of this forum
                      [email protected]
                      wrote on last edited by
                      #89

                      There are no invalid locations in tic Tac toe, passing a turn provides no advantage, I suppose you could take extra turns to cheat.

                      R 1 Reply Last reply
                      0
                      • voidjuiceconcentrate@midwest.socialV [email protected]

                        Programming chess as a single lookup table is wild

                        mormegil@programming.devM This user is from outside of this forum
                        mormegil@programming.devM This user is from outside of this forum
                        [email protected]
                        wrote on last edited by
                        #90

                        Its written vibe.

                        1 Reply Last reply
                        0
                        • B [email protected]

                          Professor was an idiot if it gave a D for a working solution. Getting it working is the grade, optimizing is the next step.

                          I This user is from outside of this forum
                          I This user is from outside of this forum
                          [email protected]
                          wrote on last edited by
                          #91

                          Name checks out

                          B 1 Reply Last reply
                          3
                          • M [email protected]
                            This post did not contain any content.
                            U This user is from outside of this forum
                            U This user is from outside of this forum
                            [email protected]
                            wrote on last edited by
                            #92

                            Found the guy who passed the test with

                            printf ("    *\n   **\n  ***\n ****\n*****\n);
                            
                            1 Reply Last reply
                            3
                            • N [email protected]

                              True enough! Mistakes are the best teacher. That said, I'm still making games in Javascript to this day, so I guess you can say I haven't learned enough lol.

                              U This user is from outside of this forum
                              U This user is from outside of this forum
                              [email protected]
                              wrote on last edited by
                              #93

                              Considering that enough pro's are doing the same, perhaps you didn't really do it wrong?

                              1 Reply Last reply
                              1
                              • I [email protected]

                                Name checks out

                                B This user is from outside of this forum
                                B This user is from outside of this forum
                                [email protected]
                                wrote on last edited by
                                #94

                                Gottem! Meanwhile, I’m right and you’re a moron.

                                I 1 Reply Last reply
                                0
                                • B [email protected]

                                  Gottem! Meanwhile, I’m right and you’re a moron.

                                  I This user is from outside of this forum
                                  I This user is from outside of this forum
                                  [email protected]
                                  wrote on last edited by
                                  #95

                                  The downvotes says you're retarded, give it up dickhead 😂

                                  B 1 Reply Last reply
                                  1
                                  • M [email protected]
                                    This post did not contain any content.
                                    cupcakezealot@piefed.blahaj.zoneC This user is from outside of this forum
                                    cupcakezealot@piefed.blahaj.zoneC This user is from outside of this forum
                                    [email protected]
                                    wrote on last edited by
                                    #96

                                    now implement castling in that

                                    1 Reply Last reply
                                    4
                                    • I [email protected]

                                      The downvotes says you're retarded, give it up dickhead 😂

                                      B This user is from outside of this forum
                                      B This user is from outside of this forum
                                      [email protected]
                                      wrote on last edited by
                                      #97

                                      So if your moral and intellectual superior was being upvoted, you’d concede me being right? You’re even dumber than I first assessed. Run along worthless dumbfuck, leave your superior alone.

                                      1 Reply Last reply
                                      1
                                      • couldbealeotard@lemmy.worldC [email protected]

                                        There are no invalid locations in tic Tac toe, passing a turn provides no advantage, I suppose you could take extra turns to cheat.

                                        R This user is from outside of this forum
                                        R This user is from outside of this forum
                                        [email protected]
                                        wrote on last edited by
                                        #98

                                        An invalid turn would be something like placing a move on top of an already-filled square or outside of the 9 grid spaces. It seems obvious to a human that you can't do these things, but computer bugs have a tendency to do things you don't expect. And yes, passing a turn doesn't provide an advantage, but I listed it because it's still technically cheating.

                                        1 Reply Last reply
                                        0
                                        • C [email protected]

                                          Some large asteroids have moons too.

                                          voidjuiceconcentrate@midwest.socialV This user is from outside of this forum
                                          voidjuiceconcentrate@midwest.socialV This user is from outside of this forum
                                          [email protected]
                                          wrote on last edited by
                                          #99

                                          this leads to the question: are they still considered a moon when the barycenter is in the space between them?

                                          C 1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • World
                                          • Users
                                          • Groups