home / season_25_matches

cobra_command_towers (view)

22 rows

✎ View and edit SQL

This data as json, CSV (advanced)

Suggested facets: Wins, Winrate

Tower Games Wins Losses Winrate Pickrate Winrate_LowerBound_95CI
BombShooter 1977 1136 841 57.46% 11.95% 55.28%
BananaFarm 2649 1492 1157 56.32% 16.01% 54.43%
MonkeyAce 179 107 72 59.78% 1.08% 52.59%
SpikeFactory 1903 1033 870 54.28% 11.50% 52.04%
MonkeySub 267 151 116 56.55% 1.61% 50.61%
BoomerangMonkey 604 307 297 50.83% 3.65% 46.84%
DartMonkey 871 435 436 49.94% 5.26% 46.62%
EngineerMonkey 270 141 129 52.22% 1.63% 46.26%
MortarMonkey 400 202 198 50.50% 2.42% 45.60%
WizardMonkey 995 468 527 47.04% 6.01% 43.93%
NinjaMonkey 734 344 390 46.87% 4.44% 43.26%
Alchemist 463 216 247 46.65% 2.80% 42.11%
IceMonkey 321 152 169 47.35% 1.94% 41.89%
DartlingGunner 387 180 207 46.51% 2.34% 41.54%
GlueGunner 903 397 506 43.96% 5.46% 40.73%
MonkeyVillage 904 391 513 43.25% 5.46% 40.02%
SniperMonkey 917 388 529 42.31% 5.54% 39.11%
SuperMonkey 587 242 345 41.23% 3.55% 37.24%
TackShooter 498 205 293 41.16% 3.01% 36.84%
Druid 366 151 215 41.26% 2.21% 36.21%
HeliPilot 275 103 172 37.45% 1.66% 31.73%
MonkeyBuccaneer 78 33 45 42.31% 0.47% 31.34%

Advanced export

JSON shape: default, array, newline-delimited

CSV options:

CREATE VIEW cobra_command_towers AS 
WITH cobra_command AS
    (SELECT *
    FROM matches
    WHERE map = 'cobra_command')
SELECT Tower,
       Games,
       Wins,
       Losses,
       printf('%.2f%%', WR * 100)                                          AS Winrate,
       printf('%.2f%%', PR * 100)                                          AS Pickrate,
       printf('%.2f%%', (WR - 1.96 * SQRT((WR * (1 - WR)) / Games)) * 100) AS Winrate_LowerBound_95CI
FROM (SELECT Tower,
             Games,
             Wins,
             Losses,
             CAST(Wins AS REAL) / Games AS WR,
             CAST(Games AS REAL) / (
                 (SELECT COUNT(*)
                  FROM cobra_command) * 6)    AS PR
      FROM (SELECT Tower,
                   SUM(Win) + SUM(NOT Win) AS Games,
                   SUM(Win)                AS Wins,
                   SUM(NOT Win)            AS Losses
            FROM (SELECT lt1           AS Tower,
                         playerLeftWin AS Win
                  FROM cobra_command
                  UNION ALL
                  SELECT lt2           AS Tower,
                         playerLeftWin AS Win
                  FROM cobra_command
                  UNION ALL
                  SELECT lt3           AS Tower,
                         playerLeftWin AS Win
                  FROM cobra_command
                  UNION ALL
                  SELECT rt1               AS Tower,
                         NOT playerLeftWin AS Win
                  FROM cobra_command
                  UNION ALL
                  SELECT rt2               AS Tower,
                         NOT playerLeftWin AS Win
                  FROM cobra_command
                  UNION ALL
                  SELECT rt3               AS Tower,
                         NOT playerLeftWin AS Win
                  FROM cobra_command)
            GROUP BY Tower))
WHERE Wins >= 10 AND Losses >= 10 AND LENGTH(Winrate_LowerBound_95CI) = 6
ORDER BY Winrate_LowerBound_95CI DESC;
Powered by Datasette · Queries took 1116.656ms