Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
@HaehnleinMar oh goodness, that's great! He figured out how to do what he needed, but he had it make another Python script instead of just adding a game loop and outputting​ to console
-
If I had a years worth of free time I would probably spend it doing something like this too...
-
I remember making a brute force naughts and crosses game when I was a kid as my first programming project. 2000 lines of mainly if-elses to make the computer nearly unbeatable. Pure garbage code quality. But even that wasn't this bad. At least it took into account the symmetry, not to mention storing state lmao.
But this warms the cockles of my heart seeing another kid so immersed in the final product, that the effort of writing so much code is not even felt -
@ronakkaria sadly, they didn't. This was generated by another Python script. He literally wrote the logic he needed for printing the state of the game, but instead of using state he had it create this mess :/
-
@faheel Thanks, I didn't read it but the only thought that someone in the world wrote it hurt me worst than a papercut in an eye :S
-
@jpichardo hell no my AI is a legitimate state-based AI with support for generic NxN boards. This shit is just... wtf
Related Rants
Oh my god...
https://github.com/asweigart/...
undefined
omg
bad dev
tictactoe
github