A minimalistic digital logic simulator · By Sebastian Lague
Tried Version 1 and that worked just fine.