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

1.2k

u/DrawSense-Brick Apr 10 '23

I think this would constitute best practice, since it'd implicitly cut down on the number of board states you need to hardcore, greatly reducing the size of the final executable.

554

u/DominoNo- Apr 10 '23

AI is basically a bunch of if statements

366

u/NicolasCageLovesMe Apr 10 '23

everything is

154

u/Rularuu Apr 10 '23

I know for sure that I am at least

113

u/[deleted] Apr 10 '23

I if therefore I am

71

u/Guy_with_Numbers Apr 10 '23
if i == think:
    i = am

10

u/[deleted] Apr 11 '23

if (i.methodExists(think)) { self.bind(i) }

9

u/BobbyWatson666 Apr 11 '23

I am think therefore I am am

→ More replies (1)

10

u/payne_train Apr 10 '23

Put it on my tombstone 🪦

6

u/just_nobodys_opinion Apr 11 '23
if thought(self) & was(self):
    was_right(descartes)

10

u/DaksTheDaddyNow Apr 10 '23

If 0 then not 1

12

u/NicolasCageLovesMe Apr 10 '23

Even our genetic code

If AGTCGATGCATCGACGTACGTCGATCGTACGATCGTACGTACTGATCGTACTGCTGTAGCTGACTGACTGACTGATCGTGACTGACTGACTGACGTGTGCTGCATGGCTTACTGATCGTAGCTGACTGCTGTGACGTACTCTGATGCTGACTACGTTGCTGATGCTGACGTCGATGCTGACTGCTGACTGTGCACATGCA.....

5

u/Trioxidus Apr 10 '23

ETC

6

u/theUSSROfficial Apr 10 '23

there's no E gene

11

u/[deleted] Apr 10 '23

There is a Eugene though

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

9

u/[deleted] Apr 10 '23

Always has been

6

u/SplinterRifleman Apr 10 '23

If everything is an if statement, what is an if statement?

6

u/[deleted] Apr 10 '23

If this is true then… wait a minute!!

5

u/[deleted] Apr 10 '23

Otherwise its else

→ More replies (10)

86

u/nateDOOGIE Apr 10 '23

damn funny how just a few years ago this joke was so true, but hardly the case now. most AI now is multiplying numbers.

46

u/grstacos Apr 10 '23

A few years ago it should still have been different. More like: "AI is just a bunch of state-based search algorithms. If-statements exist."

→ More replies (7)
→ More replies (8)
→ More replies (37)

12

u/gottauseathrowawayx Apr 10 '23

it'd implicitly cut down on the number of board states you need to hardcode

Only if the player is always the same color

→ More replies (1)
→ More replies (3)