-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RFE: King Digital puzzles (Premier, Joseph, Sheffer) in JPZ format #115
Comments
Good news: We've already got a jpz parser in here, handled in the I've just confirmed that at least one of your examples works with the |
Oh and to unpack a little about how I tested it, this is what I did in a Python REPL:
|
Hi Eric. |
@thisisparker! It's been a while since I've done python. I'll have to kick off the rust and give it a try. @mixographer Dude, small world. |
@ehcloninger OK! I'll leave it to you but if you have questions or anything feel free to ask. If it would be helpful, I'd be happy to look at or poke at an incomplete PR, as well. |
@thisisparker I'm having a problem launching xword_dl.py. It gets to line 16 Happens both on Windows and Mac. I'm using VSCode with Python 3.11.5 on both. If I'm in the python command line in that folder, I can issue the command as Do you have special settings that make this work, or perhaps a HOWTO on the dev stuff? Thanks |
@ehcloninger yeah, I think this is "standard" Python weirdness that I take for granted. It's probably a good idea for me to write out more of a contributions HOWTO in the readme or somewhere. In the meantime, I think this particular issue would probably be addressed by running As you note, you can also It's possible I'm doing something non-standard with the relative imports and that I should change that approach! Some of this is vestigial from a big reorganization of the package structure I did last year, and tbh I find a lot of this packaging stuff confusing and the resources explaining it are often conflicting. For me though, the |
Thank you for the details, @thisisparker. That should be enough info to make a dent. As I'm learning Python (and how to do things the "python way"), I find it helps to have step-wise debugging in VS Code. As for synchronous interactions, I'm available on Teams with this user handle on outlook dot com. Ditto with the Google things and Discord. |
@thisisparker Just a quick note to say I solved my VS Code debugging issue with 3 lines of gankiness that I found on StackOverflow. I'll be sure not to check that bit in my PR. Totally understand about how code grows and technical debt creeps up on us. This is a bit of fun and my job fortunately doesn't depend on it. |
Partial solution. Haven't tested fully. Will follow up |
Hi @thisisparker Thanks for including #117 in the latest builds. Do I need to do anything to the PR for this issue? I notice I have the "pull remote" sync from your repo to mine in the PR, so if that's an issue, I can do a clean PR. Also, do you want the doc fixes as a separate PR? I was just checking in as I needed to pull down more puzzles to satisfy my addiction. Not in a hurry. |
I use the Forkyz app on Android, which was forked from Shortyz. That app can download puzzles directly from King Digital Features. You can specify certain dates in the URL, so it's not always the latest.
The format of the request is
https://puzzles.kingdigital.com/jpz/[feature]/YYYYMMDD.jpz
Where [feature] is Premier, Joseph, Sheffer.
Sheffer and Joseph are a daily, Monday thru Saturday
https://puzzles.kingdigital.com/jpz/Joseph/20230811.jpz
https://puzzles.kingdigital.com/jpz/Joseph/20230812.jpz
https://puzzles.kingdigital.com/jpz/Sheffer/20230811.jpz
Premier is a weekly on Sunday
https://puzzles.kingdigital.com/jpz/Premier/20230806.jpz
https://puzzles.kingdigital.com/jpz/Premier/20230813.jpz
This would require a parser for the JPZ format, which looks to be a simple XML doc with a metadata section that could map to the .puz output. Sample file attached.
20230811.jpz.txt
The text was updated successfully, but these errors were encountered: