Question 15

AQA Computer Science June 2019 Paper 1AS3 marks

On the specification

15.1
3.1 Fundamentals of programming
15.2
3.3 Systematic approach to problem solving
Question text

15 This question refers to the subroutine ValidJump. The rules of the game are to be amended. Instead of jumping over their own piece, a player can only jump over an opponent’s piece. What you need to do: Task 1 Amend the subroutine ValidJump so that a jump is only possible if the middle piece belongs to the opponent. Task 2 Test that the changes you have made work by conducting the following test: • run the program • enter Y • load game3.txt • enter the string a5 • enter 5 • enter 0 Evidence that you need to provide Include the following evidence in your Electronic Answer Document. 15.1 Your PROGRAM SOURCE CODE for the entire subroutine ValidJump. [2 marks] 15.2 SCREEN CAPTURE(S) showing the requested test including the list of possible moves before the jump and your test input, and then the board display after the jump. [1 mark]