hatemfaheem / water-sorting-ai-player

A fully automated AI player that plays water sorting puzzle game on the connected Android phone
2 stars 1 forks source link

can you use it on other games? #2

Open ChickenBudha opened 1 month ago

ChickenBudha commented 1 month ago

can you use it on other games? if not how do i configure it to make it work with other water sort puzzle games?

hatemfaheem commented 1 month ago

Can you use it on other games?

The same code probably no, the same concepts yes. So, this is a hangman game where the same image processing concepts are used, but the solving algorithm is different. Also it has a fundamental difference that it's doing multiple turna of (scan/solve). As opposed to water storing in which we do single scan, plan and solve.

https://github.com/hatemfaheem/hangman-ai-player

Can you use in other versions of the same game?

Ideally, yes. You can tinker with these values to be able to differentiate the different parts of the screen. But make sure to read the scanner.py code and understand to be able to configure these values. This can be tricky but should be doable 100% from within the scanner.py file. As long as the game has the same rules.

https://github.com/hatemfaheem/water-sorting-ai-player/blob/4ecce5dc47aaa509de2f67eb37c388b792ac564a/src/scanner/scanner.py#L22