Just thought i’d pop in and share a status update. Currently working on making the ai pick smarter choices. The main problem being haven gotten rid of the home options by making them actions, such that you can do different home options all in the same day, This has expanded the action list to 14 items. Why is this significant you ask. Well remembering back to math class on combinations and permutations, there is 7,529,536 possible ways to select your actions for the 6 day periods. That’s not even getting into the fact that each day period action now has a possibility of happening by your choice in any of the 6 new districts. Long story short, trying my attempt at brute force ended with an additional 6gb of memory usage along with long processing times, so now i’m attempting to find smarter ways of picking the best possible combination out of the 7,529,536. Its also important that this system is able to handle the additional actions added to the game in the future. For instance going from 14 actions to 15 changes the possible combinations to 11,390,625. Anyhow trying to bring you an unprecedented level of choice of how your game plays.
cacluating 1500 - 5000 npcs turn when there is over 7million possible combinations to make up each of their turns requires more than 1 thread to be done in a timely manner.
2 Likes