A python-based program that plays Bookworm Adventures.
Go to file
Matthew Barnes 7e360f33c7
Changed style of github badge
2021-10-22 21:07:07 +01:00
resources logo changes depending on state 2019-07-13 16:07:25 +01:00
.gitignore Updated gitignore 2020-03-13 16:18:21 +00:00
LICENSE Create LICENSE 2021-02-07 17:09:05 +00:00
README.md Changed style of github badge 2021-10-22 21:07:07 +01:00
Screenshot_1.png added icons and screenshots 2019-07-17 13:26:39 +01:00
Screenshot_2.png added icons and screenshots 2019-07-17 13:26:39 +01:00
Screenshot_3.png added a third screenshot 2019-07-17 13:52:39 +01:00
axosoft2.txt changed default threshold to 50 again 2019-07-17 12:40:30 +01:00
dependency_packages.txt added icons and screenshots 2019-07-17 13:26:39 +01:00
dictionary.py pylex now lets you load in custom dictionaries 2019-07-13 22:30:27 +01:00
form.ui changed "OCR Method" to "Themes" 2019-07-17 12:41:09 +01:00
form_controller.py added dark theme 2019-07-14 23:13:16 +01:00
form_view.py Edited tooltips for theme select 2020-03-13 16:00:44 +00:00
game.py Supports legit version of BA1 2020-03-13 15:34:06 +00:00
icon.ico added icons and screenshots 2019-07-17 13:26:39 +01:00
locked_object.py pylex reacts when bookworm adventures is closed 2019-07-13 16:55:47 +01:00
main.py added dark theme 2019-07-14 23:13:16 +01:00
misc.py wildcard tiles are now fully supported 2019-07-13 14:14:05 +01:00
requirements.txt Updated requirements again 2020-03-13 16:31:59 +00:00
update_view.bat added google tesseract functionality 2019-07-12 12:53:48 +01:00

README.md

logo

Available on GitHub License: GPL v3

What is this?

A python-based application that plays Bookworm Adventures.

It works by reading the screen and parsing the available letters based on the grid.

Then it will compute a list of possible words using the available letters, and will proceed to type out the words.

PyLex is compatible with both Volume 1 and Volume 2.

This uses libraries such as PyAutoGUI for locating letters and inputting words, and PyWin32 for locating the game window and fetching its position.

Releases

https://git.matt-barnes.co.uk/mb2g17/PyLex/releases

Setting up the project

Prerequisites

To set up the project you will need:

  • Python 3.7
  • Pip
  • Virtualenv

Setup

  1. Pull the repo and go into the repo git clone https://git.matt-barnes.co.uk/mb2g17/PyLex.git cd PyLex
  2. Create and activate a virtual environment virtualenv env env\Scripts\activate
  3. Install the requirements pip install -r requirements.txt

Running the project

To run PyLex, run the command: python main.py Make sure you've set up the project beforehand.

Creating a distribution

To bundle the project in an executable, run: pyinstaller --onefile --windowed --icon=icon.ico --name=PyLex main.py If you get the error "Failed to execute script pyi_rth_pkgres", then run: pip uninstall pyinstaller pip install https://github.com/pyinstaller/pyinstaller/archive/develop.zip ... and try again.

Developed with

Python 3.7.3

Windows 10 Education x64

Images

Screenshot1

Screenshot2

Screenshot3

Videos

Demonstration_video