Question 8(d) 2016 · May-June · Paper 11 · 2 marks
Reveal official mark-scheme answer
Official answer for Question 8
Part (d)
Any two points from:[2]
- keyboard – to key in the x and y grid coordinates
- mouse – to click on the square on the monitor
- arrow keys – to position the cursor on the correct square
- touchscreen – touch the square on the screen
Show text version of question
Question 8
Part (d)
Question 8
Two players, X and O, play a game. The players take turns to place either ‘X’ or ‘O’ in any one of
the empty squares on the board. The board shows a current game in play.
1 2 3 4 5 6 7 1 X O 2 X 3 O
Question 4
5 O 6 X O O X 7 O X X X O
Either player (X or O) wins when there are four ‘X’s or four ‘O’s next to each other:
- in a row, or
- in a column, or
- in a diagonal line
The programmer stores the mark ‘X’ as the value 1 and the mark ‘O’ as the value 2.
The programmer uses a 2-dimensional array, Board[1 : 7, 1 : 7] , to store the current value in each square.
Part (d)
It is possible to play the game against the computer. Player O is the computer and player X is
a human. Player X selects where to place their ‘X’ in the game.
Player X plays the game on a standard personal computer with a keyboard, mouse and monitor.
Describe two different ways in which player X could select the square for each of their moves.
1 ................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
2 ................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
Why this question appears here
71% assigned-topic match · Hardware › Logic gates and logic circuits
Topic-match percentages estimate how closely each question fits the selected syllabus topic. They are a guide for choosing stricter or broader practice.
Permanent source page: Educate A Change · From 9691_s16_qp_11.pdf
