Unit Award Scheme

116839 PROGRAMMING SKILLS (UNIT 4): NOUGHTS AND CROSSES

In successfully completing this unit, the Learner will have

Evidence needed

shown knowledge of

1the importance of using meaningful variable names throughout their code Student completed work

demonstrated the ability to

2use one of C#, Python or VB.NET to write a computer program to complete this unitStudent completed work
3use an array or list to create a 3 x 3 board and initialize every location to '-'Student completed work
4create and initialize the following variables: player1 = 'X', player2 = 'O', won = False, noTurns = 0 Student completed work
5write a subroutine to print the boardStudent completed work
6write a subroutine to get a player’s move and output a message to prompt a different move from the user if the chosen square is already takenStudent completed work
7write a subroutine to check if a player has won the gameStudent completed work
8write a subroutine to check if the game is a drawStudent completed work
9print the current boardStudent completed work
10repeatedly allow player 1 and player 2 to take their turns and print the updated board after each moveStudent completed work
11check if a player has won after each turn and, if they have, display a suitable messageStudent completed work
12check if the game is a draw after each turn and, if it is, display a suitable messageStudent completed work
13display the message "Thank you for playing Noughts and Crosses" when the game is over.Student completed work

All outcomes recorded on an AQA Summary Sheet

Approved 25 January 2022Level - Level Two