Permalink
Browse files

Added basic concepts of a card and a deck. The deck can be shuffled a…

…nd we can draw any number of cards from it
  • Loading branch information...
1 parent f9ffb8a commit b0bd2af345edc560d827a3b09e1f0d5cae808b27 @MusikPolice committed Oct 3, 2012
Showing with 12 additions and 8 deletions.
  1. +1 −0 .gitignore
  2. +11 −8 src/pokerhands/Pokerhands.java
View
@@ -10,3 +10,4 @@ build.xml
manifest.mf
/nbproject
+/build/
@@ -1,19 +1,22 @@
-/*
- * To change this template, choose Tools | Templates
- * and open the template in the editor.
- */
package pokerhands;
/**
*
* @author jfritz
*/
-public class Pokerhands {
-
+public class Pokerhands
+{
/**
* @param args the command line arguments
*/
- public static void main(String[] args) {
- // TODO code application logic here
+ public static void main(String[] args)
+ {
+ Deck d = new Deck();
+ d.shuffle();
+
+ for (Card c : d.drawCards(10))
+ {
+ System.out.println(c.toString());
+ }
}
}

0 comments on commit b0bd2af

Please sign in to comment.