This program is used to solve OhHi puzzles.
OhHi is a zen style puzzle game developed by Q42.
This program includes three main components:
- A class for solving the board
- A wxPython GUI for playing with and testing the solver.
- A program to connect to an android device through ADB to directly play the game on device.
The GUI can simply be executed in python with python OhHi_GUI.py
.
This program has only been tested on a Google Pixel 2 XL. The grid coordinates in would need to be changed to work on other sized displays.
python OhHi_Phone.py <grid_size> [<number_of_games>]
The grid size can only be one of 4, 6, 8, 10, and 12. If the number of games is not provided, this will play games until terminated.
Before being used on a phone, the phone must have OhHi installed and open. The game must also be open past the main menu by selecting "Free play".
The variables top_left
and bottom_right
tell coordinates for the opposite corners of the top left and bottom right tiles.
game_start_loc
holds 5 coordinate pairs the tell the program where to tap to select a size of 4, 6, 8, 10, or 12 respectively.
Both of these variables need to be changed to adapt the program to work on a different screen size.
- Numpy
- wxPython
- ADB (In PATH)