来自学校的Java任务 [英] Java assignment from school

查看:52
本文介绍了来自学校的Java任务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

(自动拼图生成器)



创建一个拼图游戏生成器和操纵器。用户指定一个图像。您的程序加载并显示图像,然后将其分解为随机选择的形状并将它们混洗。然后,用户使用鼠标移动碎片来解决难题。当棋子移动并重新拉回原位时,添加适当的音频声音。您可以密切关注每件作品及其真正所属的位置 - 然后使用音频效果帮助用户将作品放入正确的位置。



我是什么尝试过:



开始做的事情,但坦白说我不擅长Java。



提前感谢帮助

(Automatic Jigsaw Puzzle Generator)

Create a jigsaw puzzle generator and manipulator.The user specifies an image. Your program loads and displays the image, then breaks it into randomly selected shapes and shuffles them. The user then uses the mouse to move the pieces around to solve the puzzle. Add appropriate audio sounds as the pieces are moved around and snapped back into place. You might keep tabs on each piece and where it really belongs—then use audio effects to help the user get the pieces into the correct positions.

What I have tried:

Started something but to be frank am not good at Java.

Thanks in advance a the help

推荐答案

我们不做你的作业:这是有原因的。它就是为了让你思考你被告知的事情,并试着理解它。它也在那里,以便您的导师可以识别您身体虚弱的区域,并将更多的注意力集中在补救措施上。



亲自尝试,你可能会发现它不是和你想的一样困难!

坐下来,阅读问题,然后把它分解成你可以做的小任务:

1)让用户指定一个图像。

2)加载图像。

3)显示加载的图像。

4)将图像分解为形状。

5)随机播放。

6)...



如果你不能完成其中一项任务,请考虑关于所涉及的内容,并将其分解成更小的部分,并尝试逐个进行。在某些时候,你将完成你可以做的事情,这将完成一项更大的任务。如果你不断重复这个过程,你就会完成所有大任务,这意味着你已经完成了。试一试!



如果您遇到特定问题,请询问相关问题,我们会尽力提供帮助。但是我们不打算为你做这一切!
We do not do your homework: it is set for a reason. It is there so that you think about what you have been told, and try to understand it. It is also there so that your tutor can identify areas where you are weak, and focus more attention on remedial action.

Try it yourself, you may find it is not as difficult as you think!
Sit down, read the question, and break it into smaller tasks that you can do:
1) Get the user to specify an image.
2) Load the image.
3) Display the loaded image.
4) Break the image into shapes.
5) Shuffle the pieces.
6) ...

If you can't do one of those tasks, think about what is involved, and break that down into smaller pieces as well, and try to do them one-by-one as well. At some point you will get to pieces you can do, and that will complete a larger task. And if you keep repeating the process, you end with with all "big" tasks done, and that means you have finished. Give it a try!

If you meet a specific problem, then please ask about that and we will do our best to help. But we aren't going to do it all for you!


引用:

坦率地说不擅长Java

to be frank am not good at Java

参见 Java™教程 [ ^ ]。


这篇关于来自学校的Java任务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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