© Giulio Zambon 2016

Giulio Zambon, Practical C, 10.1007/978-1-4842-1769-6_14

14. Game Application: MathSearch

Giulio Zambon

(1)Harrison, Aust Capital Terr, Australia

In this chapter, you will learn how to generate MathSearch numeric puzzles like the one shown in Figure 14-1.

A372471_1_En_14_Fig1_HTML.jpg
Figure 14-1. A MathSearch puzzle

You are probably familiar with WordSearch, in which you solve the puzzle by finding words in a grid of letters. In MathSearch, you need to find triplets of numbers so that when you apply a mathematical operation to the first two, you obtain the third one.

Figure 14-2 shows five examples of the triplets hidden in the puzzle shown in Figure 14-1

Get Practical C now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.