Coding chess
-
On the lower end of estimates, the number of unique chess board configurations is 10^120, often referred to as the Shannon number. The universe doesn't stand a chance.
maybe a distant future technology could compute that, Clarktech style
-
The solution to chess is almost certainly a draw, since this is what all top engine chess converges to. Otherwise you are completely correct: chess is unsolved and will likely never be solved.
wrote on last edited by [email protected]one AI that always manages to draw in chess is Stable diffusion and dalle...
/j
-
Professor was an idiot if it gave a D for a working solution. Getting it working is the grade, optimizing is the next step.
Don’t teach lol
-
bes way to learn is by doing what you're not supposed to
wrote on last edited by [email protected]True enough! Mistakes are the best teacher. That said, I'm still making games in Javascript to this day, so I guess you can say I haven't learned enough lol.
-
Dwarf planets sometimes have moons (e.g. Pluto)
Some large asteroids have moons too.
-
This post did not contain any content.wrote on last edited by [email protected]
This is supposed to be a joke but sadly a lot of beginner tutorials on coding Tic-Tac-Toe teach this
-
This is very inefficient, they should be using a switch case.
wrote on last edited by [email protected]For efficiency you should you GOTO, so you can join trees that end up in same position.
Like those create your own adventures books.
-
Did the program cheat? Tic tac toe is a tie if opponents play correctly.
I'm probably remembering it wrong, it was a long time ago. It definitely always either won or tied but could never lose, because it knew the right responses to every move. No, it didn't cheat lol.
-
Placing moves in invalid locations, passing a turn, or making multiple moves on one turn?
There are no invalid locations in tic Tac toe, passing a turn provides no advantage, I suppose you could take extra turns to cheat.
-
Programming chess as a single lookup table is wild
Its written vibe.
-
Professor was an idiot if it gave a D for a working solution. Getting it working is the grade, optimizing is the next step.
Name checks out
-
This post did not contain any content.
Found the guy who passed the test with
printf (" *\n **\n ***\n ****\n*****\n);
-
True enough! Mistakes are the best teacher. That said, I'm still making games in Javascript to this day, so I guess you can say I haven't learned enough lol.
Considering that enough pro's are doing the same, perhaps you didn't really do it wrong?
-
Name checks out
Gottem! Meanwhile, I’m right and you’re a moron.
-
Gottem! Meanwhile, I’m right and you’re a moron.
The downvotes says you're retarded, give it up dickhead
-
This post did not contain any content.
now implement castling in that
-
The downvotes says you're retarded, give it up dickhead
So if your moral and intellectual superior was being upvoted, you’d concede me being right? You’re even dumber than I first assessed. Run along worthless dumbfuck, leave your superior alone.
-
There are no invalid locations in tic Tac toe, passing a turn provides no advantage, I suppose you could take extra turns to cheat.
An invalid turn would be something like placing a move on top of an already-filled square or outside of the 9 grid spaces. It seems obvious to a human that you can't do these things, but computer bugs have a tendency to do things you don't expect. And yes, passing a turn doesn't provide an advantage, but I listed it because it's still technically cheating.
-
Some large asteroids have moons too.
this leads to the question: are they still considered a moon when the barycenter is in the space between them?
-
this leads to the question: are they still considered a moon when the barycenter is in the space between them?
There is no clear definition of what constitutes a moon other than it being a body that orbits another body that orbits the parent star.
There are some astronomers who say the dividing line between a moon-planet/dwarf planet/asteroid system and binary (or more) planet/dwarf planet/asteroid system is whether or not the barycenter of the orbits is within one of the bodies or not.
And fun fact: if that definition gained acceptance, it would mean that the Pluto-Charon system would go from a dwarf planet-moon system to a binary dwarf planet system. Charon could get a promotion.