Closed saechaol closed 1 month ago
I'd be happy to answer your questions
yerp
, there is a lot of repetition or some code smell, but yerp runs simple enough and fast enough functions that it doesn't generally affect the runtime, and there isn't a ton to maintain so it never caused an issue during development.Thanks for the discussion! I have a few more questions (last ones, I promise haha) now that I've had some more time to look at some of the code.
resources.cpp
? It seems to contain the seemingly unused and identical bingo() and bongo() for loops and the main function seems to perform some bitwise operations on some magic unsigned longparseCommand()
- is it correct to interpret your approach here as an implementation of a decision tree? simulator
's main function, we have cList
defined as a mutable 2d array. Is there any benefit to this compared to declaring it as a constant? Or are the elements of cList
changing whenever its passed to simulate()
(arguably I may be reading too much into this one because Occam's razor: it is just easier to declare it as a mutable array)resources.cpp
is just a file where I wrote some test code, I think the numbers there are the mersenne twister algorithm bit shift operations.Thanks! I appreciate your discussion
Hi š
Very cool project, I watched some of the video that you posted on YouTube. I just had a few questions I was curious about, I hope you don't mind answering. FWIW I'm personally not as familiar with C++ (I use at work Swift, Python, Java, in increasingly less significance to my day job) and I haven't used C++ since college, so forgive me if any of my questions can be answered with "I went with this approach because of a limitation of C++". Some questions may be simple, but its more because I'm really interested in your methodology here. I will also apologize in advance if any of my questions are answered in the video (I only watched the first 15 minutes or so).
direction == 1
, such as in the while loop ingetWanderTime(r)
. Could these be improved with a switch statement to increase readability?pokemon.cpp
you created a map of what seems to be encountered / battled pokemon, is that the correct interpretation? I'm making this observation since it seems you also define a PokeClient for each preexisting encounter, but not necessarily all possible encountersI had a few more questions but I wanted to dig into this code myself and see how it works lol. Feel free to close this issue if you don't wish to answer at this time. Thanks again if you provide any insight to your approach.