https://github.com/timonus/presser
A tool for cheating at Letterpress
https://github.com/timonus/presser
Last synced: 11 months ago
JSON representation
A tool for cheating at Letterpress
- Host: GitHub
- URL: https://github.com/timonus/presser
- Owner: timonus
- Created: 2013-01-06T01:15:13.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2013-01-27T23:47:37.000Z (over 13 years ago)
- Last Synced: 2025-07-13T21:37:41.918Z (11 months ago)
- Language: Objective-C
- Size: 125 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Presser
A tool for cheating at [Letterpress](http://www.atebits.com/letterpress/).
There's one warning in main.m, which you need to fill in with the configuration of the board you're playing.
The app loads in the Letterpress dictionary, forms a tree out of it along with the provided game state, then scores every word in the tree. The result is a list of words sorted by highest point value. Scoring is naive to blocking off letters or removing blocks from letters the other player has gotten. It simply tries to get the maximum score given the current board state.
It's pretty ugly, sorry. I wrote it quickly to test some ideas.
## Sample Input

In main.m, this board would be represented as
```
NSString *characters = @"zerggixwodlhvhzxthktmkzur";
int values[] = {
1,0,2,0,2,
0,1,2,2,0,
1,1,0,0,1,
1,0,0,1,0,
2,1,1,0,1
};
```
## Not Working?
Presser depends on the [Letterpress Words repository](https://github.com/atebits/Words), don't forget to update your submodules
```
git submodule update --init
```