• 大小: 230KB
    文件类型: .rar
    金币: 2
    下载: 0 次
    发布日期: 2024-01-19
  • 语言: Java
  • 标签: Java  游戏  21点  

资源简介

因为这是本人辛辛苦苦才完成的游戏,也是自己做的第一个游戏,虽然很简单(可别笑咯)!为了谋生,所以就不免费了。在游戏中,可能还有些BUG,这里先说明,别到时候说太多废话啦!程序里面用到了,洗牌程序。

资源截图

代码片段和文件信息

/*
 * run.java
 *
 */



/**
 *
 * @author  
 */
public class run extends javax.swing.Jframe {

    /** Creates new form run */
    public run() {
       // setResizablfalsee(false);
        
        initComponents();
        // 从 A - K的扑克牌,用来计算扑克牌点数
        String faces[] = {“1“ “2“ “3“ “4“ “5“ “6“ “7“ “8“ “9“ “10“ “11““12“ “13“};
        String color[] = {“Spades“ “Heart“ “Clubs“ “Diamond“};                   // 扑克牌的“?黑桃“、“?红桃“、“?梅花“、“?方块“
//    }
    deck=new Card[52];              // 一共52张扑克牌
    for(int i=0;i     deck[i]= new Card(faces[i%13]color[i/13]);                  // 扑克牌点数及花色
    shuffle();                  // 洗牌代码
        
//        Gamedh.setVisible(false);
    // 设置在没有下注的前,其他按钮是不可点击的
       Gamepn.setVisible(false);
        Naskcard.setEnabled(false);
        Nnoaskcard.setEnabled(false);
        Ndoublemoney.setEnabled(false);
        Ndecreasemoney.setEnabled(false);
        Giveup.setEnabled(false);
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */

/************************************************相关按钮等对象的创建*****************************************************/

    @SuppressWarnings(“unchecked“)
    //                           
    private void initComponents() {

        Dialog1 = new javax.swing.JDialog();
        jLabel1 = new javax.swing.JLabel();
        jLabel2 = new javax.swing.JLabel();
        jLabel3 = new javax.swing.JLabel();
        jLabel4 = new javax.swing.JLabel();
        jLabel5 = new javax.swing.JLabel();
        jLabel6 = new javax.swing.JLabel();
        jLabel7 = new javax.swing.JLabel();
        jLabel8 = new javax.swing.JLabel();
        jLabel9 = new javax.swing.JLabel();
        jLabel10 = new javax.swing.JLabel();
        jLabel11 = new javax.swing.JLabel();
        jLabel12 = new javax.swing.JLabel();
        jLabel13 = new javax.swing.JLabel();
        jLabel14 = new javax.swing.JLabel();
        jLabel15 = new javax.swing.JLabel();
        jLabel16 = new javax.swing.JLabel();
        jLabel17 = new javax.swing.JLabel();
        North = new javax.swing.JLabel();
        West = new javax.swing.JLabel();
        East = new javax.swing.JLabel();
        Gamepn = new javax.swing.JPanel();
        Computercard = new javax.swing.JTextField();
        //Nputedmoney.addActionListener(new MyActionMoniter());
        Nputedmoney = new javax.swing.JButton();
        //Naskcard.setEnabled(false);
        //Naskcard.addActionListener(new MyActionMoniter());
        Naskcard = new javax.swing.JButton();
        //Nnoaskcard.addActionListener(new MyActionMoniter());
        Nnoaskcard = new javax.swing.JButton();
        //Ndoublemoney.addActionListener(new MyActionMoniter(

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

     文件         24  2009-04-30 09:46  开始游戏.bat

     文件        410  2002-11-08 00:30  Images\21.gif

     文件        570  2002-11-07 23:57  Images\27.gif

     文件        390  2002-11-07 23:54  Images\Clubs1.gif

     文件        623  2002-11-08 00:23  Images\Clubs10.gif

     文件       1167  2002-11-08 00:11  Images\Clubs11.gif

     文件       1203  2002-11-08 00:55  Images\Clubs12.gif

     文件       1107  2002-11-08 00:27  Images\Clubs13.gif

     文件        417  2002-11-08 00:37  Images\Clubs2.gif

     文件        438  2002-11-08 00:33  Images\Clubs3.gif

     文件        468  2002-11-08 00:30  Images\Clubs4.gif

     文件        490  2002-11-08 00:19  Images\Clubs5.gif

     文件        522  2002-11-08 00:37  Images\Clubs6.gif

     文件        536  2002-11-07 23:53  Images\Clubs7.gif

     文件        572  2002-11-08 00:28  Images\Clubs8.gif

     文件        587  2002-11-08 00:39  Images\Clubs9.gif

     文件        402  2002-11-07 23:54  Images\Diamond1.gif

     文件        621  2002-11-08 00:29  Images\Diamond10.gif

     文件       1177  2002-11-08 00:36  Images\Diamond11.gif

     文件       1211  2002-11-07 23:52  Images\Diamond12.gif

     文件       1161  2002-11-08 00:31  Images\Diamond13.gif

     文件        417  2002-11-08 00:26  Images\Diamond2.gif

     文件        435  2002-11-08 00:11  Images\Diamond3.gif

     文件        469  2002-11-08 00:56  Images\Diamond4.gif

     文件        498  2002-11-08 00:33  Images\Diamond5.gif

     文件        513  2002-11-08 00:19  Images\Diamond6.gif

     文件        582  2002-11-08 00:36  Images\Diamond69.gif

     文件        527  2002-11-08 00:18  Images\Diamond7.gif

     文件        565  2002-11-08 00:32  Images\Diamond8.gif

     文件        410  2002-11-08 00:30  Images\Heart1.gif

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

评论

共有 条评论