[Haskell-cafe] Re: Hangman game

Achim Schneider barsoap at web.de
Tue Jan 22 09:02:38 EST 2008


Ronald Guida <ronguida at mindspring.com> wrote:

> For a Hangman game, the only time I need to change the probability
> distribution is if I load a new word list.  If I wanted to be able to
> load a new word list, then perhaps I need to carry the word list
> inside the GameState as well?
>
What about carrying a list of Strings inside the State? Write a
RandomGen and Random instance that return some dictionary file in
random order.

-- 
(c) this sig last receiving data processing entity. Inspect headers for
past copyright information. All rights reserved. Unauthorised copying,
hiring, renting, public performance and/or broadcasting of this
signature prohibited. 



More information about the Haskell-Cafe mailing list