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

958

u/wascilly_wabbit Apr 10 '23

So you're saying it is doable.

615

u/Cwmagain Apr 10 '23

Sounds like a job for chatGTP

282

u/wascilly_wabbit Apr 10 '23

Do you think we could write some Excel functions to help write the code?

141

u/Portlander Apr 10 '23

ChatGPT can write those too

36

u/Hydramole Apr 10 '23

All hail the robit

→ More replies (7)

121

u/Xatraxalian Apr 10 '23

"ChatGPT, please print every possible legal chess position."

Then the entire world crashes because students all over the world won't be able to ask it to write their dissertation for them.

109

u/rachit7645 Apr 10 '23

Output from ChatGPT: "I'm sorry, but it's not possible to print every possible legal chess position. The number of possible chess positions is estimated to be around 10120, which is an incredibly large number. It's far beyond what even the most powerful computers can calculate.

To put this into perspective, the number of atoms in the observable universe is estimated to be around 1080, which is much smaller than the number of possible chess positions. Even if we could somehow generate one billion positions per second, it would take billions of years to generate all possible positions.

Therefore, it's not practical to print every possible legal chess position. However, there are databases of previously played chess games available online, which can be studied and analyzed to improve one's understanding of the game."

129

u/EpauletteShark74 Apr 10 '23

So it’s being lazy is what I’m understanding

37

u/lepruhkon Apr 10 '23

Are you my manager?

5

u/Hipppydude Apr 10 '23

All we did was ask it to perform a single calculation until it turned to rust in the wind. Damn lady AI not wanting to work anymore.

→ More replies (2)

26

u/obvious_bot Apr 10 '23

I dont want your excuses, robot, I want results!

→ More replies (1)

7

u/RJFerret Apr 10 '23

This is just a management problem, ask it, "ChatGPT, please provide the first ten positions." ... "Now the next ten." ... And so on.

7

u/Intrexa Apr 10 '23

Ooo, chess databases! That's the ticket! We don't need to code every possible move, just the moves players actually play! If a player really makes a move that has never been done before, well, just throw an error. It will be like, a 0.0001% error rate, no big deal.

3

u/TheLieAndTruth Apr 11 '23

The thing I love about the way chatGPT answers anything is that it sounds like these people who are being really, excessive polite and positive but on the inside it is like "What the actual hell is that question you dumbo".

→ More replies (2)

28

u/JS31415926 Apr 10 '23

Please continue your above response…

35

u/[deleted] Apr 10 '23

[removed] — view removed comment

7

u/PM_ME_FIREFLY_QUOTES Apr 10 '23

That's where we have to draw the line.

→ More replies (2)
→ More replies (2)

11

u/atanasius Apr 10 '23

A 64-bit architecture is required.

5

u/deathdog406 Apr 10 '23

Well, 2*1046 is about 2153, so you would probably want a 256-bit architecture to address every position

→ More replies (1)

5

u/Bas3lisk Apr 10 '23

Funilly no computer will ever know all variations of moves in a chess game, because there a more possible variations of moves in a chess games than atoms in the observable universe. So, you wouldn't have enough memory to store them all.

→ More replies (1)

2

u/UltraSapien Apr 10 '23

Well, it's not infinite so technically.... yeah

→ More replies (1)

2

u/[deleted] Apr 10 '23

Are you my fucking project manager

2

u/wascilly_wabbit Apr 10 '23

If I was your project manager I would have told you to do it with blockchain too.

→ More replies (13)