But then I stop playing the game shortly after I cheated, because the game is no more fun (it was no more fun before I started writing the cheat stuff).
But tennis rules are balanced in a way that I could hit balls wrong enough to force a stalemate for a while. Then I played normally and hit the ball reliably and then just didn't, causing a loss.
@Almo C# is essentially "Define in the template(generic) code everything you're going to use." - If you want to call methods on the objects? Then you need to specify an interface the objects need to implement. You want to construct new ones? Then you need to specify that they have a default constructor
So the compiler is able to go "Okay, the method code will work for anything that implements these interfaces/limits, good!" and separately go "the generic parameters you're using match the pre-specified restrictions, good!"
@nwp no ducktyping for one
The classes that you use in the parameters actually need to implement those interfaces
Apparently it's called Fantasy Tennis 2 and is hard to find now because so many other games have very similar titles. And there seem to be plenty of people who still love the game and would pay good money for it. Oh well.
Yeah, that won't work unless the classes implement an interface to signal their support for the max function, which is pretty dumb. And also means it wouldn't work with normal numbers