Download Jar. Uses 3874K of libraries. Click here for Pure Java version (11229L/81K).
1 | !7 |
2 | |
3 | !include #1006931 // AI Game & API |
4 | |
5 | p-autorestart {
|
6 | newImageText = "New Letter!"; |
7 | gameTitle = "A. I. Game 8.6"; |
8 | reproZoom = 1; |
9 | makeInstruction(); |
10 | pGame(); |
11 | swing {
|
12 | clickButton(last(aiButtons)); // Start the winner AI! |
13 | } |
14 | } |
15 | |
16 | svoid makeInstruction {
|
17 | setInstruction("Reproduce this image with a single color:");
|
18 | } |
19 | |
20 | sclass Submission {
|
21 | RGB color; |
22 | |
23 | *() {}
|
24 | *(RGB *color) {}
|
25 | } |
26 | |
27 | !include #1014964 // Random letter puzzle maker |
28 | |
29 | /////////////// |
30 | // RENDERERS // |
31 | /////////////// |
32 | |
33 | static RGBImage renderImage(Submission s) { ret new RGBImage(renderImage1(s)); }
|
34 | static BufferedImage renderImage1(Submission s) { ret newBufferedImage(w, h, toColor(s.color)); }
|
35 | static BufferedImage renderWithHints(Submission s) { ret renderImage1(s); }
|
36 | |
37 | ///////////////////////////////// |
38 | // AIs. Just add your own here // |
39 | ///////////////////////////////// |
40 | |
41 | AI_Random_abstract > AI_Random {
|
42 | Submission guess() {
|
43 | ret Submission(randomColor()); |
44 | } |
45 | } |
46 | |
47 | AI_RandomWithVariation_abstract > AI_RandomWithVariation {
|
48 | AI_RandomWithVariation() { super(new AI_Random); }
|
49 | |
50 | Submission vary(Submission s) {
|
51 | ret Submission(varyColor(s.color)); |
52 | } |
53 | } |
54 | |
55 | !include #1014957 // AI_Racer |
Began life as a copy of #1014980
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1014997 |
| Snippet name: | A. I. Game 8.6 / Single Color [OK, if rather simple :)] |
| Eternal ID of this version: | #1014997/6 |
| Text MD5: | cd4c82595eba23c46abf9be41ffce9e6 |
| Transpilation MD5: | b010dc7446cf10caa83a58ad98a5192f |
| Author: | stefan |
| Category: | javax / gui / a.i. |
| Type: | JavaX source code (desktop) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2018-05-06 23:18:47 |
| Source code size: | 1236 bytes / 55 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 730 / 1837 |
| Version history: | 5 change(s) |
| Referenced in: | [show references] |