⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 deck.java

📁 this is asimple java code to play with event free sill
💻 JAVA
字号:
// File: cards2/Deck.java// Description: A Deck is a particular kind of CardPile with 52 Cards in it.// Author: Fred Swartz - Feb 2007 - Placed in public domain.package freecell;import java.util.*;public class Deck extends CardPile {    //============================================================== constructor    /** Creates a new instance of Deck */    public Deck() {        for (Suit s : Suit.values()) {            for (Face f : Face.values()) {                Card c = new Card(f, s);                c.turnFaceUp();                this.push(c);            }        }        shuffle();    }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -