Clean up testing
[troll.git] / PLAN.org
1 * Todo list
2 ** DONE links to contrib and forum
3 ** DONE document maps
4 ** DONE document length/distance thingy
5 ** DONE debug rotating avatar
6 ** DONE easter egg for YannT
7 ** DONE messages
8 ** DONE left win bias bug
9 ** DONE upgrade deps
10 ** DONE Timings
11 ** DONE Protocol
12 ** DONE fenceposts
13 ** Quotes to include
14      Trolls, it is said, were bred by Melkor because he desired a race as powerful as the giant Ents, the Tree-herds.
15          David Day in Tolkien : The Illustrated Encyclopaedia (1993), p. 226
16
17      The folk belief … is that lightning seeks out trolls and giants, perhaps a reflection the giant-slaying of Thor in Old Norse mythology. Many informants have told collectors that the reason the giants or trolls are no longer populous is the accuracy and efficiency of the lightning strokes.
18          John Lindow, in Swedish Folktales and Legends (1978), p. 89
19
20      Senator Stampingston: Gentlemen, it's clear that we're in a universally precarious situation. Dethklok has summoned a troll.
21      General Crozier: That's impossible, there's no such thing as trolls.
22      Senator Stampingston: Then how do you explain the dead unicorns?
23          Metalocalypse, Dethtroll, episode 1.04 (2006)
24
25      They were trolls. Obviously trolls. Even Bilbo, in spite of his sheltered life, could see that: from the great heavy faces of them, and their size, and the shape of their legs, not to mention their language, which was not drawing-room fashion at all, at all.
26          J. R. R. Tolkien, The Hobbit (1937), Chapter 2: "Roast Mutton"
27
28      Trolls are slow in the uptake, and mighty suspicious about anything new to them.
29          J. R. R. Tolkien, The Hobbit (1937), Chapter 2: "Roast Mutton"
30
31      Trolls simply detest the very sight of dwarves (uncooked).
32          J. R. R. Tolkien, The Hobbit (1937), Chapter 2: "Roast Mutton"
33
34      Trolls do not build.
35          J. R. R. Tolkien, The Fellowship of the Ring (1954), Book I, Chapter 12: "Flight to the Ford"; said by Strider.
36
37      'Now is the time!' cried Gandalf. 'Let us go, before the troll returns!'
38          J. R. R. Tolkien, The Fellowship of the Ring (1954), Book II, Chapter 5: "The Bridge of Khazad-Dûm"
39
40      Trolls are only counterfeits, made by the Enemy in the Great Darkness, in mockery of Ents, as Orcs were of Elves.
41          J. R. R. Tolkien, The Two Towers (1954), Book III, Chapter 4: "Treebeard"
42 ** DONE View settings
43  - [X] troll pants colors
44 ** TODO Internationalised troll quotes
45  - pain au chocolat ou chocolatine
46 ** DONE initial model parametrization
47 ** DONE view parameterization?
48 ** DONE troll races
49 ** DONE html for salting the seed
50 ** TODO Leagues (need multiround)
51 ** TODO Multiround (need early termination)
52 ** TODO Leaguification
53 - [X] Cheating
54 - [X] Maps
55 - [ ] Trolls
56 - [ ] Multiround
57 ** DONE Early termination (need time rationalization)
58 ** DONE Time rationalization (need code reorg)
59 ** TODO Code cleanup
60
61 That one's probably never going to be DONE ^^'
62
63 - [ ] split GameManager
64
65 *** organize routines by functional area
66
67 *** split out what can be
68
69 *** factor stone throwing ref/view interface
70 ** Testing
71 *** DONE basics
72 *** TODO the @Illedan case
73 *** TODO more generic "referee crash"
74 *** TODO parameters feedback
75 *** TODO cheating cases
76 ** DONE add a background to the favicon
77
78 That transparency is nefarious on my browser's default tab background
79 color.
80
81 * BUGS
82 ** GodMode crash
83 Reported by @Illedan
84
85 java.lang.NullPointerException
86         at com.codingame.game.GodModeManager.update(GodModeManager.java:102)
87         at com.codingame.game.Referee.gameTurn(Referee.java:122)
88         at com.codingame.gameengine.core.GameManager.start(GameManager.java:122)
89         at com.codingame.gameengine.core.RefereeMain.start(RefereeMain.java:67)
90         at com.codingame.gameengine.core.RefereeMain.main(RefereeMain.java:50)
91
92 ** viewer goes blank
93 <2020-06-03 mer. 22:58>
94 (22:19:12) Astrobytes: JBM, if you're around, the TVC viewer goes blank after a couple of games. Consistently. In Chrome. Other games not doing the same.
95 (22:24:18) Astrobytes: Seems to be fine in Opera and FF
96 (22:30:54) Astrobytes: struct, what's happening with Shabu/Shobu/Shamu/Shangis/whateverit'scalled?
97 (22:38:18) JBM: interesting, lemme try
98 (22:44:15) JBM: mmm
99 (22:44:18) JBM: not here :(
100 (22:44:36) Astrobytes: Any luck reproducing JBM? In true bug-form, it hasn't happened since I reported it. Yet it's been happening all day (on 2 different PCs) with multiple restarts.
101 (22:44:41) Astrobytes: Ah.
102 (22:44:54) JBM: mmm
103 (22:45:11) JBM: i only started pushing stuff at around 6 CEST
104 (22:45:21) JBM: and then again, did not touch the viewer today
105 (22:45:27) Astrobytes: One Win 8.1 and one Win 10
106 (22:45:35) JBM: i only have a win10
107 (22:45:56) JBM: chrome, errr 83.0.4103.61
108 (22:46:19) JBM: ... .97 now
109 (22:46:46) Astrobytes: I'm on latest w/ever that is
110 (22:48:05) UnnamedCodinGamer: I also had a few black screens (Firefox)
111 (22:48:15) Astrobytes: Interesting
112 (22:48:19) Astrobytes: Recent?
113 (22:48:23) JBM: nope, still get my ui
114 (22:48:25) UnnamedCodinGamer: yes
115 (22:48:34) JBM: i only get a temporary black sometimes as part of the demo
116 (22:48:49) Astrobytes: No, this is full-on blackout
117 (22:48:53) UnnamedCodinGamer: it was full black here
118 (22:49:01) JBM: the rest of the ui still working?
119 (22:49:06) JBM: what does the console report?
120 (22:49:26) Astrobytes: Didn't check console, if it happens again I'll let you know
121 (22:49:31) JBM: yes please
122 (22:49:32) UnnamedCodinGamer: everything else seemed normal
123 (22:49:49) Astrobytes: What were your UI settings UnnamedCodinGamer?
124 (22:50:16) Astrobytes: Verbose trolling etc
125 (22:50:20) UnnamedCodinGamer: like theme?
126 (22:50:41) Astrobytes: No the settings for the viewer
127 (22:51:47) UnnamedCodinGamer: on/off/GREen
128 (22:51:56) JBM: you have to give the actual options
129 (22:51:59) UnnamedCodinGamer: I think this is the default
130 (22:52:00) JBM: the ordering is random
131 (22:52:15) JBM: the defaults, OTOH, aren't (too much)
132 (22:52:28) JBM: like, pants color definitely is random
133 (22:52:35) UnnamedCodinGamer: verbose trolling on
134 (22:52:41) UnnamedCodinGamer: detroll mode off
135 (22:52:56) JBM: but a bad pants color would likely merely result in a naked troll, not a crash or allblack ui
136 (22:53:05) JBM: yes, those are the defaults
137 (22:53:39) JBM: well, no matter if it currently doesn't reproduce
138 (22:53:41) JBM: and if it does
139 (22:53:49) JBM: please look at the JS console
140 (22:53:51) Astrobytes: Then I've had it with detroll mode on and off
141 (22:54:02) Astrobytes: Will certainly do
142 (22:54:12) JBM: is that in the main viewer only or in last battles?
143 (22:54:27) Astrobytes: Main viewer only
144 (22:54:34) UnnamedCodinGamer: i had both
145 (22:54:41) JBM: because it doesn't in B, or because you never tried?
146 (22:54:43) JBM: ah ok
147 (22:54:51) JBM: thx
148 (22:55:04) UnnamedCodinGamer: after reload of last battles it was back to normal
149 (22:55:16) JBM: mmm
150 (22:55:28) Astrobytes: Could be a resource usage thing over x amount of time
151 (22:55:38) Astrobytes: Donno
152 (22:55:40) JBM: if it's irreproducible after reload, i'm tempted to dismiss as "something something cache"
153 (22:55:51) JBM: resource usage i'm more doubtful
154 (22:55:57) JBM: but who knows
155 (22:56:01) Astrobytes: Was still getting it after clearing cache earlier
156 (22:56:09) JBM: dear me
157 (22:56:19) JBM: ok, creating an actual entry in the PLAB
158 (22:56:36) Astrobytes: Anyway, don't worry about it too much until we can give you some more details
159 (22:57:07) JBM: right
160 (22:57:11) JBM: eagerly awaiting those
161 * Publication checklist
162 - [ ] demo is up-to-date
163 - [-] game name is updated to simple 'troll'
164   - [ ] in pom.xml artifactId
165   - [X] CANCELLED in config.ini (if GC confirms) (eZ disproved)
166   - [ ] in config.js