import com.aldo.apps.ochecompanion.utils.CheckoutConstants; import java.util.List; /** * Quick test to verify checkout generation statistics. */ public class TestCheckoutGeneration { public static void main(String[] args) { System.out.println("=== Checkout Generation Statistics ==="); System.out.println("Total unique scores with checkouts: " + CheckoutConstants.getAvailableCheckouts().size()); System.out.println("Total checkout combinations: " + CheckoutConstants.getTotalRoutesCount()); System.out.println("\n=== Sample Checkouts ==="); // Test some common scores int[] testScores = {2, 40, 50, 100, 120, 141, 170}; for (int score : testScores) { String[] optimal = CheckoutConstants.getCheckoutRoute(score); List all = CheckoutConstants.getAllCheckoutRoutes(score); if (optimal != null) { System.out.println("\nScore " + score + ":"); System.out.println(" Optimal: " + String.join(", ", optimal)); System.out.println(" Total routes: " + (all != null ? all.size() : 0)); // Show first 3 alternatives if available if (all != null && all.size() > 1) { System.out.println(" Alternatives:"); for (int i = 0; i < Math.min(3, all.size()); i++) { if (!java.util.Arrays.equals(all.get(i), optimal)) { System.out.println(" - " + String.join(", ", all.get(i))); } } } } } } }