Past-paper question · 2015 May-June · Paper 21 · Q3(g)

Question 3(g) 2015 · May-June · Paper 21 · 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.

[4]
Reveal official mark-scheme answer

The answer for this question is in the official mark scheme: open the mark scheme.

Mark scheme 9691_s15_ms_21.pdf →

Topic relevance

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_s15_qp_21.pdf

Keep practising this topic