it would be a great help..

S

sabit

It would be a great help if someone could take the trouble to upload
the source code(in text) of a hangman game(including the source code
for the hangman figure) for a freshman varsity student(me)....I would
also appreciate if the variables and other terms used in the program
could be explained.

Thanks.


p.s: it could also be sent to (e-mail address removed).
 
B

Bartc

sabit said:
It would be a great help if someone could take the trouble to upload
the source code(in text) of a hangman game(including the source code
for the hangman figure) for a freshman varsity student(me).

I believe this has been done. Try google "hangman C source code".

....I would
also appreciate if the variables and other terms used in the program
could be explained.

It wouldn't be that difficult to just program it. Start with an exact
specification of how you want the game to behave, and whether the computer
is trying to guess the word, or you are.
 
K

Keith Thompson

sabit said:
It would be a great help if someone could take the trouble to upload
the source code(in text) of a hangman game(including the source code
for the hangman figure) for a freshman varsity student(me)....I would
also appreciate if the variables and other terms used in the program
could be explained.

Thanks.


p.s: it could also be sent to (e-mail address removed).

Sure, no problem. Give us your instructor's e-mail address so we can
send it directly to him -- and give us your name so we can be sure
that you get all the credit you deserve.

Or you can do your own damned homework. Or you can fail.
 
U

user923005

It would be a great help if someone could take the trouble to upload
the source code(in text) of a hangman game(including the source code
for the hangman figure) for a freshman varsity student(me)....I would
also appreciate if the variables and other terms used in the program
could be explained.

Actually it would be a great hindrance to you. There is a reason that
you are asked to perform simple exercises. If you circumvent
performing these simple tasks the end result is that you will be
incompetent, and the thousands of dollars you have spent for your
training will be completely wasted.

Clearly, one of the benefits of putting myself through college instead
of having someone else pay for it is that I never had the slightest
temptation for this sort of thing.
 
V

viza

It would be a great help if someone could take the trouble to upload the
source code(in text) of a hangman game(including the source code for the
hangman figure) for a freshman varsity student(me)....I would also
appreciate if the variables and other terms used in the program could be
explained.

Here you go:

http://ftp.de.debian.org
/debian/pool/main/k/kdeedu/kdeedu_3.5.5.orig.tar.gz

(in the khangman subdirectory).

If your professor is stupid enough to let you get away with handing in
someone else's work you may as well go the whole hog.

Aside from that I got nothing in C for hangman, but I've got tic-tac-toe
in C++. It comes with a document describing all types and the needless
operator overloading used. Is that any good to you?

viza
 
O

osmium

Malcolm McLean said:
I don't mind telling you how to go about writing hangman. But I won't give
you a complete program to hand in.
<snip>

That's a nice answer, helpful and, not insulting. It motivated me to
finally figure out what Hangman IS. It's Wheel of Fortune, with variants;
obviously a precursor to the American TV show. It is said that Merv Griffin
became a multi-millionaire from that simple translation of an idea to a TV
show.

Now to the reason for my post. How many hours would you guess the
instructor anticipated would be spent on this assignment? I think it would
take an extreme amount of luck for a beginner to do that in what I think
would be reasonable for a student carrying a full load. And if the student
has to use the computers in the lab, that adds a whole new set of problems.

One tip for the OP: make it work on a single word first, then modify it to
handle a phrase.
 
A

Andrew Smallshaw

Now to the reason for my post. How many hours would you guess the
instructor anticipated would be spent on this assignment? I think it would
take an extreme amount of luck for a beginner to do that in what I think
would be reasonable for a student carrying a full load. And if the student
has to use the computers in the lab, that adds a whole new set of problems.

I don't think that it is unfair at all. Thinking back to my time
at Uni we had a range of assignments on either side of the difficulty
of this particular problem. I'm aware that the university system
works differently here in the UK to the US (in the UK you select
a specific and fixed term course in e.g. computer science before
you even enrol, after which you have only limited choice in selecting
specific modules - from what I understand that isn't true in the
US), but at some point you must tackle problems of this nature and
beyond to be considered vaguely competent. In the UK model I'd
guess this would be a second year, first semester kind of level.

At that level you have to assume a basic level of competence -
after all you are coming up to half way through the course and over
half way through lab assignments (third year there are no labs,
just your third year project which is generally something fairly
specialised). How long should be allowed for this exercise? I'd
say that standalone it is a two hour lab job, or a four hour lab
of three such exercises, assuming that you have done some theoretical
design work beforehand (which was always expected at least when I
was at Uni). This assumes that it is the computer posing the
problem - if it is answering that is much more interesting and I
suggest maybe six to eight hours on the same basis. I would also
assume that the lecturer has provided much more infrastructure than
we have got - a detailed description of the task and a dictionary
of words or phrases that may be used.
 
K

Keith Thompson

Malcolm McLean said:
sabit said:
It would be a great help if someone could take the trouble to upload
the source code(in text) of a hangman game(including the source code
for the hangman figure) for a freshman varsity student(me)....I would
also appreciate if the variables and other terms used in the program
could be explained.
I don't mind telling you how to go about writing hangman. But I won't
give you a complete program to hand in.

Start with the word-guessing logic. You have a database of 20 words
(to start with) which you just enter into the programs as a simple
char * array. [43 lines deleted]

Test your function, then put it all together.

Surely designing a solution from a problem description is as important
a part of doing a homework assignment as writing the code given an
outline of a solution, and presumably the OP's instructor expected him
to do both. The OP asked for a complete solution, along with an
explanation of how it works, presumably so he could pretend to have
designed and written the code himself; he gave no indication that he
was willing to do any work at all. I don't think doing half his work
for him is much better than doing all of it.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,756
Messages
2,569,535
Members
45,007
Latest member
OrderFitnessKetoCapsules

Latest Threads

Top