25.08.2013 Views

PDF (Online Text) - EURAC

PDF (Online Text) - EURAC

PDF (Online Text) - EURAC

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

In programming terms, this is done by a one-to-one mapping of letter values to prime<br />

numbers, allowing words to be represented as composite numbers by multiplying<br />

together the primes that map each letter in the word. Words formed from the same<br />

letters, regardless of order, will then map to the same composite number. Therefore,<br />

if a word’s number divides exactly into another word’s, the first word’s letters must<br />

all appear in the second word.<br />

For example, take the word gwelwi.<br />

<br />

gwelwi<br />

<br />

By looking up the spellchecker list and using the anagram checker function, the<br />

following list is generated in XML:<br />

<br />

<br />

<br />

GWELWI<br />

GLIW<br />

ELI<br />

ELW<br />

EWIG<br />

GWELW<br />

GLEW<br />

GWIWI<br />

IGLW<br />

<br />

This list then is passed through and used as one of the games in Cybolfa.<br />

Below is a screenshot of a completed game where polisi was the six-letter gameword.<br />

319

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!