Brainteasers
for the
BBC and Electron computers


Brainteasers
for the
BBC and Electron computers

Geneviève Ludinski

Phoenix Publishing Associates
Bushey, Herts


Copyright © Geneviève Ludinksi
All rights reserved

First published in Great Britain by
PHOENIX PUBLISHING ASSOCIATES
14 Vernon Road, Bushey, Herts, WD2 2JL

ISBN 0 9465 7603 3

Printed in Great Britain by
Billing & Sons Limited
Cover design by
David Berkoff
Typesetting by
Prestige Press (UK) Ltd.



CONTENTS

Introduction 1
Hexagon Puzzle 2
Safecracker 6
Fractions and Percentages 10
A-Maze-Ing 14
Saints to Sinners 18
Spot the Difference 23
Relations 28
Don't Paint the Cat 33
Francis Drake Adventure Game 37
Name the Graph 47
Close Encounters of the Fourth Kind 51
Sequence Countdown 55
Spiral Mazes 59
What's Yours 62
Pattern Pairs 66
Concentration Test 70
Wire Maze 74
Profit and Loss 78
Odd One Out 83
Decisive Hero 86
Fraction Car Chase 91
Western Adventure Game 95
Detective 99
Elementary Statistics 104
3-D Brainstorm 109
Bar Charter 114
Stats Painter 118
Who Dunnit 122
Word Search 126

INTRODUCTION


Before you dive into this book, here are a few tips you may find useful when keying in the programs.

You may miss out all the REM statements except the first two. These statements are just to help you understand how the program works.

You can also omit the spaces between the line number and the start of the statement. However BBC BASIC is rather pedantic about spaces elsewhere, so I advise you to copy the rest of the statements exactly. In particular, there may be no spaces between TAB and the first bracket. Also, to be safe, always put a space before words OR and AND. Any spaces within quotation marks must also be copied exactly.

Remember also to put in all the punctuation exactly as it appears. If you miss out a comma, the program may not work. If the program still does not work after you have corrected the errors reported by the computer, check the following. See whether you have confused any zeroes for the letter O, or alternatively ones and the letter I. Check, also, that you have not missed any program lines. This is easily done if program lines look similar. Most program line numbers go up by ten at a time, so read your line numbers to find this one.

You may find some of the procedures useful, and you are welcome to put these in any programs you write for your own use. You may not, of course, sell or give them away.

I hope you enjoy the book, and that your brain is not teased too heavily.