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.7 required=5.0 tests=BAYES_00,MSGID_RANDY autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,1192c1137d7a2b6 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2000-12-30 09:52:03 PST Path: supernews.google.com!sn-xit-02!supernews.com!216.218.236.179.MISMATCH!news!news.he.net!nntp.primenet.com!nntp.gblx.net!news.maxwell.syr.edu!nntp2.deja.com!nnrp1.deja.com!not-for-mail From: Ted Dennison Newsgroups: comp.lang.ada Subject: Re: I need advice please on this Ada95 hangman game Date: Sat, 30 Dec 2000 17:38:32 GMT Organization: Deja.com Message-ID: <92l6ip$itm$1@nnrp1.deja.com> References: NNTP-Posting-Host: 204.48.27.130 X-Article-Creation-Date: Sat Dec 30 17:38:32 2000 GMT X-Http-User-Agent: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; m18) Gecko/20001207 X-Http-Proxy: 1.0 x57.deja.com:80 (Squid/1.1.22) for client 204.48.27.130 X-MyDeja-Info: XMYDJUIDtedennison Xref: supernews.google.com comp.lang.ada:3474 Date: 2000-12-30T17:38:32+00:00 List-Id: In article , "Mark Pagdin" wrote: > 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). ... > 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. I can see several ways of accomplishing that task. Which approach you take boils down to how you want to encode a "guess", and what data structure you use to store them all. Your Ada textbook should have some kind of section listing the data types that the language makes available (Integers, Enumerations, Record, Arrays, etc.). My advice is to look through that section, think about the capabilities of each type, and try to see if any of them would be helpful to you in the task of storing a series of your users' past guesses. If you haven't covered them all yet, it would be a pretty good assumption that your instructor intended you to solve the problem with the ones you *have* covered, so concentrate on those. If you get stumped, you should *really* ask your teacher for help. They'd be the best judge of how big of a hint it would be kosher to give you. Anyway, that's what you're paying the school all that money for... -- T.E.D. http://www.telepath.com/~dennison/Ted/TED.html Sent via Deja.com http://www.deja.com/