From 22b65ee464024dec00c0986de0a9fe3ec496f028 Mon Sep 17 00:00:00 2001 From: Kuz_ <37791516+Kuz-zzz@users.noreply.github.com> Date: Tue, 10 Dec 2024 11:39:18 +0500 Subject: [PATCH] Fix typos --- index.html | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/index.html b/index.html index 0148519..f09c20d 100644 --- a/index.html +++ b/index.html @@ -14,7 +14,7 @@

TerraBool

A Terraria boolean function minifier

About

-

This app is made to exploit how logic gates and wires behave in Terraria. The main property being how signals don't necessarily turn on a device when power is provided, but rather toogle the on/off state. This property can be used to make circuits, that maximizes use of XOR logic, as connecting two wires together is the same as putting them through an XOR gate.

+

This app is made to exploit how logic gates and wires behave in Terraria. The main property being how signals don't necessarily turn on a device when power is provided, but rather toggle the on/off state. This property can be used to make circuits, that maximizes use of XOR logic, as connecting two wires together is the same as putting them through an XOR gate.

@@ -51,14 +51,14 @@

How to use the minifier

1110x 1111x - ingame example of the function + in-game example of the function

Type in the output values for the function as a binary number. The given truth table would be entered as xxx0011011001100. (The x'es are don't cares.)

How to interpret a generated boolean function.

First, you must be familiar with logical operations AND(∧), OR(∨), NOT(¬), XOR(⊕), XNOR(⨀).

-

There are two kinds of XOR used in this app. One is the "parity function" XOR, which will be used without the gate in Terraria, and is implied in the result by writing inputs right after eachother. The other is the "Turns on when exactly one lamp is active" XOR, which means that you have to use that gate in the game, denoted by .

+

There are two kinds of XOR used in this app. One is the "parity function" XOR, which will be used without the gate in Terraria, and is implied in the result by writing inputs right after each other. The other is the "Turns on when exactly one lamp is active" XOR, which means that you have to use that gate in the game, denoted by .

Using the function generated from the example table, we get "¬c ⊕ ¬ac ⊕ ¬cd ⊕ acd"

Here's how this function translates into Terraria

¬c @@ -69,12 +69,12 @@

Here's how this function translates into Terraria

   acd

- The operation connecting the terms show which logic gate to use ingame.
+ The operation connecting the terms show which logic gate to use in-game.
The terms show which inputs connect to a single logic gate lamp.
The negation sign in front of a term means that the gate lamp should be in an "ON" state

- Not all functions can be expressed with a single logic gate. In these cases, the app will list functions in two columns. choose one from each column, create the two gates ingame, and combine their outputs with a common wire. + Not all functions can be expressed with a single logic gate. In these cases, the app will list functions in two columns. choose one from each column, create the two gates in-game, and combine their outputs with a common wire.

(November 2023 update) This version now lists all equivalent functions!

@@ -88,4 +88,4 @@

(November 2023 update) This version now lists all equivalent functions!

- \ No newline at end of file +