!7 !include #1007130 // AI Game Include p { pGame(); } ////////////////////////////////////// // Test AIs. Just add your own here // ////////////////////////////////////// AI > HorizontalAutoSplit { ExternalTextAI letterAI; static ImageSurface is; long lastUpdate; *() { loading { letterAI = loadWinnerTextAI(#1007131); } setOpt(letterAI.ai, lax := true); } void go { horizontalAutoSplit2_threshold = 0.3f; L letters = horizontalAutoSplitToImages(new BWImage(image())); if (sysNow() > lastUpdate+500) { lastUpdate = sysNow(); is = showZoomedImage_centered(is, "Horizontal Split", mergeBWImagesHorizontally(letters).toRGB()); } new StringBuilder buf; for (BWImage img : letters) buf.append(letterAI.call(img.getBufferedImage())); submit(str(buf)); } } ////////////////// // PUZZLE MAKER // ////////////////// static Puzzle makePuzzle() { S text = randomID(4); ret new Puzzle("Enter the lowercase text you see:", renderSourceCode_1(text), text); }