Skip to content

Instantly share code, notes, and snippets.

@orumin
Last active February 6, 2025 11:54
Show Gist options
  • Save orumin/ec35cc3f25a6403582f59fb74af6197b to your computer and use it in GitHub Desktop.
Save orumin/ec35cc3f25a6403582f59fb74af6197b to your computer and use it in GitHub Desktop.
Optimal answer for Nandgame.com

Invert

01 inv

And

02 and

Or

03 or

Xor

04 xor

Half Adder

05 ha

Full Adder

06 fa

Multi-bit Adder

07 mfa

Increment

08 inc

Subtraction

09 sub

Equal to Zero

10 is zero

Less than Zero

11 is neg

Selector

12 sel

Switch

13 sw

Latch

14 latch

Data Flip-Flop

15 dff

Register

16 reg

Counter

17 counter

RAM

18 ram

Unary ALU

19 ualu

ALU

20 alu

Opcodes

21 opcode

Condition

22 cond

Combined Memory

23 mem

Instruction Decoder

24 inst decoder

Control Unit

25 cu

Program Engine

26 pe

Computer

27 comp

Input and Output

28 io

Nor

29 nor

Xor

30 xnor

Left Shift

31 shl

Multiplication

32 01 shl4
32 02 add16 1
32 03 mul4
32 04 mul16
@Ochiruko
Copy link

The switch isn't optimal. Other than that, your solutions seem awesome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment