- Test-Driven Java Development(Second Edition)
- Alex Garcia Viktor Farcic
- 59字
- 2021-06-24 18:31:54
Test – O plays right after X
Now, we should make sure that players are changing. After X is finished, it should be O's turn, then again X, and so on:
@Test
public void givenLastTurnWasXWhenNextPlayerThenO() { ticTacToe.play(1, 1); assertEquals('O', ticTacToe.nextPlayer()); }
If the last turn was played by X, then the next turn should be played by O.
推薦閱讀
- Spring Cloud Alibaba核心技術與實戰案例
- 深度實踐OpenStack:基于Python的OpenStack組件開發
- Learning RxJava
- Developing Mobile Web ArcGIS Applications
- Learning R for Geospatial Analysis
- 第一行代碼 C語言(視頻講解版)
- Android玩家必備
- Learning Continuous Integration with TeamCity
- Web前端應用開發技術
- Learning Material Design
- Image Processing with ImageJ
- Python網絡爬蟲實例教程(視頻講解版)
- INSTANT Apache Hive Essentials How-to
- Google Adsense優化實戰
- Python數據預處理技術與實踐