synchronized void deal(UTS loot) { if (state == -3) { return; } if (loot != null) { bag.merge(loot); } state = -1; notifyAll(); }
static List<UTS> explode(UTS bag) { final List<UTS> bags = new ArrayList<>(); for (int i = 0; i < bag.upper[0]; i++) { final UTS b = new UTS(64); b.merge(bag); if (i == 0) { b.count = 1; } b.lower[0] = i; b.upper[0] = i + 1; bags.add(b); } return bags; }
void lifelinedeal(UTS b) throws DigestException { bag.merge(b); run(); }