Hi all,
I’m practicing to improve my level of programming, I wondered what I have to follow guidelines for programming a game similiar to Plague INC, ie, which factors are taken into account in order to win the game? Because sometimes the AI wins the game? I find it difficult to understand.
Try two variables one for IA and for the player? according to your actions and get points deducted, and the first to reach 100 wins? mmm not, any information will be appreciated.
Last I checked, Plague Inc was a simulation that spread infections, and your actions increased the spread, while the AI took actions according to certain criteria. Winning or losing was a matter of how many people were infected, not how many points you earned.
If you want to make a game like this (or any simulation), you need to stop and write out, in detail, how that simulation will work. If you can’t write it out on paper, then you can’t program it. Once you’ve got it written out in detail, then you’ll find it’s a lot easier to turn that into code.
Alternatively, you could start small with very basic things you can control, and basic things that the AI will do. Then add onto it as needed.
My advice is to start small. Don’t try to make the whole game at once. Get the most basic thing working first, then add to it. Once you can write games that way, you can start to plan out entire games ahead of time and then implement them.
Plague Inc has a lot of back end AI working with it. Like wccrawford said write it out on paper before you do anything because that can be a house of horrors if you don’t think everything about it out.