/* * Return true if all the items on the board have been used */ public boolean isEmpty() { for (Category category : categories) { if (category.isUsedUp() == false) { return false; } } return true; }
/* * Return a list with the names of the categories that still have items available on the board */ public ArrayList<String> getActiveCategories() { // Figure out how many categories are still active ArrayList<String> catList = new ArrayList<String>(); for (Category cat : categories) { if (cat.isUsedUp() == false) { catList.add(cat.getName()); } } return catList; }