We should implement a shipbattle game, I never play it, but it seems very boring.
The JFrame method is provided, all we should code is just.....implement the rest part:
When I run this program, an error stopped it.
Exception in thread "main" java.lang.UnsatisfiedLinkError: /home/tearsyu/idea-IC-145.597.3/jdk1.8.0_77/jre/lib/i386/libawt_xawt.so: libXtst.so.6: cannot open shared object file: No such file or directory
It's strange becase I did download and install libXtst.
By the way, I learn a new great command because of this error----locate(read more)
java/Day2$ locate libXtst/usr/lib/x86_64-linux-gnu/libXtst.so.6/usr/lib/x86_64-linux-gnu/libXtst.so.6.1.0But, my libXtst works for 64bit while Jre search a version 32bit so I need to download 32bit version of libXtst.
sudo apt-get install libxtst6:i386THEN IT WORKS.
(tucao: hao luan chou de jie mian)
炸飞机嘛,小学和初中时玩过一阵子,不过那时用的是“士”字形的飞机,而且是炸到机头算坠毁。
ReplyDelete前几天还见到一个炸房子的版本,有2*3和3*4的仓库……不过确实很简单啦。