Difference between revisions of "Unused Variables 2018"

From TRCCompSci - AQA Computer Science
Jump to: navigation, search
(Created page with "==DisplayTileValues== For some reason AllowedWords is passed into DisplayTileValues without it been used within the method. ==Have Turn== For some reason NoOfEndOfTurnTiles i...")
 
(Have Turn)
 
Line 4: Line 4:
 
==Have Turn==
 
==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.
 
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.

Latest revision as of 09:19, 16 November 2017

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.