home / s24+_matches

cobra_command_towers (view)

22 rows

✎ View and edit SQL

This data as json, CSV (advanced)

Tower Games Wins Losses Winrate Pickrate Winrate_LowerBound_95CI
MonkeyAce 1852 1125 727 60.75% 1.45% 58.52%
MortarMonkey 2705 1600 1105 59.15% 2.12% 57.30%
BombShooter 15507 8767 6740 56.54% 12.17% 55.76%
BananaFarm 23932 13230 10702 55.28% 18.79% 54.65%
SpikeFactory 13843 7552 6291 54.55% 10.87% 53.73%
EngineerMonkey 2693 1479 1214 54.92% 2.11% 53.04%
MonkeySub 3099 1633 1466 52.69% 2.43% 50.94%
DartMonkey 5255 2736 2519 52.06% 4.13% 50.71%
BoomerangMonkey 5466 2822 2644 51.63% 4.29% 50.30%
WizardMonkey 7856 3544 4312 45.11% 6.17% 44.01%
GlueGunner 5490 2486 3004 45.28% 4.31% 43.97%
DartlingGunner 3346 1503 1843 44.92% 2.63% 43.23%
MonkeyVillage 6248 2705 3543 43.29% 4.90% 42.07%
Alchemist 2599 1134 1465 43.63% 2.04% 41.73%
NinjaMonkey 5514 2350 3164 42.62% 4.33% 41.31%
SuperMonkey 4022 1721 2301 42.79% 3.16% 41.26%
IceMonkey 2438 1037 1401 42.53% 1.91% 40.57%
HeliPilot 2654 1114 1540 41.97% 2.08% 40.10%
Druid 2067 860 1207 41.61% 1.62% 39.48%
SniperMonkey 5825 2364 3461 40.58% 4.57% 39.32%
TackShooter 4517 1761 2756 38.99% 3.55% 37.56%
MonkeyBuccaneer 464 173 291 37.28% 0.36% 32.88%

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 3147.996ms