Im programming a card game app and need some help. In the app you play against a computer and I wish for the computer (the program) to make the best move each time from the 12 cards in play. Each card has a variable which denotes how far the move will go (from 1 to 8), the variable is say cpucard1move=3, cpucard2move=7 etc ... now for the computer to make the best move in each turn I need to find the highest variable from the list of 12 variable cpucard1move to cpucard12move but the only way I can think of doing this is to get app inventor to go through each variable against each variable which is going to be very long winded ie..
if cpucard1move>cpucard2move and cpucard3move and etc...
Is there a simpler way to get a result from a collection of variables ?
Thanks for any help, ive search the forums but cant find anything.