帮助Hangman程序 [英] Help with a Hangman program

查看:79
本文介绍了帮助Hangman程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最初发布者araujo2nd

我的名字是andre,我来自南非,我想知道是否有任何人可以帮我处理一个刽子手应用程序,我现在在11年级并拥有巨大的投资组合在我刚刚开始的第15次做的时候,我一直在努力学习java,并且会感谢所有能得到的帮助。请尽可能多的人帮助我,我要求你为我做这个程序,但是如果你能帮助我逐步完成它,因为我真的想通过这篇文章,因为它进入我的大学学习组合。目前我正在使用DR JAVA和netbeans for GUI


该程序应该是一个存储随机单词的刽子手程序,它必须保留一个高分表,每个用户需要尝试的次数我要求用户在玩游戏之前输入他们的名字。


非常感谢先进

Andre

解决方案


最初发布者araujo2nd

我的名字是andre,我来自南非,我想知道是否有任何可以帮助我刽子手应用程序,我现在在11年级,并有一个巨大的投资组合要做到我刚刚开始的15日,我一直在努力与Java,并将欣赏所有我能得到的帮助。请尽可能多的人帮助我,我要求你为我做这个程序,但是如果你能帮助我逐步完成它,因为我真的想通过这篇文章,因为它进入我的大学学习组合。目前我正在使用DR JAVA和netbeans for GUI


该程序应该是一个存储随机单词的刽子手程序,它必须保留一个高分表,每个用户需要尝试的次数我要求用户在玩游戏前输入他们的名字。


非常感谢先进

Andre



您好,欢迎来到TSDN。希望你在这里过得愉快。

你当然意识到第一步是设计你的程序。

您需要决定如何存储所有单词(允许轻松添加其他类别,例如国家,演员,圣经书等)。


然后你必须写下你的hangman算法。这个目标非常直接,但只要确保你考虑所有特殊情况。

最后要设计的是你的界面。您需要设计构成界面的组件以及是否要在其中添加一些动画等

设计完成后,编写程序将非常简单将会是这样的。


您好,


您希望您的程序具有图形用户界面吗?

我很乐意为您提供一些建议和反馈。


您对java的熟悉程度如何?


让我发布。


干杯


您好先生,谢谢您的回复


是的我想要一个GUI对于该计划


我熟悉java,但对它不是很好,在学校的老师不是很好,我迷失了它,我可以做大多数基础等


最好我想创建一个呈现空白帧的程序,并且用户获得7个输入来猜测单词(他可以输入整个单词或逐个字母),每个ti我犯了一个错误,显示了一个刽子手,一旦所有的刽子手被放在一起,它必须告诉用户这个词并且他已经丢失了。


很多感谢

Originally Posted by araujo2nd
my name is andre, im from south africa, i was wondering if any1 could help me with a hangman application, im now in grade 11 and have a huge portfolio piece to do by the 15th which i have just started now, i have always struggled with java and would rele appreciate all the help that i can get. Pls could some1 help me as much as u can, im nt asking u to do the program for me but if u could pls take me steps through it as i really would like to pass the piece as it goes into my matric portfolio for college. at the moment im using DR JAVA and netbeans for GUI

The program should be a hangman program which stores random words, it must keep a high score table with the number of tries each user takes and my ask user to input their name before they play the game.

many thanks in advanced
Andre

解决方案

Originally Posted by araujo2nd
my name is andre, im from south africa, i was wondering if any1 could help me with a hangman application, im now in grade 11 and have a huge portfolio piece to do by the 15th which i have just started now, i have always struggled with java and would rele appreciate all the help that i can get. Pls could some1 help me as much as u can, im nt asking u to do the program for me but if u could pls take me steps through it as i really would like to pass the piece as it goes into my matric portfolio for college. at the moment im using DR JAVA and netbeans for GUI

The program should be a hangman program which stores random words, it must keep a high score table with the number of tries each user takes and my ask user to input their name before they play the game.

many thanks in advanced
Andre

Hi and welcome to TSDN. Hope you''ll have a great time here.
You realize of course that the first step is to design your program.
You need to decide how to store all the words (with an allowance for easy addition of other categories say, countries, actors, Bible books e.t.c).

Then you have to write down your hangman algorithm. This shoild be pretty stright forward but just make sure you consider all the special cases.
The last thing to design is your interface. You need to design which components make up your interface and whether or not you''re going to add a bit of animation in there e.t.c
After the design is done, writing the program will be so easy it will be such a bore.


Hi,

do you want your program to have a graphical user interface?
I''d be happy to help you with some advice and feedback.

How familiar are you with java?

keep me posted.

Cheers


Hi sir thank you for the reply

Yes i would like a GUI for the program

Im familiar with java but just not really good with it, the teacher at school is not great and i got lost in it, i can do most basics etc

preferably i would like to create a program that presents a blank frame, and the user gets 7 inputs to guess the word (he can either type the whole word or letter by letter), each time he gets one wrong, a piece of the hangman is displayed, and once all of the hangman is put together, it must tell the user the word and that he has lost.

many thanks


这篇关于帮助Hangman程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆