NandGame

前言

之前在网上找到的一个逻辑游戏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,我自己玩了一下,这里存一下自己的一些答案

答案

Inv

And

Or

Xor

Half Adder

Full Adder

Add n dight numbers

Zero

Sub

Inc

<0

Selector

Latch

Data flip-flop

Register

Counter

Switch

RAM

ALU input

ALU

Condition

Combined State

Instruction Decoder

Execution Engine

Program Engine

CPU

后记

写这个的时候发现这个网站已经新出了不少新题目了,之前有些可能换了名称