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.
    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
                  • voidjuiceconcentrate@midwest.socialV [email protected]

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

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

                    There is no clear definition of what constitutes a moon other than it being a body that orbits another body that orbits the parent star.

                    There are some astronomers who say the dividing line between a moon-planet/dwarf planet/asteroid system and binary (or more) planet/dwarf planet/asteroid system is whether or not the barycenter of the orbits is within one of the bodies or not.

                    And fun fact: if that definition gained acceptance, it would mean that the Pluto-Charon system would go from a dwarf planet-moon system to a binary dwarf planet system. Charon could get a promotion.

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

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

                      I wonder if people who think AI is "just a bunch of if statements" think programs work like Penny thought they did

                      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