NO programming experience at all in need of help - Hangman game

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • av3rage
    New Member
    • Sep 2008
    • 1

    NO programming experience at all in need of help - Hangman game

    I have never done any programming in my life but I have decided to go into engineering and in doing so we have to take this intro to programming course and I am pretty clueless. I am starting to get the hang of how python works but to put my thoughts into the program to make it run is the confusing part for me.

    The task is to implement a Hangman game and the Program Specifications are:

    1) Output a brief description of the game of hangman and how to play
    2) Ask the user to enter the word or phrase that will be guessed (have a friend enter the
    phrase for you if you want to be surprised)
    3) Output the appropriate number of dashes and spaces to represent the phrase (make sure
    it’s clear how many letters are in each word and how many words there are)
    4) Continuously read guesses of a letter from the user and fill in the corresponding blanks if
    the letter is in the word, otherwise report that the user has made an incorrect guess.
    5) Each turn you will display the phrase as dashes but with any already guessed letters filled
    in, as well as which letters have been incorrectly guessed so far and how many guesses
    the user has remaining.
    6) Your program should allow the user to make a total of k=6 guesses.
    7) You MUST use at least 3 string methods or operators in a useful manner (several
    examples that I used are given in the notes below). If you wish to use lists in your project
    that is fine, as long as you meet this requirement.

    I am willing to learn and put as much effort as needed I really want to understand. Any help would greatly be appreciated.
  • YarrOfDoom
    Recognized Expert Top Contributor
    • Aug 2007
    • 1243

    #2
    Could you post what you already have?(code so far, pseudocode, logics scheme,...) It would be easier to help you out with it then.

    edit: I see you're new here, so welcome to Bytes, don't forget to use [CODE]-tags and please read the Posting Guidelines . Enjoy the site!

    Comment

    • oler1s
      Recognized Expert Contributor
      • Aug 2007
      • 671

      #3
      If you look at your assignment, it’s been broken down into tasks, and you should do them in order. The first task, for example, asks you to output something. I presume you had some class lectures, and you were actually shown how to output something in Python. If you’re having trouble even with that much, you may want to go to office hours, a session with the teaching assistant or the like. At a certain point, what you need is a full out tutoring session, not a single question answered.

      Comment

      • Netwatcher
        New Member
        • Sep 2008
        • 58

        #4
        Wow, that looks interesting, i want to see the final work.
        i sniffed around and didn't find any articles related to limiting the text input or any
        other shortcut i can find on the internet, because you obviously don't want to learn
        it as a long lecture from a teacher and you want to get the straight and in-to-the-point version of it, the best i can do is to tell you to go get a book about it.
        you can see this post http://bytes.com/forum/thread838830.html
        for some book suggestions.
        Hope you will make it :D

        Comment

        • aberry
          New Member
          • Sep 2008
          • 10

          #5
          I have seen similar problem (or say same) problem at MIT OCW course assignment.

          here is the link of course and check assignment # 3 and 4.



          It contains helper functions and approach to solve this puzzle. I was able to do 1st part with success (asg # 3)...

          hope this will help you ...

          Comment

          • bvdet
            Recognized Expert Specialist
            • Oct 2006
            • 2851

            #6
            There are a few other threads on hangman. Here's one that has some code in it:
            Hangman

            Comment

            Working...