Permalink
Browse files

rearranged some of the packages/files

  • Loading branch information...
1 parent 16992c5 commit 108b251227908673ff976e156f047d84edf1aa6a @christian-posta committed Aug 24, 2011
@@ -1,5 +1,6 @@
package com.christianposta.fuse;
+import com.christianposta.fuse.cards.Card;
import org.apache.commons.lang.Validate;
import java.util.ArrayList;
@@ -1,5 +1,7 @@
package com.christianposta.fuse;
+import com.christianposta.fuse.cards.Card;
+
/**
* Created by IntelliJ IDEA.
* User: ceposta
@@ -1,4 +1,4 @@
-package com.christianposta.fuse;
+package com.christianposta.fuse.cards;
import org.apache.commons.lang.builder.EqualsBuilder;
@@ -1,5 +1,7 @@
-package com.christianposta.fuse;
+package com.christianposta.fuse.cards;
+import com.christianposta.fuse.cards.shuffle.DefaultShuffleAlgorithm;
+import com.christianposta.fuse.cards.shuffle.ShuffleAlgorithm;
import org.apache.commons.lang.Validate;
import java.util.EmptyStackException;
@@ -70,7 +72,7 @@ public void shuffle() {
* @return the next card from the shoe if a card exists
* @throws EmptyCardShoeException when you attempt to deal a card and there are no cards in the shoe
*/
- public Card dealCard() throws EmptyCardShoeException{
+ public Card dealCard() throws EmptyCardShoeException {
try {
return this.cards.pop();
} catch (EmptyStackException e) {
@@ -1,4 +1,4 @@
-package com.christianposta.fuse;
+package com.christianposta.fuse.cards;
/**
* Created by IntelliJ IDEA.
@@ -1,4 +1,4 @@
-package com.christianposta.fuse;
+package com.christianposta.fuse.cards;
import java.util.ArrayList;
import java.util.List;
@@ -1,4 +1,4 @@
-package com.christianposta.fuse;
+package com.christianposta.fuse.cards;
/**
* Created by IntelliJ IDEA.
@@ -1,4 +1,4 @@
-package com.christianposta.fuse;
+package com.christianposta.fuse.cards;
/**
* Created by IntelliJ IDEA.
@@ -1,8 +1,9 @@
-package com.christianposta.fuse;
+package com.christianposta.fuse.cards.shuffle;
+
+import com.christianposta.fuse.cards.Card;
import java.util.Collections;
import java.util.List;
-import java.util.Random;
/**
* Created by IntelliJ IDEA.
@@ -1,6 +1,7 @@
-package com.christianposta.fuse;
+package com.christianposta.fuse.cards.shuffle;
+
+import com.christianposta.fuse.cards.Card;
-import java.util.Collection;
import java.util.List;
/**
@@ -1,5 +1,6 @@
-package com.christianposta.fuse;
+package com.christianposta.fuse.cards;
+import com.christianposta.fuse.cards.*;
import org.junit.Test;
import java.util.ArrayList;
@@ -1,5 +1,9 @@
-package com.christianposta.fuse;
+package com.christianposta.fuse.cards;
+import com.christianposta.fuse.cards.Card;
+import com.christianposta.fuse.cards.CardType;
+import com.christianposta.fuse.cards.Deck;
+import com.christianposta.fuse.cards.Suit;
import org.junit.Before;
import org.junit.Test;

0 comments on commit 108b251

Please sign in to comment.