Compiling with Different Classes
I'm not exactly sure how to explain what I am trying to do so I'll just say it and see if it makes any sense.
I have a Main.java that creates two different classes. A Player1 and Player2 class. My problem is that these 2 classes code can change each time I compile. For example, the project I'm working on is a very small game that incorporates two players using their own AIs.
So they'll be uploading their .java AI file to maybe say a webserver somewhere and I can download it and use it in the program.
How is it possible that I hook in their code to that Player1 or Player2 class?
Any tutorial suggestions I can look at?
The only thing I can come up with is that when they upload their code and I grab it off the server is to rename it to Player1.java before compiling. Any other suggestions?