Turing Hangman

Computer builds, hardware and software discussion or troubleshooting, including peripherals. Essentially a general place to talk about desktop computers.
Locked
Anonymous

Turing Hangman

Post by Anonymous »

i need to make a turing hangman game, but have NO IDEA where to begin, if someone could help by explaining or ever write me a program it would be much appreciated

thanks in advance! :thumbsup:

Archived topic from Iceteks, old topic ID:2800, old post ID:22955
User avatar
Death
Posts: 7919
Joined: Thu Sep 30, 2004 10:12 pm

Turing Hangman

Post by Death »

Hmmmm. Turing Hangman. I actually made a hangman game in turing that read from a bank of words. I've got the compiled version around here somewhere. Might be able to post it to give you an idea of what ito expect. As for the lines of code, as with any hangman game, you need to use length and char commands. You need to know the length of the word, where each letter IS in the word., how many instances of the SAME letter are in the word, and if the letter has been chosen before. The rest is basically, just displaying the letters on a bunch of blank lines. If you want to get into the really spruced up hangman games, you can create databanks out of txt files or turing files (filename.t files (so that people can't read them)), then you can set a random value to grab a random word from the databank to use in the game. Hopefully this gives you an idea of what to expect.

Archived topic from Iceteks, old topic ID:2800, old post ID:23109
Locked