All Projects → dchen327 → ruzzle-solver

dchen327 / ruzzle-solver

Licence: other
A python script that solves ruzzle boards

Programming Languages

python
139335 projects - #7 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to ruzzle-solver

saram
Get OCR in txt form from an image or pdf extension supporting multiple files from directory using pytesseract with auto rotation for wrong orientation. PYPI:
Stars: ✭ 51 (+10.87%)
Mutual labels:  ocr, tesseract, pytesseract
Qanswer
【Deprecated】🥇🥇🥇 冲顶大会等游戏答题助手,提供答题辅助决策 ,帮助顺利吃鸡
Stars: ✭ 326 (+608.7%)
Mutual labels:  ocr, adb, tesseract
Nkocr
🔎📝 This is a module to make specifics OCRs at food products and nutritional tables.
Stars: ✭ 15 (-67.39%)
Mutual labels:  ocr, tesseract, pytesseract
Tessdata fast
Fast integer versions of trained LSTM models
Stars: ✭ 221 (+380.43%)
Mutual labels:  ocr, tesseract
Tesseract Ocr For Php
A wrapper to work with Tesseract OCR inside PHP.
Stars: ✭ 2,247 (+4784.78%)
Mutual labels:  ocr, tesseract
Android Ocr
Experimental optical character recognition app
Stars: ✭ 2,177 (+4632.61%)
Mutual labels:  ocr, tesseract
Ocrtable
Recognize tables and text from scanned images that contain tables. 从包含表格的扫描图片中识别表格和文字
Stars: ✭ 155 (+236.96%)
Mutual labels:  ocr, tesseract
ScribeBot
A highly scriptable automation system full of cool features. Automate everything with a little bit of Lua.
Stars: ✭ 72 (+56.52%)
Mutual labels:  ocr, tesseract
Image2text
📋 Python wrapper to grab text from images and save as text files using Tesseract Engine
Stars: ✭ 243 (+428.26%)
Mutual labels:  ocr, tesseract
pmOCR
A wrapper for tesseract / abbyyOCR11 ocr4linux finereader cli that can perform batch operations or monitor a directory and launch an OCR conversion on file activity
Stars: ✭ 53 (+15.22%)
Mutual labels:  ocr, tesseract
MouseTooltipTranslator
chrome extension - When mouse hover on text, it shows translated tooltip using google translate
Stars: ✭ 93 (+102.17%)
Mutual labels:  ocr, tesseract
memento
Organize your meme image cluster in a better format using OCR from the meme to sort them using tesseract along with editing memes by segmenting them using OpenCV within a directory
Stars: ✭ 70 (+52.17%)
Mutual labels:  ocr, tesseract
Swiftytesseract
A Swift wrapper around Tesseract for use in iOS, macOS, and Linux applications
Stars: ✭ 170 (+269.57%)
Mutual labels:  ocr, tesseract
Ocr Table
Extract tables from scanned image PDFs using Optical Character Recognition.
Stars: ✭ 165 (+258.7%)
Mutual labels:  ocr, tesseract
Tesseract
Bindings to Tesseract OCR engine for R
Stars: ✭ 192 (+317.39%)
Mutual labels:  ocr, tesseract
Lambda Text Extractor
AWS Lambda functions to extract text from various binary formats.
Stars: ✭ 159 (+245.65%)
Mutual labels:  ocr, tesseract
Tesstrain
Train Tesseract LSTM with make
Stars: ✭ 251 (+445.65%)
Mutual labels:  ocr, tesseract
erpnext ocr
🐍 ⚗️ Optical Character Recognition using tesseract within Frappe.
Stars: ✭ 58 (+26.09%)
Mutual labels:  ocr, tesseract
Tesseract4android
Fork of tess-two rewritten from scratch to support latest version of Tesseract OCR.
Stars: ✭ 148 (+221.74%)
Mutual labels:  ocr, tesseract
Tesseract Macos
Objective C wrapper for the open source OCR Engine Tesseract (macOS)
Stars: ✭ 154 (+234.78%)
Mutual labels:  ocr, tesseract

Ruzzle Solver

Introduction:

Ruzzle is word game played on a 4x4 grid, where the player must attempt to find words to gain the maximum number of points possible in a fixed amount of time. Each letter has a value, and modifiers like double letter and triple word change scores of certain words. This script finds all possible words in a board, and sorts by score. At the bare minimum, the user can provide manual input of the board with or without modifiers like DL and TW, and it will find all words in the board. With pytesseract, the program can use OCR to grab the letters from the board one at a time (this will require some experimentation since we most likely have phone screens with different resolutions). If the user is too lazy to input the words by themselves, this script can also output a list of coordinates for use with AutoInput and Tasker. If the user's android is rooted, adb shell sendevent commands can also be used to autoswipe with better accuracy and speed. These adb shell commands should also work from a computer linked to the phone, and in that case shouldn't require root.

Board Solver

If you want the simplest version of this program, in which a 16 letter board is provided and all the top words are found, please run board_solver.py. By itself, this program requires a file called board.txt, and board.txt will contain the letters in the board and information about multipliers (optional). It will write all words sorted by score into a file called words.txt. The prefix files (prefixes2L.txt -> prefixes8L.txt) are required, as well as the dictionary (TWL06Trimmed.txt). All settings are stored in config.py. Type the board into board.txt, copying the format of the attached example board. The first 4 lines of board.txt should contain the letters of the board, all caps and separated by spaces. Line 5 is blank, and lines 6-9 contain information about multipliers. 2, 3, D, T, and - are DW, TW, DL, TL, and nothing respectively. If you don't want to input multipliers just set all 16 characters to '-'' (scores and word order won't be accurate). There are additional configuration options in config.py, such as changing which prefix files to use. These settings are found under the section 'BoardSolver settings'. The other settings in config.py can be safely ignored.

Here's an image of the code in action: the board is in the top right and the words are outputted in words.txt. ruzzle_bare_minimum

Here's the full program running on a rooted android:

ruzzle

Contributors

dchen327
philippeitis

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].