I'm pretty new to coding, but I really enjoy it and had an idea that I want to figure out. Basically, I play this fantasy sports game where each user is granted $100 and a price tag is given to every player, according to how good they are. What I'm hoping to accomplish is to create a formula that assigns all the players I'm considering a value, depending on how likely they are to get me points, and then for the program to calculate the highest possible team value that doesn't exceed $100.
How would I be able to code a program that runs through every possible combination of variables, and then spits out the one that will get me the high value?
Thanks