Examples of Flow charts and BS6224 Diagrams.

A game called "Mastermind" using coloured pegs was popular at the time. It had a board into which the pegs could be placed and allowed for 8 or 10 attempts to break the code. One player placed four pegs behind a screen. The other player then placed his (or her) first guess and this was marked by the first player - black to denote a correctly coloured peg in the correct position (four black pegs indicated the end of the game since all pegs had now been identified) and white to indicate a correct colour in the wrong position (not including the matches already marked with balck pegs). The program was written to set a code and mark the guesses.