- 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.
推薦閱讀
- SpringMVC+MyBatis快速開發與項目實戰
- 無代碼編程:用云表搭建企業數字化管理平臺
- INSTANT Sencha Touch
- Learn WebAssembly
- Spring實戰(第5版)
- SAP BusinessObjects Dashboards 4.1 Cookbook
- PySpark Cookbook
- 零基礎Java學習筆記
- Python極簡講義:一本書入門數據分析與機器學習
- Python+Tableau數據可視化之美
- AutoCAD 2009實訓指導
- Python:Deeper Insights into Machine Learning
- Python語言科研繪圖與學術圖表繪制從入門到精通
- Serverless Web Applications with React and Firebase
- Apache Solr PHP Integration