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.
  • M [email protected]
    This post did not contain any content.
    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
    #70

    not to get epistemological,

    but I hate that technically there's only a limited number of moves in chess, and therefore the best move is there, maybe there's a strategic where white will always win, but we'll never know because the number of variations likely is larger than atoms in the universe.

    E N 2 Replies Last reply
    2
    • A [email protected]

      not to get epistemological,

      but I hate that technically there's only a limited number of moves in chess, and therefore the best move is there, maybe there's a strategic where white will always win, but we'll never know because the number of variations likely is larger than atoms in the universe.

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

      In modern chess, engines have gotten good enough that we generally do know the top moves and humans can't beat them. We can even numerically assess someone's chess play with a computer, which we call "accuracy". Obviously they can always be improved further, and there are a handful of situations where they might misevaluate, but it's still pretty incredible.

      Engines have only made chess more exciting as they have shattered a lot of old theory and helped people find a lot of new and innovative ideas. They are an incredible aid in analysis and tournament prep.

      A 1 Reply Last reply
      4
      • E [email protected]

        In modern chess, engines have gotten good enough that we generally do know the top moves and humans can't beat them. We can even numerically assess someone's chess play with a computer, which we call "accuracy". Obviously they can always be improved further, and there are a handful of situations where they might misevaluate, but it's still pretty incredible.

        Engines have only made chess more exciting as they have shattered a lot of old theory and helped people find a lot of new and innovative ideas. They are an incredible aid in analysis and tournament prep.

        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
        #72

        yhea, but engines still act as if it is an unsolved game.

        while in theory, given that the number of moves is limited, in theory one colour would always win.

        E 1 Reply Last reply
        2
        • A [email protected]

          yhea, but engines still act as if it is an unsolved game.

          while in theory, given that the number of moves is limited, in theory one colour would always win.

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

          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 1 Reply Last reply
          3
          • A [email protected]

            not to get epistemological,

            but I hate that technically there's only a limited number of moves in chess, and therefore the best move is there, maybe there's a strategic where white will always win, but we'll never know because the number of variations likely is larger than atoms in the universe.

            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
            #74

            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.

            B A 2 Replies Last reply
            6
            • A [email protected]

              hey, there is an inherent fun in maing games/programs using things that were never meant to.

              once i did a CPU/RAM emulator using excel, so you could see every bit.

              it was fun to make loops, and programs

              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
              #75

              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 1 Reply Last reply
              3
              • bvoigtlaender@feddit.orgB [email protected]

                This is actually what made me start my programming journey.
                Made small games using PowerPoint until I was starting to make an level editor on a 12x12 grid. My father thankfully stopped me pretty early on and showed me Game Maker 7. Not sure for how long i would have continued.

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

                I suddenly feel in good company. I got my start doing crazy things with PowerPoint and Excel because it was what I knew.

                1 Reply Last reply
                3
                • 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.

                  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
                  #77

                  That’s cool. I think this is why I never liked chess.

                  1 Reply Last reply
                  3
                  • W [email protected]

                    At university I had an introductory C course where one assignment was to write a program that searched a 4x4 array of booleans for groups of cells set to true. Groups had to be rectangles, powers of 2 in width and height, and could wrap (i.e. they could go off the right edge and back on the left edge). We had to submit our programs by e-mail and printed form one week later. The prof. marked the paper versions and the TA ran and tested the digital. One slight problem, if you used the university owned printers, they charged for print outs. A few pence per page to cover costs and stop people abusing the rather nice high quality printers the computer faculty had.

                    I'd always enjoyed programming and whilst C was new to me, using another language wasn't a big problem. As I worked on it I realised the problem wasn't as straightforward as I first thought, but I spent a few hours on it that evening and had a solution I was happy with.

                    Penny was a student on the course whose approach to academia was memorization. She didn't consume, process, and apply concepts. She just remembered them. Her favourite subject was maths. While the rest of us were struggling to derive some formula, she'd have just committed the process to memory.

                    Penny was complaining a lot on this programming assignment. She didn't understand why the assignment was so hard for an introductory class. I didn't judge. I know some people find programming hard, but I didn't feel I could help her much without jeopardising my own mark. There's only so much uniqueness in a small program and if she just copied my solution we'd both get penalised for plagiarism. I did mention to her the cases I'd found tricky to get right was when two groups overlapped. If one group completely covered a smaller one you'd only report the bigger one, but if not you'd report both groups.

                    I heard, through her boyfriend, that that week had involved many long evenings working on this assignment, but she turned up at the next class solution in hand. Obviously stressed, she carried a pile of paper of several hundred pages. She had written a program that consisted of an if-statement for every possible group size and location. About a hundred different possible groups. Each condition written with constant value indices into the array. To cope with the overlapping groups problem, checks for smaller groups also checked that no larger group also covered this area. No loops. No search algorithm. Just a linear program of if-statements.

                    Apparently debugging this has been a nightmare. Cut and paste errors everywhere, but when I'd told her about overlapping groups aspect it had blown her mind. There always seemed to be a combination she hadn't accounted for. Multiple times she thought she was done, only to find a corner case she'd missed. And just to kick her when she was down, she'd paid for multiple printouts, each one costing about £10 only to find a problem afterwards.

                    This consistent A grade student who sailed through everything by relying on her memory had been broken by being asked to create an algorithm rather than remember one. She got credit for submitting a solution that compiled and solved some cases, but I doubt the professor got past the first page of that huge printout.

                    Penny had worked really hard for that D.

                    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
                    #78

                    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 I 2 Replies Last reply
                    4
                    • M [email protected]
                      This post did not contain any content.
                      the16bitgamer@programming.devT This user is from outside of this forum
                      the16bitgamer@programming.devT This user is from outside of this forum
                      [email protected]
                      wrote on last edited by [email protected]
                      #79

                      They are doing it dumb. You can text output chess but you just need to keep track of where the pieces are in code, then when you are ready to output, place the characters. Saves so much time. /s

                      1 Reply Last reply
                      2
                      • 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
                                          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