回到刽子手理想...... [英] Back to the Hangman Ideal...
问题描述
我需要一些练习,所以我决定接受这个项目。
试着弄清楚我是否可以在这个项目中使用几个Class。
1. one对于刽子手的图像,当他们猜错时,它会画一个图像
2.一个用于输入信息。即用户试图猜测单词的字母。这一切都是最完成的。这是通过JFrame完成的,
3.一个用于存储在arraylist或数组中的单词,它将选择ramdomly这个单词。
任何理想都会很棒。
nomad
I need some practice and so I decide to take on this project.
Trying to figure out if I could use several Class for this project.
1. one for the images of the hangman when they guess wrong it draw a image
2. one for the input info. ie user tries to guess the letters for the word This one is all most done. This is done with JFrame,
3. one for the words that will be stored in a arraylist or an array and it will choose the word ramdomly.
any Ideal would be great.
nomad
推荐答案
我需要一些练习,所以我决定接受这个项目。
试着弄清楚我是否可以在这个项目中使用几个Class。
1.一个用于刽子手的图像,当他们猜错了它画一个图像
2.一个用于输入信息。即用户试图猜测单词的字母。这一切都是最完成的。这是通过JFrame完成的,
3.一个用于存储在arraylist或数组中的单词,它将选择ramdomly这个单词。 [size = 2] [/ size]
[size = 2]
[/ size]任何理想都会很棒。
nomad
I need some practice and so I decide to take on this project.
Trying to figure out if I could use several Class for this project.
1. one for the images of the hangman when they guess wrong it draw a image
2. one for the input info. ie user tries to guess the letters for the word This one is all most done. This is done with JFrame,
3. one for the words that will be stored in a arraylist or an array and it will choose the word ramdomly. [size=2][/size]
[size=2]
[/size]any Ideal would be great.
nomad
3.一个用于存储在arraylist或数组中的单词,它将选择ramdomly这个单词。我完成了这个,使用了数组,并使用了ramdon和Math。 abs
你也可以考虑使用单独的驱动程序。 class ....或者是(2)的角色?
You might also consider having a seperate "Driver" class....or is that the role of (2) ?
您可能还会考虑单独使用驱动程序。上课......还是那个角色(2)?
You might also consider having a seperate "Driver" class....or is that the role of (2) ?
OK什么是Driver类。这是主要的吗?
如果是这样的话,我认为角色2将是运行该应用程序的最佳位置。
nomad
OK what is a Driver class. Is that the main?
If so I think role 2 would be the best place to run the application.
nomad
这篇关于回到刽子手理想......的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!