Implementation

There's no real need to check whether it really is the player's first turn or not. As it stands, this test can be fulfilled by always returning X. Later tests will force us to refine this code:

public char nextPlayer() {
  return 'X';
}
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.119.103.204