Skip to content

Instantly share code, notes, and snippets.

@valerionew
Created October 1, 2022 08:10
Show Gist options
  • Save valerionew/95b616371c7c0a27e8ce6ae675f9586a to your computer and use it in GitHub Desktop.
Save valerionew/95b616371c7c0a27e8ce6ae675f9586a to your computer and use it in GitHub Desktop.
Stats for fair Wordle players, mostly from reddit
% this file is part of my wordle solver
% https://github.com/valerionew/wordle-solver
% almost all data from a reddit thread
%
close all
clear
robot = [1, 122, 554, 588, 209, 42, 6];
robot = robot./sum(robot).*100; % normaliz
human(1,:) = [1, 14, 62, 117, 43, 18, 0];
human(2,:) = [0, 1, 28, 52, 36, 19, 0];
human(3,:) = [0, 12, 51, 72, 52, 15, 0];
human(4,:) = [1, 33, 67, 103, 46, 2, 0];
human(5,:) = [0, 4, 7, 20, 16, 8, 3];
human(6,:) = [1, 0, 13 , 19, 12, 1, 3];
human(7,:) = [0, 11, 93, 121, 30, 3, 0];
human(7,:) = [0, 4, 55, 76, 25, 6, 5];
human(8,:) = [0, 4, 35, 63, 52, 34, 8];
human(9,:) = [0, 1, 37, 53, 16, 3, 0];
human(10,:)= [0, 7, 44, 69, 56, 30, 2];
human(11,:)= [0, 13, 54, 104, 72, 15, 0];
human(12,:)= [0, 12,108, 102, 32, 10, 3];
human(13,:)= [0, 15, 91, 108, 39, 10, 0];
human(14,:)= [2, 12, 64, 87, 34, 7, 0];
human(15,:)= [2, 12, 49, 52, 21, 4, 1];
human(16,:)= [0, 13, 33, 108, 64, 24, 2];
human(17,:)= [0, 1, 34, 65, 52, 26, 4];
human(18,:)= [1, 5, 79, 95, 50, 14, 1];
human(19,:)= [0, 10, 53, 74, 26, 20, 0];
human(20,:)= [0, 20, 73, 113, 38, 10, 0];
human(21,:)= [0, 5, 36, 54, 35, 16, 3];
human(22,:)= [0, 9, 66, 103, 60, 21, 0];
human(23,:)= [0, 10, 52, 82, 73, 24, 2];
human(24,:)= [0, 5, 29, 60, 31, 3, 1];
human(25,:)= [0, 4, 23, 63, 28, 5, 2];
human(26,:)= [0, 12, 71, 100, 49, 18, 0];
human(27,:)= [0, 13, 65, 88, 41, 6, 0];
human(28,:)= [0, 5, 34, 68, 50, 17, 0];
human(29,:)= [0, 22, 86, 86, 28, 9, 3]; % wrote 10 as first guess, but i think it's a typo
human(30,:)= [1, 9, 70, 87, 73, 19, 2];
human(31,:)= [0, 8, 51, 78, 50, 25, 0];
human(32,:)= [0, 16, 62, 96, 65, 19, 0];
human(33,:)= [0, 1, 18, 45, 31, 12, 10];
human(34,:)= [0, 9, 79, 114, 59, 8, 2];
human(35,:)= [0, 5, 12, 32, 22, 15, 4];
human(36,:)= [1, 17, 84, 103, 48, 13, 0];
human(37,:)= [0, 1, 12, 47, 48, 21, 0];
human(38,:)= [0, 12, 96, 91, 29, 4, 1];
human(39,:)= [0, 12, 87, 107, 54, 8, 0];
human(40,:)= [0, 9, 22, 52, 22, 6, 1];
human(41,:)= [1, 7, 53, 106, 44, 17, 0];
human(42,:)= [0,5,62,83,63,23,6];
human(43,:)= [0, 14, 70, 75, 47, 9, 8];
human(44,:)= [0, 6, 39, 49, 34, 8, 5];
human(45,:)= [0, 8, 68, 95, 56, 28, 4];
human(46,:)= [0, 10, 46, 76, 36, 19, 3];
human(47,:)= [0, 18, 75, 92, 2, 7, 4];
human(48,:)= [0, 8, 39, 76, 41, 18, 4];
human(49,:)= [0, 10, 48, 99, 48, 20, 2];
human(50,:)= [1, 13, 66, 83, 46, 14, 0];
human(51,:)= [0, 12, 64, 85, 59, 23, 6];
human(52,:)= [0, 16, 94, 87, 46, 4, 0];
figure(1);
title("Wordle stats, Reddit users. "+string(length(human))+" players. " + string(sum(human,'all')) + " games. u/valerionew");
humans = sum(human,1);
humans = humans./sum(humans).*100; % normaliz
[humanfit,gof]=fit([1:7]',humans','gauss1');
hold on;
bar([1:7],humans)
set(gca,'ColorOrderIndex',1)
%hf = plot(humanfit);
%hf.Color = "#0072BD";
xlabel("Attempts (7=fail)");
ylabel("Percentage of games");
sum(human,'all')
data = [robot; humans];
[robotfit,gof]=fit([1:7]',robot','gauss1');
figure(2)
hold on;
bar([1:7],data)
legend("Robot", "Humans");
set(gca,'ColorOrderIndex',1)
hf = plot(humanfit);
hf.Color = "#D95319";
rf = plot(robotfit);
rf.Color = "#0072BD";
title("Wordle solver guess (all 1309 words) vs human attempts: "+string(length(human))+" players, " + string(sum(human,'all')) + " games.");
xlabel("Attempts (7=fail)");
ylabel("Percentage of games");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment