!7 // too brave // rewrite Submission = BackgroundPlus. p-experiment { S imageID = #1101217; lines = 1; loadImageSnippet(imageID); showTheImage = false; new AI_Racer ai; repeat 10 { Game game = scoreAI(ai); print("Score: " + formatScore(game.percentScore()); } } static int lines = 8; !include #1015048 // AI Game & API sclass Submission extends BackgroundPlus { *() {} *(BackgroundPlus b) { copyFields(b, this); check(); } void check { assertEqualsQuick(main.lines, l(things)); } } ////////////////// // PUZZLE MAKER // ////////////////// sS lastLetter; static RGBImage makeImage() { lastLetter = randomUpperCaseLetterNotEqualTo(lastLetter); ret randomLetterImage(lastLetter, #1004568, 100); } /////////////// // RENDERERS // /////////////// static BufferedImage renderImage1(Submission s) { ret renderRenderable(w, h, s); } static BufferedImage renderWithHints(Submission s) { ret renderRenderable_withHints(w, h, s); } ////////////////////////////////////// // Test AIs. Just add your own here // ////////////////////////////////////// AI_Random_abstract > AI_Random { Submission guess() { ret Submission(randomBackgroundPlusLines(w, h, lines)); } } AI_RandomWithVariation_abstract > AI_RandomWithVariation { AI_RandomWithVariation() { super(new AI_Random); } Submission vary(Submission s) { ret varyBackgroundPlusLines(s, w, h); } } !include #1014957 // AI_Racer