Unused Variables 2018

From TRCCompSci - AQA Computer Science
Jump to: navigation, search

DisplayTileValues

For some reason AllowedWords is passed into DisplayTileValues without it been used within the method.

Have Turn

For some reason NoOfEndOfTurnTiles is passed into HaveTurn but is never used. HaveTurn calls AddEndOfTurnTiles towards the end of the method, this redeclares a local version of NoOfEndOfTurnTiles. This local version is then used within the AddEndOfTurnTiles method.

NoOfEndOfTurnTiles is passed from the Main, into PlayGame and then into HaveTurn.