Question
Description Gomoku is a game played by two players on a 19 by 19 board. One player uses black stones and the other player uses
Description Gomoku is a game played by two players on a 19 by 19 board. One player uses black stones and the other player uses white stones. The two players alternate putting down stones on the board with the goal to be the first to get five of their stones in a row either vertically, horizontally, or diagonally. Your task is to make an implementation of this game as a webpage. Requirements The game shall display the game board. The board shall be tan or beige. The grid shall be black. The game shall allow the two players to alternate placing their stones on the board. The game shall only allow players to place their stones in valid locations. The game shall not allow players to place their stones on stones already on the board. One player's stones shall be black. The other player's stones shall be white. The game shall indicate which player's turn it currently is. The game shall detect horizontal, vertical, and diagonal wins. When a player wins, the five stones in a row shall be highlighted on the board. When a player wins, the game shall indicate who the winner is.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started