6 pointsby laurentiurad2 hours ago4 comments
  • Unical-Aan hour ago
    Chip Builder is a brilliant concept for teaching low-level logic. How did you handle the gate simulations? Is it a custom engine or are you using something like a logic circuit library under the hood?
    • laurentiuradan hour ago
      Thanks a lot!

      I have created my own engine for testing the simulations in TypeScript. There is no external logic circuit library under the hood.

      The simulation itself is tick-based with a light event-driven flavor. Each tick I compute an evaluation order using a topological sort of the circuit graph (based on wire connections). Then I iterate through components in that order, gathering inputs from connected wires. Each component runs an evaluate() function, producing outputs and a nextState. Outputs propagate through wires immediately within the same tick.

  • laurentiurad2 hours ago
    In the article I have also talked about a different game as well that teaches players how chips work. I have added that here too: https://select.supply/game/chipbuilder.
  • anbieter27an hour ago
    Oh what a blast from the past!!

    The game looks awesome but I think it's missing some memory challenges, like recognizing the a song for example. Consider adding those as well.

    • laurentiuradan hour ago
      Thank you so much! I have this on my list, so I will try to add this tonight.
  • victor10111011an hour ago
    this is great!