Im in the process of trying to create a simple pokemon battle simulator in C++. The problem Ive ran into now is how to implement the Element system (water beats fire, fire beats grass, grass beats water, and including all the other element types).
I dont know how I would create such a system without having to use a ton of If statements. Is there a better way to do this?
I have a good amount of general programming knowledge, and I know the basics of C++, like classes, loops, and various other basic things.
I would provide code, but there is nothing to provide as I have no idea how to make such a system. I guess i'm asking for what kind of technique, data structure, etc I could use to accomplish this