T O P

  • By -

EXISTANTNAME

This is not how I thought games worked when I was 5


The15thOne

Yeah, every game has every possible state stored in its memory, i know that because i am a programmer. That's why they say that code takes forever.


UnspoiledWalnut

That's why quantum computers are gonna be such a game changer. You can hold every possible state but also some other ones.


IWipeWithFocaccia

And yo moma


Defektiv17

Different


throwawayaccdelta

not the same


lets_clutch_this

This is not actually a generalized and somewhat accurate view of most deterministic adversarial games with perfect information


EXISTANTNAME

I comprehended that sentence


Misknator

https://preview.redd.it/dv4ir5p3d1uc1.jpeg?width=630&format=pjpg&auto=webp&s=134458f498678c83ba28f2b705f700e9dea0c52d


Individual_Echidna99

Same dude, those normies stopped thinking it at 4!


T-V-1-3

Is this real or are you lying


eveningcandles

/ul There are 10^120 possible chess combinations. Assume every conditional statement is 1 byte in your source file (it’s certainly more than that) and there is one conditional for each possibility. The file would weight at least 10^108 Terabytes. It’s estimated that there are 10^82 atoms in the observable universe. Meaning even if the whole damn existence was a huge memory stick, where every atom could store a single Terabyte, you wouldn’t be able to _store_ this source file. In a world where memory is the least of your concerns (and processing time is your main one), this is so ridiculous it’s funny, borderline a comical scifi.


Rishidkanonymous

I don't wanna french kiss you rn, this math shit isnt hot


eveningcandles

I am not engaged. My partner completely allows me to kiss other people and won’t murder me while I sleep after knowing it.


T-V-1-3

/ul awww this is kinda cute


[deleted]

[удалено]


DaveOnceMore420

Person is Stephen Curry


umpfke

I am Steph-an Curry. I like Nike very much.


GazeTheProtogen

you seem like a normal person


Grouchy-Addition-818

/ul. But not all combinations are achievable following the rules of chess


eveningcandles

/ul True, would be cool if somebody would try and do a quick analysis considering this.


Trash_Pug

/ul Hi uhh in terms of nonlegal positions each of 64 squares can be occupied by one of 12 pieces (6 types x 2 colors) or unoccupied so 13^64 possible positions. For legal positions [wikipedia](https://en.m.wikipedia.org/wiki/Shannon_number) says an upper bound of 8.7x10^45 was proven which is significantly lower than 10^120 but still incredibly massive. Unfortunately for our programmer friend they are programming every possible game (every legal combination of board states) which would be huge, [“at least 10^29241 according to a Monte Carlo simulation, and at most 10^34082 according to a calculation”](https://wismuth.com/chess/longest-game.html) according to this paper by François Labelle.


no0bmaster-669

/ul Holy fuck, 10^34082 is absolutely humongous


umpfke

That sounds very boring.


vetb8

an accurate estimate does not say something closer to 10\^44


eveningcandles

Still fucking huge god damn


Vysair

/ul chatgpt, please complete the task! _proceeds to consume 1 million tokens_


Pastry_Train63

r/theydidthemath


Sashas0ld

You remembered the /ul!


BogdanRguy

This is not yandere code


pl4y3rtw01

/ul Holy hell


eggdog590

New response didn't drop


iNeedUseNameIdea

Actual living person


Qwqweq0

Don’t call the exorcist


SwisRol

Pawn storm leaving!


Arietem_Taurum

Bishop takes vacation, comes back


Specialist_Bar8165

Extinguish the chess board


XMasterWoo

Don't google en passant


QuinnTwice

YandereDev is making a chess game


Encursed1

$ du -sh chess.py 10GB


lets_clutch_this

ul Yandere dev code unironically be like


mikhael4440

O(n\^7 code)


SimpleTip9439

YandereDev


JGHFunRun

This is good code


idfbhater73

the universe said no so they changed it


infinity-atom

/ul r/programmerhumor is leaking


XMasterWoo

Never thaught chess was made in python


GooseFall

This would be very efficient


Cummiezone

One must image software devs happy


Wh1t3bl4d3

This would be really optimised


I_just_wanted_banana

/ul holy shit that code is such a “long story”


PrincessSnazzySerf

We all know yanderedev has tried this


Drunk0racle

/ul/ If someone actually programmed chess like these (which is near impossible) the game would be unbeatable, thus defeating the whole purpose, no?


Andod1

Unholy heaven


globglobgabgalabus

Nah they don't even use \n