HNHacker News
TopNewBestAskShowJobs

sergex

120 karma · joined July 5, 2018

I work on http://nandgame.com
submissionscomments
sergex··on Show HN: Online challenge: Build a CPU from scratch
Thanks for the suggestions, much appreciated.

Reset for clearing all components off the canvas, or for resetting the input signals and state? Or both?

sergex··on Show HN: Online challenge: Build a CPU from scratch
Thank you for noticing this error. I will add the necessary information.
sergex··on Show HN: Online challenge: Build a CPU from scratch
Great idea! I don't know the optimal solutions, only that each task can be solved. Perhaps someone smarter than me can prove that a certain solution is optimal. But I could record the solutions provided and show if someone else have solved the task with fewer components or less nand-gates.

It would also be cool to show the overall cost in nand-gates or even transistors. And to be able to show the solutions decomposed into only transistors and wires.

Didn't know Euclid the Game, but it seems very cool and close to what I wanted to achieve.

sergex··on Show HN: Online challenge: Build a CPU from scratch
You mean for just wiping all components from the canvas? That should be possible.
sergex··on Show HN: Online challenge: Build a CPU from scratch
Yes that is annoying. Also all progress is lost if you leave the page. I am considering saving the state in local storage so you can return to the page and continue where you left of. Also a great suggestion to save previous levels so you can go back and review them.
sergex··on Show HN: Online challenge: Build a CPU from scratch
The design does not seem to fully adhere to the spec. If you have output 0 and both w and d is 0, and then set d=1, then output changes to 1. But output should only change when w=1. Admittedly the specification is not very clearly written.
sergex··on Show HN: Online challenge: Build a CPU from scratch
Thank you. I'm using Angular, but no library beyond that. I was looking for a library for the diagram, but didn't find anything that suited my needs, so it is just custom code. I would like to find a library which could draw nicer arrows at least, since the diagram currently gets pretty confusing when there are many connections.
sergex··on Show HN: Online challenge: Build a CPU from scratch
Thank you. You are correct, this is a bug. Thank for pointing it out. Fixed now.
sergex··on Show HN: Online challenge: Build a CPU from scratch
I'm sorry, it does not work with touch yet.
sergex··on Show HN: Online challenge: Build a CPU from scratch
This is an attempt to make an educational online game, where the mission is to build a microprocessor starting from simple logic gates.

Hopefully it is both fun and challenging, while at the same time educational about some of the fundamental principles of how a CPU works.

It still lack some explanatory texts, but is should be playable as it is.

It is inspired by the first chapters of the brilliant Nand2tetris course (and I have gotten permission to use the same general CPU design). My hope is this is more accessible since it is web-based and does not require any text-based coding or CS background.

← PreviousPage 2 of 2