[Solved] Adding difficulty levels into Java Chess Game
[ad_1] First of all: please only show relevant code. Other than that the answer is pretty simple. I suppose you want to implement several AI strategies and have the player choose which one to use. Have a class ComputerPlayer and give it a constructor public ComputerPlayer(Strategy s). This will determine which strategy to use, so … Read more