- Test-Driven Java Development(Second Edition)
- Alex Garcia Viktor Farcic
- 34字
- 2021-06-24 18:31:54
Implementation
The default return values are always easiest to implement and this one is no exception:
public String play(int x, int y) { checkAxis(x); checkAxis(y); setBox(x, y); lastPlayer = nextPlayer(); return "No winner"; }