public AnswerWindow(Frame frame, FrameAnsweredListener frameAnsweredListener) { this.frame = frame; this.answer = frame.getAnswer(); this.frameAnsweredListener = frameAnsweredListener; if (getFrame().hasDoubleJeopardy()) { handleDoubleJeopardy(); } }
private List<Integer> getDoubleJeopardyChoices(Frame frame) { List<Integer> choices = new ArrayList<>(); int amount = 100; do { choices.add(amount); amount += 100; } while (amount <= frame.getPoints() * 2); return choices; }