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.

{ if ((WordArray[x-1] == “R”) || (WordArray[x-1] == “T”) ||<br />

}<br />

(WordArray[x-1] == “P”) || (WordArray[x-1] == “C”))<br />

{ WordArray[x-1] = WordArray[x-1]+ WordArray[x];<br />

}<br />

WordArray.splice(x,1);<br />

//Check for Ng<br />

if (WordArray[x] == “G”)<br />

}<br />

{ if (WordArray[x-1] == “N”)<br />

{ WordArray[x-1] = WordArray[x-1]+ WordArray[x];<br />

}<br />

WordArray.splice(x,1);<br />

//Check for Dd, Ff, Ll<br />

if ((WordArray[x] == “D”) || (WordArray[x] == “F”) || (WordArray[x] == “L”))<br />

}<br />

{ if (WordArray[x-1] == WordArray[x])<br />

}<br />

{ WordArray[x-1] = WordArray[x-1]+ WordArray[x];<br />

}<br />

WordArray.splice(x,1);<br />

return(WordArray.length);<br />

}<br />

Once both digraphs and single-character letters have been identified as single<br />

elements, the word can be scrambled and displayed to the player in an unfamiliar<br />

letter order whilst still retaining the digraph integrity (TH, F, R, LL, I, E).<br />

6.3 Anagram Maker<br />

As described previously, the word list for the Cybolfa games is derived from the Dic<br />

Penderyn word list. Each time Cybolfa is played, a random six-letter word is drawn<br />

from the list and an anagram maker within the actionscript code generates a list of<br />

all possible anagrams for that word. This is achieved by cross-referencing Canolfan<br />

Bedwyr’s Welsh spellchecker list with the original word’s possible letter combinations.<br />

318

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

Saved successfully!

Ooh no, something went wrong!