+
+ void doubleDefeat() {
+ gameManager.addToGameSummary(GameManager.formatErrorMessage("Everybody loses!"));
+ animateLoss(1920/2, 680, 150, "L0SERZ!");
+ }
+
+ void draw() {
+ gameManager.addToGameSummary("Draw.");
+ animateLoss(1920/2, 680, 200, "DRAW");
+ }
+
+ String selectTrollMessage(Dir d) {
+ if (random.nextInt(10000) == 0) {
+ return specials[random.nextInt(specials.length)];
+ }
+
+ // yup, still biased
+ int i = random.nextInt(directed.length + isotropic.length / 3);
+ if (i < directed.length) {
+ return directed[i][d.index];
+ }
+ else {
+ return isotropic[random.nextInt(isotropic.length)];
+ }
+ }
+
+ String specials[] = {
+ "Never gonna give you up\nNever gonna let you down\nNever gonna run around and desert you\nNever gonna make you cry\nNever gonna say goodbye\nNever gonna tell a lie and hurt you",
+ "CG know what they're doing."
+ };
+
+ String directed[][] = {
+ // movies
+ { "Han shot first", "I am your father", "Greedo shot first" },
+
+ // everyday life
+ { "tea > coffee", "just drink\nkool-aid", "coffee > tea" },
+ { "Marvel > DC", "Disney > 50 shades", "DC > Marvel" },
+ { "cats > dogs", "humans make\ngood pets", "dogs > cats" },
+
+ // gaming
+ { "PC > console", "pong is still\nunequaled", "console > PC" },
+ { "Windows > Linux", "it's all Android anyway", "Linux > Windows" },
+ { "pad > stick", "mouse gaming is lame", "stick > pad" },
+ { "RTS > FPS", "solitaire best game", "FPS > RTS" },
+ { "YT gaming > twitch", "i watch other ppl play", "twitch > YT gaming" },
+
+ // programming
+ { "vi < emacs", "i code with Notepad", "emacs > vi" },
+ { "tabs < spaces", "gofmt FTW", "spaces < tabs" },
+ { "LISP is the most\npowerful language", "HTML is a\nprogramming language", "Forth is the most\npowerful language" },
+ { "static linking best", "symlinking best", "dynamic linking best" },
+ { "NPE > SIGSEGV", "kernel panic", "SIGSEGV > NPE" },
+ { "objects > functions", "it's closures\nall the way down", "functions > objects" },
+ { "GOTO FTW", "COME FROM FTW", "don't use GOTO" },
+ { "Agile > Waterfall", "SCRUM isn't Agile", "Waterfall > Agile" },
+
+ // Internet
+ { "gmail > github", "copy-paste FTW", "github > gmail" },
+ { "MSIE > Safari", "Opera did it first", "Safari > MSIE" },
+ { "bing > yahoo", "duckduckgo best SE", "yahoo > bing" },
+ { "jira > trello", "bugzilla FTW", "trello > jira" },
+ { "IRC > slack", "chat is work", "discord < IRC" },
+ { "trolls > SJW", "i'm not trolling\njust misunderstood", "SJW > trolls" },
+
+ // CodinGame
+ { "searcho no chokudai", "GAimax is True AI", "Smitsimax FTW" },
+ { "Automaton2000 > NN", "bots > humans", "AutomatonNN > 2000" },
+ { "light theme best", "ascii > graphics", "dark theme best" },
+ { "simulation beats heuristics", "true AI is just ifs", "heuristics beat simulation" },
+ { "bruteforce always prevails", "you'll timeout anyway", "algorithms always prevail" }
+ };
+
+ String isotropic[] = {
+ "Electron apps are the fastest",
+ "Rosebud",
+ "Thanos did nothing wrong",
+ "developers developers developers",
+ "the cloud is just\nother ppl's computers",
+ "ur doin it rong",
+ "tortue",
+ "how is ur csb",
+ "31OCT = 25DEC",
+ "ASCII stupid question\nget a stupid ANSI",
+ "trolling is a art"
+ };