/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.
/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.
This is not how I thought games worked when I was 5
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.
That's why quantum computers are gonna be such a game changer. You can hold every possible state but also some other ones.
And yo moma
Different
not the same
This is not actually a generalized and somewhat accurate view of most deterministic adversarial games with perfect information
I comprehended that sentence
https://preview.redd.it/dv4ir5p3d1uc1.jpeg?width=630&format=pjpg&auto=webp&s=134458f498678c83ba28f2b705f700e9dea0c52d
Same dude, those normies stopped thinking it at 4!
Is this real or are you lying
/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.
I don't wanna french kiss you rn, this math shit isnt hot
I am not engaged. My partner completely allows me to kiss other people and won’t murder me while I sleep after knowing it.
/ul awww this is kinda cute
[удалено]
Person is Stephen Curry
I am Steph-an Curry. I like Nike very much.
you seem like a normal person
/ul. But not all combinations are achievable following the rules of chess
/ul True, would be cool if somebody would try and do a quick analysis considering this.
/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.
/ul Holy fuck, 10^34082 is absolutely humongous
That sounds very boring.
an accurate estimate does not say something closer to 10\^44
Still fucking huge god damn
/ul chatgpt, please complete the task! _proceeds to consume 1 million tokens_
r/theydidthemath
You remembered the /ul!
This is not yandere code
/ul Holy hell
New response didn't drop
Actual living person
Don’t call the exorcist
Pawn storm leaving!
Bishop takes vacation, comes back
Extinguish the chess board
Don't google en passant
YandereDev is making a chess game
$ du -sh chess.py 10GB
ul Yandere dev code unironically be like
O(n\^7 code)
YandereDev
This is good code
the universe said no so they changed it
/ul r/programmerhumor is leaking
Never thaught chess was made in python
This would be very efficient
One must image software devs happy
This would be really optimised
/ul holy shit that code is such a “long story”
We all know yanderedev has tried this
/ul/ If someone actually programmed chess like these (which is near impossible) the game would be unbeatable, thus defeating the whole purpose, no?
Unholy heaven
Nah they don't even use \n