Im making a card game with C# and each card is 4 values which can change based on other cards played and I want to find the highest value of the 4 then compare the highest one against another varying integer but have no clue how to do any of it.
Here is simplest code to find highest number from list
public List<int> list = new List<int> ();
int GetMax(){
list.Sort ();
int max = list [list.Count - 1];
return max;
}