- 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.
推薦閱讀
- FreeSWITCH 1.8
- PHP程序設計(慕課版)
- Learning ASP.NET Core 2.0
- Learning Selenium Testing Tools(Third Edition)
- 名師講壇:Spring實戰開發(Redis+SpringDataJPA+SpringMVC+SpringSecurity)
- Learning Salesforce Einstein
- Windows Phone 7.5:Building Location-aware Applications
- Cybersecurity Attacks:Red Team Strategies
- Node.js:來一打 C++ 擴展
- 智能搜索和推薦系統:原理、算法與應用
- 運維前線:一線運維專家的運維方法、技巧與實踐
- Mastering jQuery Mobile
- Arduino機器人系統設計及開發
- Python編程快速上手2
- 數字媒體技術概論