From 0937a07f1e1b0bb8839a06577aa25c2ab623af3e Mon Sep 17 00:00:00 2001 From: lhcopetti Date: Sat, 23 May 2015 12:39:42 -0300 Subject: [PATCH] Add parameter to useCards function. QuestionXMLDAO now accepts InputStream as source for questions. --- src/com/copetti/core/MillionGame.java | 18 +++++++-------- src/com/copetti/core/MillionShowGame.java | 17 +++++++++++++- src/com/copetti/core/dao/QuestionXMLDao.java | 24 ++++++++------------ test/com/copetti/core/MillionGameTest.java | 12 ++++++---- test/com/copetti/core/dao/TestXMLDao.java | 2 +- 5 files changed, 42 insertions(+), 31 deletions(-) diff --git a/src/com/copetti/core/MillionGame.java b/src/com/copetti/core/MillionGame.java index e3a56f8..a15786c 100644 --- a/src/com/copetti/core/MillionGame.java +++ b/src/com/copetti/core/MillionGame.java @@ -7,7 +7,6 @@ import java.util.HashSet; import java.util.List; import java.util.Map; -import java.util.Random; import java.util.Set; import com.copetti.core.Question.Difficulty; @@ -117,7 +116,7 @@ public void skip() } @Override - public Set