Method

IpuzAcrosticset_answers

Declaration [src]

gboolean
ipuz_acrostic_set_answers (
  IpuzAcrostic* self,
  GArray* answers
)

Description [src]

This will map the cells of the clues in self to cells in the grid.

For this method to work:

  1. Every character in the grid must be included exactly once in the strings in answers, and vice versa
  2. The first letter of each answer in the array must match the source string

If these conditions are met then this will randomly pick an appropriate cell for each clue and set it on the cells of each clue, and TRUE will be returned.

Note

Generating the array of answers is actually quite hard and outside the scope of libipuz. It can also be quite computationally expensive, depending on the length of the quote.

Parameters

answers

Type: An array of utf8

An array of answers to the clues.

The data is owned by the caller of the method.
Each element is a NUL terminated UTF-8 string.

Return value

Type: gboolean

TRUE, if it could map every character in answers to a cell.