Question 3(g) 2015 · May-June · Paper 22 · 4 marks
Question 3
Part (g)
Question 3
A board game is designed for two players, O and X.
At the beginning, all cells of a 3 x 3 grid are empty.
The players take turns in placing their marker in an empty cell of the grid; player O always starts.
The game ends when one player completes a row, column or diagonal or the grid is full.
Here is one example after three turns:
O
O X
Ali wants to write a program to play the game.
Part (g)
Design a suitable form-based screen interface for the current player to input the row number
and column number to place their marker when it is their turn.
Reveal official mark-scheme answer
Official answer for Question 3
Part (g)
Part (g)
Mark as follows:
- Display of 3×3 grid to represent the current state of the game
- Input box/ drop-down box for row number clearly labelled
- Input box/ drop-down box for column number clearly labelled (Accept radio buttons)
- Indication of which player’s turn
- Error message if invalid input
Why this question appears here
82% 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_s15_qp_22.pdf
