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

11.2k

u/Adityamk Apr 10 '23

Oh my fucking god...

3.4k

u/highland-spaceman Apr 10 '23

I died inside fucking wow

76

u/rebbsitor Apr 10 '23

Playing World of Warcraft too long will do that!

→ More replies (8)

347

u/[deleted] Apr 10 '23

[removed] — view removed comment

→ More replies (1)
→ More replies (4)

1.1k

u/Lucky-Citron-8269 Apr 10 '23

If this is really the route that you want to go, then I think this is one of the cases were it’s easier to write code that will write the code for you.

680

u/powerman228 Apr 10 '23

Good luck storing and compiling all that…aren’t there more possible games of chess than stars in the universe or something?

586

u/FuerstAgus50 Apr 10 '23 edited Apr 10 '23

more than atoms in the universe

https://www.youtube.com/watch?v=Km024eldY1A

324

u/[deleted] Apr 10 '23

We clearly need a bigger universe!

314

u/forty3thirty3 Apr 10 '23

from universe import *

139

u/newton21989 Apr 10 '23

I read that as from universe import star and then thought which star?

110

u/SleepyHarry Apr 10 '23

/usr/local/star

sol is a valid alias

35

u/forty3thirty3 Apr 10 '23

It's a star import. It imports all the stars.

→ More replies (13)
→ More replies (1)
→ More replies (5)
→ More replies (8)

129

u/AndyWatt83 Apr 10 '23

This is a cool way to visualise why it's not possible to 'solve' chess by brute force.
Say you wanted to build a lookup table for the best move in any given position. Even if you could find a way to encode a position onto a single atom, there are insufficient atoms in the universe to store all the positions in chess.

Moore's law cant save you, because there's not enough matter in the universe to build a big enough hard drive.

→ More replies (50)
→ More replies (9)

82

u/JaDasIstMeinName Apr 10 '23

I love how you thought stars in the universe was insane and its even worse...

58

u/ThatOneStoner Apr 10 '23

Can't be that much more insane. How many atoms per star? Like 6, 7? 11 tops.

→ More replies (7)
→ More replies (1)
→ More replies (34)
→ More replies (10)

358

u/CoffeeDust_exe Apr 10 '23

2 down, 10120 to go

185

u/bjandrus Apr 10 '23

Yeah I don't think we're delivering chess this sprint, or the next one, or the next one...

103

u/PM_ME_FIREFLY_QUOTES Apr 10 '23

You're just not agile enough.

--the PM (probably)

→ More replies (2)

31

u/goatanuss Apr 10 '23

Done? Who said anything about done? We shipped these two moves this sprint and that’s value to the customer.

→ More replies (3)
→ More replies (8)
→ More replies (3)

113

u/ProbablyGayingOnYou Apr 10 '23

...

case 7263849503928374637284637584938273650302:

...

Better break out the energy drinks, this could be an all-nighter...

→ More replies (4)

48

u/400double Apr 10 '23

if number in [2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31,

→ More replies (36)