Assembling a Commodore 64 Program's Machine Code, One Byte at a Time
3 points • 0 comments
From 7/3/2021, 7:40:00 PM till now, @James-Livesey has achieved 145 Karma Points with the contribution count of 63.
Recent @James-Livesey Activity
Assembling a Commodore 64 Program's Machine Code, One Byte at a Time
3 points • 0 comments
This is something I used for the "tweet your BASIC code" functionality in atto (https://jamesl.me/atto)... Trying to fit an advanced BASIC program in a single Tweet isn't too easy, but at least encoding it in Base 2048 beforehand is!
Example: https://twitter.com/jthecoder/status/1412848719737851905
It's only a requirement for content served inside the UK though; international content (such as BBC.com) is allowed to (and sometimes does) show ads because it's technically not covered by the licensing agreement for the UK.
Same, but with PowerPoint! It's amazing how versatile the Microsoft Office suite is for purposes other than productivity...
That's handy, thanks for letting me know! I assume that applications that are resumed from suspension can then continue checking for incoming phone calls and alert the user when necessary, much like how (from my 'experiments' with the PinePhone) pressing the power button to wake the phone will still allow applications to capture the keypress event.
How can one make the PinePhone detect incoming calls on a regular basis using this method? It looks like the code sleeps for minutes at a time, which is ideal for fetching notifications for IM apps etc. but not for detecting incoming calls (which usually last about 30 seconds iirc before timing out/going to voicemail).
I would assume that suspending and waking, say, every 10 seconds could allow for detecting incoming calls but not be as energy efficient (or in the worst case, more detrimental than just keeping the phone on)?
imo I'd implement this by not suspending (except for some kind of 'battery saver' mode) and just keeping the screen at 0% brightness (which I assume is one of the primary consumers of energy from the battery cell)...
Show HN: Hexle - A Wordle-like game where you guess a 16-bit hex int
4 points • 0 comments
Try tapping on the area where it says "Enter a number" — typically your browser should focus the input there on first load, but if you click off, the placeholder text will be shown instead.
Thanks! That's partly one of my ideas for the target audience, but of course to get the game's popularity rolling, it's not as easy pitching to CS educators/students as it is posting on Hacker News; so to get the game out there, I decided to post it here for now. Seems Bytle (and the newer Hexle I made about an hour ago) is doing the rounds on Twitter now, so it might become noticed by non-HNers soon!
You got it spot on! Thanks for sharing your ideas too — there's definitely a lot of potential with Wordle-like games! I've recently created a newer version of Hexle which is making its way up the Show HN list just like Bytle, so you might enjoy that, too! Hexle's a bit more challenging imo.
Thanks! /dev/null is getting full over here...!
Thought I'd inform you that (in a rush), I was motivated by your comment to make a more fun iteration of Bytle: https://jamesl.me/hexle/
Discussion here: https://news.ycombinator.com/item?id=30118898
Hello again! Particularly if you have come over here from Bytle's HN post: https://news.ycombinator.com/item?id=30082963
This time, I've (hope I have...) listened to the valuable feedback of Hacker News and made a game that is hopefully better and more enjoyable than Bytle. Bytle was to do with base-2 numbers, and this time, Hexle is to do with base-16 numbers. Plus, Hexle is more like Wordle in terms of its mechanics.
Please do me know of any bugs if you come across them (I've done a few tests to see if the game is playable, but there are likely to be loads of hidden bugs I haven't caught yet) here: https://github.com/James-Livesey/hexle
Oh, and good luck!
Show HN: Hexle - A Wordle-like game where you guess a 16-bit hex int
4 points • 1 comments
Thanks for your analysis of both Wordle and Bytle — when my friends and I came up with this game, we didn't expect the game to be in any form challenging compared to games that are similar in nature to it. It was mainly just a joke considering that it is trivial to find the value of a cell when there are only two states. The base-10 entry is designed to make it some way a bit more challanging than entering base-2, but of course isn't how Wordle and its clones normally work.
Your feedback is certainly valuable though — mayble Hexle could be a thing! I'm happy to give that idea away to anyone who's looking for the challange of implementing it. And as you say with modifying the domain space, adding some sort of requirement for the entered number would be a good addition, too.
I've implemented a change to the game's instructions that clarifies that the user needs to enter a denary (base-10) number and not binary (base-2). Hopefully that should make it a bit easier for people to understand how to play!
Good idea! Might add a limit to the number of chars the user can input. Thanks for your feedback!
Yeah, as I had now mentioned on the comment that's a parent to your comment, press the 'Done' button on iOS to submit your number!
On Safari, press the 'Done' button — I had to add a blur event to enable iOS users to play the game (due to the lack of enter key on the iOS numpad). Android users are unaffected since they have an enter key.
site design / logo © 2022 Box Piper