7 points

When I was learning c++ in high school, I made a working 10x10 implementation of Conway’s Life before I had learned about arrays.

Even then I didn’t do it like this. Just had 200 variables for the front and back buffers, and one big function with individual checks for each grid coord variable to check it’s neighbors.

permalink
report
reply
13 points

And now they’ll have to fix their board, for it is wrong. h3 is a white square.

permalink
report
reply
7 points

Btw, is there a cli chess game with such characters as symbols?

permalink
report
reply
4 points
*

I imagine there are a few out there, but unicode has chess symbols so it’s certainly easy enough to do if you have a language, font, and terminal that supports it.

permalink
report
parent
reply
13 points

what if you write an algorithm that will produce the necessary code for each possible move, so you don’t have to type them all manually

permalink
report
reply
3 points

If it works, it works.

permalink
report
reply

Programmer Humor

!programmerhumor@lemmy.ml

Create post

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.

Community stats

  • 3.8K

    Monthly active users

  • 1.6K

    Posts

  • 36K

    Comments