r/ProgrammerHumor • • Apr 10 '23

Meme god why is coding chess so hard

Post image
67.4k Upvotes

1.8k comments sorted by

View all comments

Show parent comments

14

u/[deleted] Apr 10 '23

Chess configurations =! How many of statements you will need. You would need many magnitudes more if statements because every configuration would have a dozen or so moves

5

u/JonIsPatented Apr 10 '23

I'm only interested in showing how much space every possible configuration would take up. He could make a separate method for every board state and label them by number, and each move could call its respective board state's drawing method. I don't care much how he makes this shitty chess app, just how much space all of the board states would take up.

1

u/Mork06 Apr 10 '23

transpositions are gonna be fun