• 大小: 489KB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-05-29
  • 语言: 其他
  • 标签: 蓝牙  五子棋  j2me  

资源简介

自己写的五子棋,支持单机和蓝牙对战。刚刚完成,多有错误,欢迎大家指正。发的是整个eclipse的工程,直接可以打开。

资源截图

代码片段和文件信息

package zpweng;
import java.io.DataInputStream;
import java.io.DataOutputStream;

public class ConnectController {
//private static BtEngine engine;
private static DataInputStream dis;
private static DataOutputStream dos;
//public static void setEngine(BtEngine _engine)
//{
//engine = _engine;
//}
public static void setStream(DataInputStream _dis DataOutputStream _dos)
{
dis = _dis;
dos = _dos;
}

public static void sendChess(int row int col)
{
try {
//dos.writeInt(0);
dos.writeInt(row);
dos.writeInt(col);
dos.flush();

} catch (Exception ex) {
// 连接出现异常
System.out.println(“Exception from ConnectControler.sendChess()“);
}
}

public static int[] readChess() throws Exception
{
try
{
int row = dis.readInt();
int col = dis.readInt();

int[] chess = new int[]{row col};
return chess;
}
catch(Exception ex)
{
System.out.println(“Exception from ConnectControler.readChess()“);
throw ex;
}

}
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件        242  2009-04-10 09:56  Gobang\.classpath

     文件        241  2009-04-10 09:56  Gobang\.eclipseme

     文件        278  2009-04-18 21:52  Gobang\.eclipseme.tmp\emulation\Gobang.jad

     文件      99481  2009-04-18 21:52  Gobang\.eclipseme.tmp\emulation\Gobang.jar

     文件        261  2009-04-18 21:52  Gobang\.eclipseme.tmp\verified\classes\zpweng\bluetooth\BluetoothObserver.class

     文件       1295  2009-04-18 21:52  Gobang\.eclipseme.tmp\verified\classes\zpweng\bluetooth\Client$1.class

     文件       4345  2009-04-18 21:52  Gobang\.eclipseme.tmp\verified\classes\zpweng\bluetooth\Client.class

     文件       2506  2009-04-18 21:52  Gobang\.eclipseme.tmp\verified\classes\zpweng\bluetooth\Server.class

     文件       1415  2009-04-18 21:52  Gobang\.eclipseme.tmp\verified\classes\zpweng\ConnectController.class

     文件       3692  2009-04-18 21:52  Gobang\.eclipseme.tmp\verified\classes\zpweng\engine\AiEngine.class

     文件       3403  2009-04-18 21:52  Gobang\.eclipseme.tmp\verified\classes\zpweng\engine\BtEngine.class

     文件       1113  2009-04-18 21:52  Gobang\.eclipseme.tmp\verified\classes\zpweng\engine\Engine.class

     文件        220  2009-04-18 21:52  Gobang\.eclipseme.tmp\verified\classes\zpweng\engine\EngineObserver.class

     文件       4392  2009-04-18 21:52  Gobang\.eclipseme.tmp\verified\classes\zpweng\GameCanvas.class

     文件       4279  2009-04-18 21:52  Gobang\.eclipseme.tmp\verified\classes\zpweng\GobangMidlet.class

     文件       2335  2009-04-18 21:52  Gobang\.eclipseme.tmp\verified\classes\zpweng\HelpForm.class

     文件       2534  2009-04-18 21:52  Gobang\.eclipseme.tmp\verified\classes\zpweng\MenuCanvas.class

     文件       1799  2009-04-18 21:52  Gobang\.eclipseme.tmp\verified\classes\zpweng\ResultCanvas.class

     文件       1058  2009-04-18 21:52  Gobang\.eclipseme.tmp\verified\classes\zpweng\WaitCanvas.class

     文件        538  2009-04-10 09:56  Gobang\.project

     文件        166  2009-04-10 09:56  Gobang\.settings\org.eclipse.jdt.core.prefs

     文件      24892  2009-04-18 16:14  Gobang\bin\background.png

     文件       2848  2009-04-18 16:24  Gobang\bin\cursor.png

     文件      22940  2009-04-18 15:58  Gobang\bin\icon.png

     文件      28356  2009-04-18 16:12  Gobang\bin\wzq.png

     文件        261  2009-04-18 21:27  Gobang\bin\zpweng\bluetooth\BluetoothObserver.class

     文件       1255  2009-04-18 21:27  Gobang\bin\zpweng\bluetooth\Client$1.class

     文件       4131  2009-04-18 21:27  Gobang\bin\zpweng\bluetooth\Client.class

     文件       2403  2009-04-18 21:27  Gobang\bin\zpweng\bluetooth\Server.class

     文件       1360  2009-04-18 21:29  Gobang\bin\zpweng\ConnectController.class

............此处省略59个文件信息

评论

共有 条评论