Difference between revisions of "Section D 2018"

From TRCCompSci - AQA Computer Science
Jump to: navigation, search
(Improvements)
(Improvements)
Line 5: Line 5:
  
 
=Improvements=
 
=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 their entire hand]]
 
#[[Provide a method for the player to swap 5 random tiles from their hand]]
 
#[[Provide a method for the player to swap 5 random tiles from their hand]]

Revision as of 09:44, 25 September 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

  1. How would you increase the maximum size of a players hand
  2. If the player spells a ten or more letter word, they should receive a 200 point bonus
  3. Provide a method for the player to swap their entire hand
  4. Provide a method for the player to swap 5 random tiles from their hand
  5. If a player presses enter without typing a word it is an invalid move
  6. If a player enters a number not in the options it is treated as a word
  7. Create a method to list the words available within a given hand

Extensions