Simple program to analyze reddit r/place 2022 or 2023 contributions
The program can search for users who edited the canvas in certain areas or show info about edits of a user The number of pixels placed total and info about pixels that made it to the final image and the pixels that survived to the actual end of the r/place are shown
Program takes a single command line argument as the location of a file used to configure the program, if no file is specified default of 'config.toml' is used. Configuration is done using TOML for which documentation can be found at https://toml.io/
Sample configuration file is provided in the repository as config.toml
Configuration file needs to contain the location of the CSV file used to store canvas edits, compressed archive of the 2022 file can be downloaded from Reddit for 2023 split files can be found here you need to download all the files and combine uncompressed files to single file with headers only from the first file
csv_locationdefines the location of the uncompressed CSV fileuser_idWhich defines the hashed user id of the user we want to analyze contributions for, if you do not know the user id hash program can find potential users based on users who edited areas on the canvasno_edits_outsideWhich defines if users who have edits outside selected areas should be removed from the list of potential users, default is 'true'search_areasis array of tables that defines the areas that are to be searchedstart_timeOptional, Defines the earliest time user can have edited a pixel in the search areaend_timeOptional, Defines the latest time user can have edited a pixel in the search areais_optionalOptional, Do not remove users who have edits in area but do not require edits in the areacoloursOptional, Define colours which the edits can use, TOML string arrayareaDefines the edges of the area to searchleftX-coordinate of the left edge of the search areatopY-coordinate of the top edge of the search arearightX-coordinate of the right edge of the search areabottomY-coordinate of the bottom edge of the search area