?? readme.txt
字號:
Five - gobang Game for Nokia series60 mobie,just for funny!!
Copyright (C) 2003.3 runer <fqyy@hotmail.com>
版權所有 (C)2003.3 runer <fqyy@hotmail.com>
這個五子棋游戲是2003年3月份學習j2me編程時寫的,因為程序比較簡單,
代碼結構不太好,但是j2me編程過程中的一些典型case都有涉及到,像
界面生成,按鍵控制,資源文件的讀取,小內(nèi)存編程等等。
這個游戲在編寫時感覺有兩個難點,一是界面部分,一是AI部分。
界面部分就是靠畫出來了,很煩瑣,但是沒有好辦法。
最開始的時候我是把棋子作為一個單獨的class來做,
但是后來經(jīng)過對比發(fā)現(xiàn)還是直接畫出來比較省內(nèi)存。
AI屬于常規(guī)編程,這里采用的是最笨的權值判斷的方式。
如果有好的算法可以將其替換。
本代碼建議僅供學習j2me編程使用。
今天是我的生日,公布這個代碼就當慶祝一下自己的生日吧
當時寫這個程序的時候,感謝wda中文網(wǎng)(http://www.wda.com.cn)
中國java手機網(wǎng)(http://www.cnjm.net)
感謝昨天晚上第一個收到GT的短信祝福,還有別的很多朋友的短信,讓我高興了今天一天
也謝謝YWSY(http://bbs.ywsy.net)上的各位好朋友。
本軟件是在GPL條款保護下發(fā)布,你可以免費使用并且可以獲得所有的源代碼。
但作者不提供任何形式的擔保,無論是明確的還是隱含的。
目錄結構:
\res 資源文件目錄
\five 源代碼目錄
\doc 文檔目錄
\dist 編譯好的目標文件,可以直接傳送到nokia 的series系列手機如:nokia 3650,7650,6600,7610....
注:
如果需要編譯此程序,需要javawtk(java無線開發(fā)包到http://java.sun.com下載)
和nokia series60開發(fā)包(到http://forum.nokia.com下載)
xkiller
2005.2.23
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
http://www.gnu.org/copyleft/gpl.html
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -