Code Othello as a Web App: Part 27: Rules - Game Over

preview_player
Показать описание
In this series of videos Prof. Patterson develops a web application version of Reversi (aka Othello) using HTML, CSS, Javascript and jQuery. The infrastructure is managed by Github and Heroku. By watching these videos and following along on a computer, you should be able to build the same application on your own.

This is the sixth in a subsequence of tutorials in the series that focuses on enforcing the rules of the game.

This video shows how to recognize when the game is over.

Рекомендации по теме
Комментарии
Автор

What about the times where the current player doesn't have a legal move (and must pass) but the other player does have a legal move? It appears your logic considers the game over once anyone has to pass rather than when both players have to pass

mikewhite