From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=BAYES_20,XPRIO autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,1192c1137d7a2b6,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2000-12-30 08:30:49 PST Path: supernews.google.com!sn-xit-02!news-x.support.nl!newsfeeds.belnet.be!news.belnet.be!news.tele.dk!195.224.25.10!sn-uk-xit-01!sn-uk-post-01!supernews.com!corp.supernews.co.uk!not-for-mail From: "Mark Pagdin" Newsgroups: comp.lang.ada Subject: I need advice please on this Ada95 hangman game Date: Sat, 30 Dec 2000 16:30:42 -0000 Organization: Posted via Supernews, http://www.supernews.com Message-ID: X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2314.1300 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 X-Complaints-To: newsabuse@supernews.com Xref: supernews.google.com comp.lang.ada:3466 Date: 2000-12-30T16:30:42+00:00 List-Id: Hi I hope you had a nice Christmas! I am looking for your help and advice. I am a student at university in England and have just started learning to use Ada 95. This is my first programming language and obviously I am finding it hard to learn it. However I have been set a project to create a program to play hangman (a word game). I have been working hard to create this and am slowly getting there. However I am stuck on the main procedure which searches for the letter in the hidden word and then display any correct letters. Here is the output I get when i run the program (the word is revealed at the moment for testing purposes): Enter a word to test the Hangman game mark2 Enter a Leter m m_ _ _ _ Enter a Leter a _ a_ _ _ Enter a Leter r _ _ r_ _ Enter a Leter k _ _ _ k_ Enter a Leter 2 _ _ _ _ 2Enter a Leter Please would it be possible for anyone to point out a way of storing each attempt so that when the player attempts to guess again the program is able to store the result from the previous guess. Please I don't want to cheat i.e. I only want you to give me hints not do it for me. Thank you, Mark Pagdin