Tag : interfaces

I am looking to implement two branches of classes in my Java program to distinguish between Human and AI-controlled Players in my game. The game is asynchronous, so players have different methods and behavior depending on which type of player they are selected as at the start of the game. All Players have shared methods, and each Player subclass has unique methods that only they can do. In addition, Human players receive prompts to make decisions while AI players make their choices automatically. There can potentially be an infinite number of Player subclasses, and each one will have a Human and AI ve..

Read more