{"id":21320961,"url":"https://github.com/aky91/lumberjack-game-bot","last_synced_at":"2025-03-15T22:42:09.836Z","repository":{"id":81631409,"uuid":"274038318","full_name":"aky91/LumberJack-Game-Bot","owner":"aky91","description":"Bot to play Lumberjack","archived":false,"fork":false,"pushed_at":"2020-06-22T05:30:04.000Z","size":8,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-22T11:43:14.524Z","etag":null,"topics":["gamebot","python3","telegram"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aky91.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-06-22T04:19:08.000Z","updated_at":"2020-06-22T05:30:06.000Z","dependencies_parsed_at":null,"dependency_job_id":"b1ea79ff-2a41-4e50-af7b-a17753127464","html_url":"https://github.com/aky91/LumberJack-Game-Bot","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aky91%2FLumberJack-Game-Bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aky91%2FLumberJack-Game-Bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aky91%2FLumberJack-Game-Bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aky91%2FLumberJack-Game-Bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aky91","download_url":"https://codeload.github.com/aky91/LumberJack-Game-Bot/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243801609,"owners_count":20350106,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["gamebot","python3","telegram"],"created_at":"2024-11-21T19:55:40.756Z","updated_at":"2025-03-15T22:42:09.830Z","avatar_url":"https://github.com/aky91.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LumberJack-Game-Bot\nBot to play LumberJack\n\nLumberJack is an online game played via telegram bot(for more details see https://telegram.games/telegram-games/lumberjack/)\n\nThis bot plays the game by analysing the screenshots.\n\n## Prerequisites\n\n### 1. Finding Coordinates of the Region of Interest \n   * Open the Lumberjack Game and take a screenshot. \n   * Find the Region of Interest and get the coordinates of upper left point and bottom right point.\n   * Update the values in the game variable \"gameDimension\"\n   \n### 2. Finding Coordinates of Game Character's Head on the left and right side of the tree\n   * Using \"img.show()\" see the image captured and get the coordinates of head position on the left and right side of the tree\n   * Update the values in the game variables \"leftPoint\" and \"rightPoint\"\n   \n\n## Steps to run\n\n1. Run the python script(make sure that all the imported libraries are available)\n2. Open the lumberjack game and click play\n3. Keep pressing the \u0026uparrow; key to play\n4. Press \u0026downarrow; to terminate the bot\n\n## Major Challenge\nAfter cutting the tree, how long should the bot wait\n\n### Approach#1: Static wait time\nExperimentally found to be around 0.15 second with a max score of 246\nNote: This value may differ based on factors like framerate, CPU load, etc.\n\n### Approach#2: Dynamic wait time\nFiguring out the amount of decay is challenging\nDifficult to find manually\n\n### Approach#3: Monitor change in height of the lowest branch\n  Assumption: when the tree is cut, the height of the lowest branch is reduced\n  \n  Problem: there is a whole animation of tree height reducing\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faky91%2Flumberjack-game-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faky91%2Flumberjack-game-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faky91%2Flumberjack-game-bot/lists"}