Difference between revisions of "Section D 2018"
(→Improvements) |
|||
Line 16: | Line 16: | ||
#[[ Save Game Feature]] | #[[ Save Game Feature]] | ||
#[[Alert the User if aqawords.txt File is Missing]] | #[[Alert the User if aqawords.txt File is Missing]] | ||
− | |||
− | |||
#[[Allow players to choose the filename for LoadAllowedWords]] | #[[Allow players to choose the filename for LoadAllowedWords]] | ||
#[[High score table feature]] | #[[High score table feature]] | ||
#[[Time limit when entering choice]] | #[[Time limit when entering choice]] | ||
− | |||
#[[Ask user to confirm their word choice]] | #[[Ask user to confirm their word choice]] | ||
#[[Bonus points at end of game for longest and highest scored words]] | #[[Bonus points at end of game for longest and highest scored words]] | ||
Line 27: | Line 24: | ||
#[[Display list of words (valid and invalid) used by each player at the end of the game]] | #[[Display list of words (valid and invalid) used by each player at the end of the game]] | ||
#[[Display the highest scored word by each player at the end of the game]] | #[[Display the highest scored word by each player at the end of the game]] | ||
− | |||
#[[The player that has the letter that is closest to “A” will begin the game. A blank tile will win the start of the game]] | #[[The player that has the letter that is closest to “A” will begin the game. A blank tile will win the start of the game]] | ||
#[[In queue class definition, make use of the IsEmpty method in Show method]] | #[[In queue class definition, make use of the IsEmpty method in Show method]] | ||
Line 34: | Line 30: | ||
=Extensions= | =Extensions= | ||
+ | #[[Wild card / blank tile added]] | ||
+ | #[[Inappropriate word filter]] | ||
+ | #[[Allow players to add new words to the game]] | ||
+ | #[[Allow players to save the new AllowedWords back into aqawords.txt]] |
Revision as of 08:08, 5 December 2017
Introduction
You are advised to spend no more than 70 minutes on this section. Questions will use the Skeleton Program and the Preliminary Material.
This page will identify some of the alterations / improvements that can be made to the skeleton program. It is important to explain what problem the alteration is tackling, and explain how to make the improvement itself.
Improvements
- How would you increase the maximum size of a players hand
- If the player spells a ten or more letter word, they should receive a 200 point bonus
- Provide a method for the player to swap their entire hand
- Provide a method for the player to swap 5 random tiles from their hand
- If a player presses enter without typing a word it is an invalid move
- If a player enters a number not in the options it is treated as a word
- Create a method to list the words available within a given hand
- Allow a player to buy a vowel for 10 points
- Allow players to skip and end their turn
- Save Game Feature
- Alert the User if aqawords.txt File is Missing
- Allow players to choose the filename for LoadAllowedWords
- High score table feature
- Time limit when entering choice
- Ask user to confirm their word choice
- Bonus points at end of game for longest and highest scored words
- Deduct points from score if invalid word entered
- Display list of words (valid and invalid) used by each player at the end of the game
- Display the highest scored word by each player at the end of the game
- The player that has the letter that is closest to “A” will begin the game. A blank tile will win the start of the game
- In queue class definition, make use of the IsEmpty method in Show method
- Add the ability to set the player names
- CheckWordIsValid uses a linear search, program a binary search instead