Accounting Issues Analysis
July 8, 2020
Leadership Styles Application
July 8, 2020
Show all

Web scrapping and modification

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.

Special note: This assignment is turned into a Linux server with special read and write permissions

Leave a Reply

Your email address will not be published. Required fields are marked *