Pokemon stats calculator
I have a simple working (so it's not a hypothetical stub) framework for calculating Pokemon stats that will later be incorporated in a game. It uses the LCRNG from the first game in order to be as...
View ArticleAnswer by David for Pokemon stats calculator
The first thing that strikes me is a lack of readability and consistency. struct stats_t{ uint8_t hp; uint8_t atk; uint8_t def; uint8_t spd; uint8_t spc; /* special */};Whats does stats_t mean? Why not...
View ArticleAnswer by pacmaninbw for Pokemon stats calculator
Yes, your random number generator does seem to meet the UniformRandomNumberGenerator description.Sorry that this is so negative, your code looks more like C than C++.Instead of using C casts like (int)...
View ArticleAnswer by glampert for Pokemon stats calculator
The other answers already provided good feedback and I agree that you should consider better naming and be more consistent with the naming style for the classes/structs. In particular, avoid...
View Article