Hacker News new | past | comments | ask | show | jobs | submit login

It looks neat but I could not figure out what exactly was happening.

It might help if you did some smaller programs first where it is clear what the numbers in the grid really mean. Do those numbers map over (assemble) to the instructions?

I guess they do but I never could find a table that said "store" is this number...

It does look cool though!




On the page with the editable grid, https://anchovieshat.github.io/Q8/q8.html there's a table that maps numbers to instructions, and gives a brief description. It wraps below the grid to better support smaller screens. If you have a larger screen, you can expand the browser window, or if not, scroll down the page, and it should all be there for you.

In addition, once you have filled in the boxes a little, you can step through the code and the blue box under the grid will give you another, very brief bit on the instruction that your program counter is on.

Thanks for asking!


What exactly is one expected to do in order to solve say the very first puzzle? I can click on the grid to highlight a cell but I can't alter the contents.

If I use the buttons to run the existing program it does nothing but check if register A is zero, jumps to cell 254 and executes the error instruction.

There is something I'm missing but perhaps what I am missing is not so obvious.


I think this is meant to be a "hello world" level puzzle. You literally just click the cells and type to edit them.

Are you sure you can't edit once you highlight a cell? If so that's probably a bug.


It's inconsistent for me - it seems to sometimes get stuck in a state where I can't update any of the cells.

Sometimes it will allow me to update the cells but whatever I type merely appends to the existing contents with no obvious way to clear an individual cell.


Press backspace to delete a character inside a cell.


That's the very first thing I tried and it wasn't working at all for me earlier. Backspace was navigating to the previous page.

Now it seems to work... sort of... sometimes it'll clear one of the characters in the cell and sometimes instead the global handler traps it and attempts to navigate to the previous page in my web history.


I believe I've corrected the backspace bug with a little help from a pull request, preventing default behavior and patching it through the same route the delete key follows. My machine doesn't have a backspace key, so I missed it during testing. Thanks for the heads up!




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: