[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] a little game help with text coding.



Hi,
Now i little improved the 'muddle' code.
Hero has a 6 levels of lang attribute.
On 0 level he knows nothing [ my lang level for eng is 3 i think :)]

0. level:
	all words and chars are muddled [ in one line].

1. level:
        shuffle chars in word without first and last.

...
...     shuffle chars in word if len(word) > lang_level * x

5. level:
        chars in word is ok but word position not

6. master level 

So i tried Sam's idea from FF but output from Alcoholer seem to me
more polished [ like some strange language ][ in my native language i
think for Eng output i dunno]. Eng text is from Slashdot i think.

here's the source: http://www.tbs-software.com/spookyln/py/alcoholer.py

And comments are welcome, thanks.