- Test-Driven Java Development(Second Edition)
- Alex Garcia Viktor Farcic
- 99字
- 2021-06-24 18:31:54
Requirement 3 – adding winning conditions
It's time to work on winning according to the rules of the game. This is the part where, when compared with the previous code, work becomes a bit more tedious. We should check all the possible winning combinations and, if one of them is fulfilled, declare a winner.
A player wins by being the first to connect a line of friendly pieces from one side or corner of the board to the other.
To check whether a line of friendly pieces is connected, we should verify horizontal, vertical, and diagonal lines.
推薦閱讀
- Modular Programming with Python
- 深入理解Bootstrap
- What's New in TensorFlow 2.0
- NLTK基礎教程:用NLTK和Python庫構建機器學習應用
- Vue.js 3.x從入門到精通(視頻教學版)
- C語言程序設計
- 人臉識別原理及算法:動態人臉識別系統研究
- 高級C/C++編譯技術(典藏版)
- Learning Laravel 4 Application Development
- 名師講壇:Java微服務架構實戰(SpringBoot+SpringCloud+Docker+RabbitMQ)
- 數據結構(C語言)
- Visual Basic程序設計實驗指導(第二版)
- Python深度學習原理、算法與案例
- C陷阱與缺陷
- C#面向對象程序設計(第2版)