Improved handling of color selection for deckbuilding and land selection in card-based random decks - including fixing a few bugs with dual land detection regexs

This commit is contained in:
austinio7116
2017-05-11 23:58:47 +00:00
parent a4d15b6b86
commit 4aa9408000
5 changed files with 41 additions and 12 deletions

View File

@@ -393,7 +393,7 @@ public abstract class DeckGeneratorBase {
*/
protected List<String> getDualLandList() {
System.out.println("Dual Land Colors: " + colors.toEnumSet().toString());
if (colors.countColors() > 3) {
addCardNameToList("Rupture Spire", dLands);
addCardNameToList("Undiscovered Paradise", dLands);
@@ -445,7 +445,7 @@ public abstract class DeckGeneratorBase {
}
public List<String> regexFetchLandSearch(Iterable<PaperCard> landCards){
final String fetchPattern="Search your library for a ([^\\s]*) or ([^\\s]*) card";
final String fetchPattern="Search your library for an* ([^\\s]*) or ([^\\s]*) card";
//final List<String> dLands = new ArrayList<String>();
Map<String,String> colorLookup= new HashMap<>();
colorLookup.put("Plains","W");