I’m trying to code a bot for a game similar to the japanese taiko game, in order to skip an annoying minigame. However, on a map with almost only lines (where you hold the key), it gets 252 “Great” and 14 “Good” ratings with 98.68% accuracy, but in a map with a lot of buttons (where you tap the key once), it gets 192 “Great”, 5 “Good”, and a staggering 49 “Misses” with 79.57% accuracy.
The game itself is a two-button (X and Y) rhythm minigame, which when hitting a “tap” button or finishing a “hold” line, shows an explosion the same color of the pressed button/line.
The “Good” mostly happen at the end of the “hold” sections, when it’s time to release the key.
The “Misses” mostly happen at the start or middle of the “tap” sections.
I’m first trying to fix the problem of the bot missing so often, and secondarily trying to make it always get “Great” with 100% accuracy. If possible, I’d appreciate a simple solution to automatically detect the area so that moving the window doesn’t result in inaccuracy. But if it’s too complex or resource-intensive, I can do without it.
My code is here: https://pastebin.com/0zdnhVTs
My code is a full rewrite of ChatGPT code after I read through and leaned it (refer to the Note at the end of this post), with only minimal remnants of ChatGPT code leftover (Line 25 and some comments). The game is not pixel-perfect, so I used an approach that checks for a “release color” to prevent accidentally releasing the key when the color was slightly off.
I use fixed pixel measurements because I do not understand “mss” or how to automatically detect the gameplay area.
I tried asking ChatGPT to help, but it didn’t produce anything of help, at most it made worse code, and I tried making threads on the Python Discord, which were unceremoniously ignored and auto-locked after hours of no response.
Note: I’m Neurodivergent and learn via exposure. I learn best through simple code exposure, and struggle with complex prose. For example, I understand “Use an if-else statement like this `if thing: … else: …`” much better than “To achieve the desired outcome, you should employ a conditional bifurcation to delineate the course of action…” Thanks in advance.
submitted by /u/DogwhistleStrawberry
[link] [comments]
r/learnpython I’m trying to code a bot for a game similar to the japanese taiko game, in order to skip an annoying minigame. However, on a map with almost only lines (where you hold the key), it gets 252 “Great” and 14 “Good” ratings with 98.68% accuracy, but in a map with a lot of buttons (where you tap the key once), it gets 192 “Great”, 5 “Good”, and a staggering 49 “Misses” with 79.57% accuracy. The game itself is a two-button (X and Y) rhythm minigame, which when hitting a “tap” button or finishing a “hold” line, shows an explosion the same color of the pressed button/line. The “Good” mostly happen at the end of the “hold” sections, when it’s time to release the key. The “Misses” mostly happen at the start or middle of the “tap” sections. I’m first trying to fix the problem of the bot missing so often, and secondarily trying to make it always get “Great” with 100% accuracy. If possible, I’d appreciate a simple solution to automatically detect the area so that moving the window doesn’t result in inaccuracy. But if it’s too complex or resource-intensive, I can do without it. My code is here: https://pastebin.com/0zdnhVTs My code is a full rewrite of ChatGPT code after I read through and leaned it (refer to the Note at the end of this post), with only minimal remnants of ChatGPT code leftover (Line 25 and some comments). The game is not pixel-perfect, so I used an approach that checks for a “release color” to prevent accidentally releasing the key when the color was slightly off. I use fixed pixel measurements because I do not understand “mss” or how to automatically detect the gameplay area. I tried asking ChatGPT to help, but it didn’t produce anything of help, at most it made worse code, and I tried making threads on the Python Discord, which were unceremoniously ignored and auto-locked after hours of no response. Note: I’m Neurodivergent and learn via exposure. I learn best through simple code exposure, and struggle with complex prose. For example, I understand “Use an if-else statement like this `if thing: … else: …`” much better than “To achieve the desired outcome, you should employ a conditional bifurcation to delineate the course of action…” Thanks in advance. submitted by /u/DogwhistleStrawberry [link] [comments]
I’m trying to code a bot for a game similar to the japanese taiko game, in order to skip an annoying minigame. However, on a map with almost only lines (where you hold the key), it gets 252 “Great” and 14 “Good” ratings with 98.68% accuracy, but in a map with a lot of buttons (where you tap the key once), it gets 192 “Great”, 5 “Good”, and a staggering 49 “Misses” with 79.57% accuracy.
The game itself is a two-button (X and Y) rhythm minigame, which when hitting a “tap” button or finishing a “hold” line, shows an explosion the same color of the pressed button/line.
The “Good” mostly happen at the end of the “hold” sections, when it’s time to release the key.
The “Misses” mostly happen at the start or middle of the “tap” sections.
I’m first trying to fix the problem of the bot missing so often, and secondarily trying to make it always get “Great” with 100% accuracy. If possible, I’d appreciate a simple solution to automatically detect the area so that moving the window doesn’t result in inaccuracy. But if it’s too complex or resource-intensive, I can do without it.
My code is here: https://pastebin.com/0zdnhVTs
My code is a full rewrite of ChatGPT code after I read through and leaned it (refer to the Note at the end of this post), with only minimal remnants of ChatGPT code leftover (Line 25 and some comments). The game is not pixel-perfect, so I used an approach that checks for a “release color” to prevent accidentally releasing the key when the color was slightly off.
I use fixed pixel measurements because I do not understand “mss” or how to automatically detect the gameplay area.
I tried asking ChatGPT to help, but it didn’t produce anything of help, at most it made worse code, and I tried making threads on the Python Discord, which were unceremoniously ignored and auto-locked after hours of no response.
Note: I’m Neurodivergent and learn via exposure. I learn best through simple code exposure, and struggle with complex prose. For example, I understand “Use an if-else statement like this `if thing: … else: …`” much better than “To achieve the desired outcome, you should employ a conditional bifurcation to delineate the course of action…” Thanks in advance.
submitted by /u/DogwhistleStrawberry
[link] [comments]