Queue (queue) wrote in jotto,


Well, I've got a program where the computer guesses your word. It does it by the brute force method, just randomly guessing one of the words that it could possibly be. I think I may try to improve it in the future, where it tries to make some intelligent guesses. Mostly, this should keep it from occasionally taking really long to guess a word. I doubt it will improve on the random method for most games.

I will save this for later though, as well as making my dictionary larger and better (it currently has 5800 some words, a few hundred of which might be suspect and probably need direct checking. I will also merge it with the other word list to get it to around 12,000). Right now, I want to work on getting a version up on the web. Now probably the nicest user interface could be made with Java or something like that, but I don't want to do it in Java. First of all, I want it to be a nice fast thing. Text-based, no loading of applets. Second, I don't want to deal with all the various implementations of Java that exist in the different browsers. Third, I'm doing this to learn Perl, not Java.

So, that being said, I've come up with two main ideas. One is to get a mindterm window up on a page (yes, that will involve Java, but not anything I have to develop) and just set up a special account that just plays Jotto. I'm not sure if that will fly with the host of the machine, though, as far as security. The second main idea is to have it be just a plain text page generated by a Perl program. The player enters his word in a text box, and then submits it, and the next page gets popped up. However, the downside of this is that I have to figure out a way of passing the state of the game along each time and do it without giving the word away. The obvious answer is to encrypt the data somehow, but that seems a little kludgy, but maybe I'm wrong. Is there some better way to do this? Anyone got ideas?
  • Post a new comment


    default userpic