• 大小: 0.02M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-01-15
  • 语言: Java
  • 标签: 五子棋  

资源简介


资源截图

代码片段和文件信息

package game;

import java.awt.Color;
import java.awt.Cursor;
import java.awt.Dimension;
import java.awt.Font;
import java.awt.Graphics;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import java.awt.event.MouseMotionListener;

import javax.swing.JOptionPane;
import javax.swing.JPanel;

/*棋盘类*/
public class ChessBoard extends JPanel implements MouseListenerRunnable{
    public static int MARGIN=30;//边距
    public static int GRID_SPAN=35;//网格间距
    public static int ROWS=15;//棋盘行数
    public static int COLS=15;//棋盘列数
    Point[] chessList=new Point[(ROWS+1)*(COLS+1)];//初始化每个数组元素为null
    boolean isBack=true;//默认开始是黑棋先下
    boolean gameOver=false;//游戏是否结束
    int chessCount;//当前棋盘的棋子个数
    int xIndexyIndex;//当前刚下棋子的索引
    int maxTime =1800;/

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2018-12-27 21:47  .idea\
     文件          19  2018-12-27 00:06  .idea\.name
     文件         648  2018-12-27 00:08  .idea\compiler.xml
     文件         200  2018-12-27 21:32  .idea\encodings.xml
     目录           0  2018-12-27 21:47  .idea\inspectionProfiles\
     目录           0  2018-12-27 00:08  .idea\libraries\
     文件         514  2018-12-27 00:08  .idea\libraries\Maven__com_alibaba_fastjson_1_2_25.xml
     文件         594  2018-12-27 00:08  .idea\libraries\Maven__com_aliyun_alink_linksdk_iot_apiclient_1_0_0.xml
     文件         664  2018-12-27 00:08  .idea\libraries\Maven__com_aliyun_alink_linksdk_iot_device_manager_java_1_1_0.xml
     文件         615  2018-12-27 00:08  .idea\libraries\Maven__com_aliyun_alink_linksdk_iot_linkkit_java_1_1_0.xml
     文件         601  2018-12-27 00:08  .idea\libraries\Maven__com_aliyun_alink_linksdk_iot_mqttclient_1_0_2.xml
     文件         587  2018-12-27 00:08  .idea\libraries\Maven__com_aliyun_alink_linksdk_network_core_1_0_0.xml
     文件         643  2018-12-27 00:08  .idea\libraries\Maven__com_aliyun_alink_linksdk_opensource_paho_java_1_2_1.xml
     文件         692  2018-12-27 00:08  .idea\libraries\Maven__com_aliyun_alink_linksdk_public_channel_gateway_java_1_1_0.xml
     文件         608  2018-12-27 00:08  .idea\libraries\Maven__com_aliyun_alink_linksdk_public_cmp_java_1_3_4.xml
     文件         608  2018-12-27 00:08  .idea\libraries\Maven__com_aliyun_alink_linksdk_public_tmp_java_1_0_1.xml
     文件         573  2018-12-27 00:08  .idea\libraries\Maven__com_aliyun_alink_linksdk_tools_java_1_0_1.xml
     文件         515  2018-12-27 00:08  .idea\libraries\Maven__com_google_code_gson_gson_2_8_1.xml
     文件         529  2018-12-27 00:08  .idea\libraries\Maven__com_squareup_okhttp3_okhttp_3_0_1.xml
     文件         503  2018-12-27 00:08  .idea\libraries\Maven__com_squareup_okio_okio_1_6_0.xml
     文件         439  2018-12-27 00:06  .idea\misc.xml
     文件         278  2018-12-27 00:08  .idea\modules.xml
     文件       29028  2018-12-27 21:47  .idea\workspace.xml
     文件        2162  2018-12-27 00:08  iot-java-light-demo.iml
     目录           0  2018-12-27 00:05  src\
     目录           0  2018-12-27 00:05  src\main\
     目录           0  2018-12-27 21:43  src\main\java\
     目录           0  2018-12-27 21:44  src\main\java\game\
     文件       10610  2018-12-27 21:34  src\main\java\game\ChessBoard.java
     文件         633  2018-12-27 21:44  src\main\java\game\Point.java
     文件        5154  2018-12-27 21:42  src\main\java\game\StartChessJframe.java
............此处省略0个文件信息

评论

共有 条评论