I'm trying to pass a Model (the name of a class) into a method but I'm not getting any results, here is the code;
The output I get is nothing, when it should just generate 10 number 1's. As the player1 and player 2 WS variable values are different. I've tracked the problem down to the "If player1.WS > player2.WS" line in the code, I'm not sure why it doesn't make a comparrison between the two different instances of the Model class.
Can anyone please suggest why my code isn't working as I expected?