前言
之前在网上找到的一个逻辑游戏NandGame
它官方介绍是这样的
The Nand Game takes you though building a working computer, starting from the most basic components. It does not require any prerequisites, in particular it does not require any previous knowledge about computer architecture or software, and does not require math skills beyond addition and subtraction. It does require some patience—some of the tasks might take a while to solve.
玩家需要从最开的Nand运算开始(输入两个1时输出0,其他输入均返回1)和Inv运算(取反),一步步实现And、Or、Xor,后面还要实现寄存器、计数器,最后一步是实现CPU,我自己玩了一下,这里存一下自己的一些答案