comp.lang.ada
 help / color / mirror / Atom feed
From: Ted Dennison <dennison@telepath.com>
Subject: Re: I need advice please on this Ada95 hangman game
Date: Sat, 30 Dec 2000 17:38:32 GMT
Date: 2000-12-30T17:38:32+00:00	[thread overview]
Message-ID: <92l6ip$itm$1@nnrp1.deja.com> (raw)
In-Reply-To: t4s3dn60cip62b@corp.supernews.co.uk

In article <t4s3dn60cip62b@corp.supernews.co.uk>,
  "Mark Pagdin" <mark_pagdin@lineone.net> 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/



  parent reply	other threads:[~2000-12-30 17:38 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-12-30 16:30 I need advice please on this Ada95 hangman game Mark Pagdin
2000-12-30 17:12 ` Bruce or Tracy
2000-12-30 17:53   ` Ted Dennison
2000-12-30 17:27 ` Robert Dewar
2000-12-30 17:31 ` Robert Dewar
2000-12-30 17:38 ` Ted Dennison [this message]
2000-12-31 15:48   ` Marin David Condic
2001-01-07  1:16 ` John English
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox