this post was submitted on 29 Jan 2024
480 points (98.8% liked)
AnarchyChess
5139 readers
45 users here now
Holy hell
Other chess communities:
[email protected]
[email protected]
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
I really hope this is satire. Otherwise I'm scared to ask how long it took.
It's definitely satire. 2 million lines of code is an absurd under-exageration. This post had me looking up the number of possible chess games, because if you coded chess like above you would have to have an if statement for every outcome, and it's 10^120 different possible games.
https://en.wikipedia.org/wiki/Shannon_number
You only have to code a fraction of those as the computer should take the same move for several of the user inputs.