+ 7

Abstract Class Inheritance- Player & Computer

What is the best way to structure a program to handle Human and AI inputs with multiple derived classes? I have come up with the following but am unsure if it will work the way I think it will? What I was thinking is as follows Controller has a pointer to creature, Player and AI derive from controller Will this work? Any other suggestions I might consider? Thanks! Here is a sample of what I was thinking. https://code.sololearn.com/cW32XS0R7OAZ

16th May 2017, 1:27 AM
jay
jay - avatar
1 Answer
+ 3
Guess this is the best way then?
16th May 2017, 4:17 AM
jay
jay - avatar