The PHP page provided generates the board and places tiles. There is also a selectable link called 'Action 4:', this button places shrimp on the board. Part 1 Provided with the following code...

The PHP page provided generates the board and places tiles. There is also a selectable link called 'Action 4:', this button places shrimp on the board.

Part 1

Provided with the following code file, modify the Game Log link so that it displays a text file called GameLog.txt. When shrimp are added to the board, append the board location to GameLog.txt. It should read something like "A shrimp was placed on D3". Whenever a new game is started the GameLog should be cleared.

Part 2

Add another link next to the GameLog link called Save Game. Whenever this is activated it writes the contents of the board to a text file called SavedGame.txt. Create a new PHP page that displays the contents of this file that is linked to the main PHP page.



May 18, 2022
SOLUTION.PDF

Get Answer To This Question

Submit New Assignment

Copy and Paste Your Assignment Here