<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://dwarffortresswiki.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Madmadmadmage</id>
	<title>Dwarf Fortress Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://dwarffortresswiki.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Madmadmadmage"/>
	<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php/Special:Contributions/Madmadmadmage"/>
	<updated>2026-10-14T03:16:01Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.35.11</generator>
	<entry>
		<id>https://dwarffortresswiki.org/index.php?title=40d_Talk:Computing&amp;diff=28869</id>
		<title>40d Talk:Computing</title>
		<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php?title=40d_Talk:Computing&amp;diff=28869"/>
		<updated>2008-01-05T01:22:29Z</updated>

		<summary type="html">&lt;p&gt;Madmadmadmage: /* Fluid logic gates */  Aaargh. Dyslexia attacks. Many of them.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;I created this page because I think it's a very interesting part of the game for advanced players.  I'm not at all familiar with creating wiki pages, so if someone else who was familiar with the concepts could write a section or two themselves, that would be grand.  Right now I think it's been proven possible to create logical input and output gates using fluid dynamics, axles and gears, and even the movements of dwarves utilizing pressure plates.&lt;br /&gt;
&lt;br /&gt;
It was on the 4th of Galena 1097 that the Fortress 'The Net of Skies' became self-aware.  Panicked mechanics attempted to disengage the mechanisms, but the fortress interpreted this as an attack and designated all Dwarves as hostile... --[[User:WyldKarde|WyldKarde]] 13:17, 23 November 2007 (EST)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:A suggested component: The one-use lever.&lt;br /&gt;
&lt;br /&gt;
 ó _X_ ___ / = ramp X = door&lt;br /&gt;
 #&amp;quot; ¯ /### &amp;quot; = bridge&lt;br /&gt;
 #########&lt;br /&gt;
&lt;br /&gt;
:The lever has a Pull The Lever repeat job on it. The door only opens when access is required. Upon being pulled, the lever opens the bridge and drops the dwarf that pulled it. -- [[User:Zaratustra|Zaratustra]] 14:56, 23 November 2007 (EST)&lt;br /&gt;
:Problem detected: the lever doesn't obstruct, so the dwarf can be left hanging on the lever's tile.&lt;br /&gt;
&lt;br /&gt;
I think we should strive to include an example of an NAND gate and/or a NOR gate for each style since that's the bare minimum for operation.--[[User:AlBorland|AlBorland]] 22:09, 23 November 2007 (EST)&lt;br /&gt;
&lt;br /&gt;
== Machine logic ==&lt;br /&gt;
&lt;br /&gt;
The machine logic gates as they stand are incomplete.  The inputs are levers, but the outputs are machine components.  In order to connect a machine logic gate to another gate, the machine signal needs to be converted back into a lever signal.  The only way I can see to do that is with a water tank, a pump, and a pressure plate. --[[User:Peristarkawan|Peristarkawan]] 12:38, 28 November 2007 (EST)&lt;br /&gt;
&lt;br /&gt;
== Anthills ==&lt;br /&gt;
&lt;br /&gt;
Kudos to whoever mods ants to be trainable for borg machines...  Hex anyone? :D [[User:N35t0r|N35t0r]] 20:28, 8 December 2007 (EST)&lt;br /&gt;
: This would make that person my favoritest ever.  --[[User:Geofferic|Geofferic]] 01:36, 9 December 2007 (EST)&lt;br /&gt;
: Agreed. [[User:Madmadmadmage|Madmadmadmage]] 15:13, 9 December 2007 (EST)&lt;br /&gt;
&lt;br /&gt;
== Fluid logic gates ==&lt;br /&gt;
&lt;br /&gt;
Link to original information is at [[User:Madmadmadmage/Logic_Gates]]. Moved to clean up page.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Have you tested these at all? I translated your multi-level NOT gate into a form I could understand better after designing some gates myself, and looked at it. It doesn't look to me like it would work at all - First, water flows diagonally, so the water would just flow around the floodgate. Second, if water didn't flow diagonally, and you opened the floodgate because of an input signal, water from the reservoir would then hold the floodgate open by covering the pressure plate even if you shut off the input signal. You'd also need to do something other than just have the drain always open or you might not even trigger the pressure plate because it's draining too fast. --[[User:SL|SL]] 19:17, 23 December 2007 (EST)&lt;br /&gt;
&lt;br /&gt;
No, I did not test any of these. I forgot that water flows around corners; I usually work with straight passages and put my gates in places where it doesn't matter. I'll fix that. As for draining water, you're correct on one point: the water would drain off too fast to trigger the plates. It would drain out to one, so the part about it not draining out isn't a problem. The draining-too-fast problem can also be solved: set the plate to activate on any depth-two water. That would mean it would take a tiny bit longer to drain (although not much), but it would also make it open if any water at all were coming to the input. Additionally, minimizing delays would be very, very useful. Remember, these don't have to be all separated like I have them. You could design these with everything compressed into three-long channels (the minimum length of a NAND gate plus an input), which would greatly optimize performance. Maybe using something like an aquifer for the water source would also help. I'll have to build a fortress specifically to test fluid gates (translate as: dig through aquifer). Give me a few weeks. [[User:Madmadmadmage|Madmadmadmage]] 02:14, 27 December 2007 (EST)&lt;br /&gt;
&lt;br /&gt;
I've finished my own logic gates now - designed, built, and tested them all. They transfer signals between gates using mechanisms rather than water flow, but use water internally for processing logic. In addition to the standard gates (NOT, AND, OR, XOR, NAND, NOR), I've also made repeaters (repeatedly toggle two output signals) and memory gates (one input signal sets the gate's output to ON, the other input signal resets it to OFF - this is useful to replace one-use pressure plates with resettable versions). They only need to be built on top of a murky pool (with water in it), or an aquifer, brook, stream, river, dwarf-made cistern, whatever, and require power for one or two pumps each. I've posted them here [[User:SL/Logic_Gates]] for now, with all the information needed to build and use them, and advice on doing so. --[[User:SL|SL]] 13:30, 4 January 2008 (EST)&lt;br /&gt;
&lt;br /&gt;
These look really good to me. Since I rarely use screw pumps, I never even thought of using using them. They're slower to build than simple channels, but they're faster, more efficient, and far more predictable. Good idea. Secondarily, I'm moving my stuff to another page to make everything neater. Links to [[User:Madmadmadmage/Logic_Gates]] here and at the top of the section. [[User:Madmadmadmage|Madmadmadmage]] 20:19, 4 January 2008 (EST)&lt;/div&gt;</summary>
		<author><name>Madmadmadmage</name></author>
	</entry>
	<entry>
		<id>https://dwarffortresswiki.org/index.php?title=40d_Talk:Computing&amp;diff=28868</id>
		<title>40d Talk:Computing</title>
		<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php?title=40d_Talk:Computing&amp;diff=28868"/>
		<updated>2008-01-05T01:21:52Z</updated>

		<summary type="html">&lt;p&gt;Madmadmadmage: /* Fluid logic gates */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;I created this page because I think it's a very interesting part of the game for advanced players.  I'm not at all familiar with creating wiki pages, so if someone else who was familiar with the concepts could write a section or two themselves, that would be grand.  Right now I think it's been proven possible to create logical input and output gates using fluid dynamics, axles and gears, and even the movements of dwarves utilizing pressure plates.&lt;br /&gt;
&lt;br /&gt;
It was on the 4th of Galena 1097 that the Fortress 'The Net of Skies' became self-aware.  Panicked mechanics attempted to disengage the mechanisms, but the fortress interpreted this as an attack and designated all Dwarves as hostile... --[[User:WyldKarde|WyldKarde]] 13:17, 23 November 2007 (EST)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:A suggested component: The one-use lever.&lt;br /&gt;
&lt;br /&gt;
 ó _X_ ___ / = ramp X = door&lt;br /&gt;
 #&amp;quot; ¯ /### &amp;quot; = bridge&lt;br /&gt;
 #########&lt;br /&gt;
&lt;br /&gt;
:The lever has a Pull The Lever repeat job on it. The door only opens when access is required. Upon being pulled, the lever opens the bridge and drops the dwarf that pulled it. -- [[User:Zaratustra|Zaratustra]] 14:56, 23 November 2007 (EST)&lt;br /&gt;
:Problem detected: the lever doesn't obstruct, so the dwarf can be left hanging on the lever's tile.&lt;br /&gt;
&lt;br /&gt;
I think we should strive to include an example of an NAND gate and/or a NOR gate for each style since that's the bare minimum for operation.--[[User:AlBorland|AlBorland]] 22:09, 23 November 2007 (EST)&lt;br /&gt;
&lt;br /&gt;
== Machine logic ==&lt;br /&gt;
&lt;br /&gt;
The machine logic gates as they stand are incomplete.  The inputs are levers, but the outputs are machine components.  In order to connect a machine logic gate to another gate, the machine signal needs to be converted back into a lever signal.  The only way I can see to do that is with a water tank, a pump, and a pressure plate. --[[User:Peristarkawan|Peristarkawan]] 12:38, 28 November 2007 (EST)&lt;br /&gt;
&lt;br /&gt;
== Anthills ==&lt;br /&gt;
&lt;br /&gt;
Kudos to whoever mods ants to be trainable for borg machines...  Hex anyone? :D [[User:N35t0r|N35t0r]] 20:28, 8 December 2007 (EST)&lt;br /&gt;
: This would make that person my favoritest ever.  --[[User:Geofferic|Geofferic]] 01:36, 9 December 2007 (EST)&lt;br /&gt;
: Agreed. [[User:Madmadmadmage|Madmadmadmage]] 15:13, 9 December 2007 (EST)&lt;br /&gt;
&lt;br /&gt;
== Fluid logic gates ==&lt;br /&gt;
&lt;br /&gt;
Link to original information is at [[User:Madmadmadmage/Logic_Gates]]. Moved to clean up page.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Have you tested these at all? I translated your multi-level NOT gate into a form I could understand better after designing some gates myself, and looked at it. It doesn't look to me like it would work at all - First, water flows diagonally, so the water would just flow around the floodgate. Second, if water didn't flow diagonally, and you opened the floodgate because of an input signal, water from the reservoir would then hold the floodgate open by covering the pressure plate even if you shut off the input signal. You'd also need to do something other than just have the drain always open or you might not even trigger the pressure plate because it's draining too fast. --[[User:SL|SL]] 19:17, 23 December 2007 (EST)&lt;br /&gt;
&lt;br /&gt;
No, I did not test any of these. I forgot that water flows around corners; I usually work with straight passages and put my gates in places where it doesn't matter. I'll fix that. As for draining water, you're correct on one point: the water would drain off too fast to trigger the plates. It would drain out to one, so the part about it not draining out isn't a problem. The draining-too-fast problem can also be solved: set the plate to activate on any depth-two water. That would mean it would take a tiny bit longer to drain (although not much), but it would also make it open if any water at all were coming to the input. Additionally, minimizing delays would be very, very useful. Remember, these don't have to be all separated like I have them. You could design these with everything compressed into three-long channels (the minimum length of a NAND gate plus an input), which would greatly optimize performance. Maybe using something like an aquifer for the water source would also help. I'll have to build a fortress specifically to test fluid gates (translate as: dig through aquifer). Give me a few weeks. [[User:Madmadmadmage|Madmadmadmage]] 02:14, 27 December 2007 (EST)&lt;br /&gt;
&lt;br /&gt;
I've finished my own logic gates now - designed, built, and tested them all. They transfer signals between gates using mechanisms rather than water flow, but use water internally for processing logic. In addition to the standard gates (NOT, AND, OR, XOR, NAND, NOR), I've also made repeaters (repeatedly toggle two output signals) and memory gates (one input signal sets the gate's output to ON, the other input signal resets it to OFF - this is useful to replace one-use pressure plates with resettable versions). They only need to be built on top of a murky pool (with water in it), or an aquifer, brook, stream, river, dwarf-made cistern, whatever, and require power for one or two pumps each. I've posted them here [[User:SL/Logic_Gates]] for now, with all the information needed to build and use them, and advice on doing so. --[[User:SL|SL]] 13:30, 4 January 2008 (EST)&lt;br /&gt;
&lt;br /&gt;
These look really good to me. Since I rarely use screw pumps, I never even thought of using using them. They're slower to build than simple channels, but they're faster, more efficient, and far more predictable. Good idea. Secondarily, I'm moving my stuff to another page to make everything neater. Link to [[User:Madmadmadmage/Logic_Gates]] here and at the top of the section. [[User:Madmadmadmage|Madmadmadmage]] 20:19, 4 January 2008 (EST)&lt;/div&gt;</summary>
		<author><name>Madmadmadmage</name></author>
	</entry>
	<entry>
		<id>https://dwarffortresswiki.org/index.php?title=40d_Talk:Computing&amp;diff=28867</id>
		<title>40d Talk:Computing</title>
		<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php?title=40d_Talk:Computing&amp;diff=28867"/>
		<updated>2008-01-05T01:21:39Z</updated>

		<summary type="html">&lt;p&gt;Madmadmadmage: /* Fluid logic gates */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;I created this page because I think it's a very interesting part of the game for advanced players.  I'm not at all familiar with creating wiki pages, so if someone else who was familiar with the concepts could write a section or two themselves, that would be grand.  Right now I think it's been proven possible to create logical input and output gates using fluid dynamics, axles and gears, and even the movements of dwarves utilizing pressure plates.&lt;br /&gt;
&lt;br /&gt;
It was on the 4th of Galena 1097 that the Fortress 'The Net of Skies' became self-aware.  Panicked mechanics attempted to disengage the mechanisms, but the fortress interpreted this as an attack and designated all Dwarves as hostile... --[[User:WyldKarde|WyldKarde]] 13:17, 23 November 2007 (EST)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:A suggested component: The one-use lever.&lt;br /&gt;
&lt;br /&gt;
 ó _X_ ___ / = ramp X = door&lt;br /&gt;
 #&amp;quot; ¯ /### &amp;quot; = bridge&lt;br /&gt;
 #########&lt;br /&gt;
&lt;br /&gt;
:The lever has a Pull The Lever repeat job on it. The door only opens when access is required. Upon being pulled, the lever opens the bridge and drops the dwarf that pulled it. -- [[User:Zaratustra|Zaratustra]] 14:56, 23 November 2007 (EST)&lt;br /&gt;
:Problem detected: the lever doesn't obstruct, so the dwarf can be left hanging on the lever's tile.&lt;br /&gt;
&lt;br /&gt;
I think we should strive to include an example of an NAND gate and/or a NOR gate for each style since that's the bare minimum for operation.--[[User:AlBorland|AlBorland]] 22:09, 23 November 2007 (EST)&lt;br /&gt;
&lt;br /&gt;
== Machine logic ==&lt;br /&gt;
&lt;br /&gt;
The machine logic gates as they stand are incomplete.  The inputs are levers, but the outputs are machine components.  In order to connect a machine logic gate to another gate, the machine signal needs to be converted back into a lever signal.  The only way I can see to do that is with a water tank, a pump, and a pressure plate. --[[User:Peristarkawan|Peristarkawan]] 12:38, 28 November 2007 (EST)&lt;br /&gt;
&lt;br /&gt;
== Anthills ==&lt;br /&gt;
&lt;br /&gt;
Kudos to whoever mods ants to be trainable for borg machines...  Hex anyone? :D [[User:N35t0r|N35t0r]] 20:28, 8 December 2007 (EST)&lt;br /&gt;
: This would make that person my favoritest ever.  --[[User:Geofferic|Geofferic]] 01:36, 9 December 2007 (EST)&lt;br /&gt;
: Agreed. [[User:Madmadmadmage|Madmadmadmage]] 15:13, 9 December 2007 (EST)&lt;br /&gt;
&lt;br /&gt;
== Fluid logic gates ==&lt;br /&gt;
&lt;br /&gt;
Link to original information is at [[User:Madmadmadmage/Logic_Gates]]. Moved to clean up page.&lt;br /&gt;
&lt;br /&gt;
Have you tested these at all? I translated your multi-level NOT gate into a form I could understand better after designing some gates myself, and looked at it. It doesn't look to me like it would work at all - First, water flows diagonally, so the water would just flow around the floodgate. Second, if water didn't flow diagonally, and you opened the floodgate because of an input signal, water from the reservoir would then hold the floodgate open by covering the pressure plate even if you shut off the input signal. You'd also need to do something other than just have the drain always open or you might not even trigger the pressure plate because it's draining too fast. --[[User:SL|SL]] 19:17, 23 December 2007 (EST)&lt;br /&gt;
&lt;br /&gt;
No, I did not test any of these. I forgot that water flows around corners; I usually work with straight passages and put my gates in places where it doesn't matter. I'll fix that. As for draining water, you're correct on one point: the water would drain off too fast to trigger the plates. It would drain out to one, so the part about it not draining out isn't a problem. The draining-too-fast problem can also be solved: set the plate to activate on any depth-two water. That would mean it would take a tiny bit longer to drain (although not much), but it would also make it open if any water at all were coming to the input. Additionally, minimizing delays would be very, very useful. Remember, these don't have to be all separated like I have them. You could design these with everything compressed into three-long channels (the minimum length of a NAND gate plus an input), which would greatly optimize performance. Maybe using something like an aquifer for the water source would also help. I'll have to build a fortress specifically to test fluid gates (translate as: dig through aquifer). Give me a few weeks. [[User:Madmadmadmage|Madmadmadmage]] 02:14, 27 December 2007 (EST)&lt;br /&gt;
&lt;br /&gt;
I've finished my own logic gates now - designed, built, and tested them all. They transfer signals between gates using mechanisms rather than water flow, but use water internally for processing logic. In addition to the standard gates (NOT, AND, OR, XOR, NAND, NOR), I've also made repeaters (repeatedly toggle two output signals) and memory gates (one input signal sets the gate's output to ON, the other input signal resets it to OFF - this is useful to replace one-use pressure plates with resettable versions). They only need to be built on top of a murky pool (with water in it), or an aquifer, brook, stream, river, dwarf-made cistern, whatever, and require power for one or two pumps each. I've posted them here [[User:SL/Logic_Gates]] for now, with all the information needed to build and use them, and advice on doing so. --[[User:SL|SL]] 13:30, 4 January 2008 (EST)&lt;br /&gt;
&lt;br /&gt;
These look really good to me. Since I rarely use screw pumps, I never even thought of using using them. They're slower to build than simple channels, but they're faster, more efficient, and far more predictable. Good idea. Secondarily, I'm moving my stuff to another page to make everything neater. Link to [[User:Madmadmadmage/Logic_Gates]] here and at the top of the section. [[User:Madmadmadmage|Madmadmadmage]] 20:19, 4 January 2008 (EST)&lt;/div&gt;</summary>
		<author><name>Madmadmadmage</name></author>
	</entry>
	<entry>
		<id>https://dwarffortresswiki.org/index.php?title=40d_Talk:Computing&amp;diff=28866</id>
		<title>40d Talk:Computing</title>
		<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php?title=40d_Talk:Computing&amp;diff=28866"/>
		<updated>2008-01-05T01:20:34Z</updated>

		<summary type="html">&lt;p&gt;Madmadmadmage: /* Fluid logic gates */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;I created this page because I think it's a very interesting part of the game for advanced players.  I'm not at all familiar with creating wiki pages, so if someone else who was familiar with the concepts could write a section or two themselves, that would be grand.  Right now I think it's been proven possible to create logical input and output gates using fluid dynamics, axles and gears, and even the movements of dwarves utilizing pressure plates.&lt;br /&gt;
&lt;br /&gt;
It was on the 4th of Galena 1097 that the Fortress 'The Net of Skies' became self-aware.  Panicked mechanics attempted to disengage the mechanisms, but the fortress interpreted this as an attack and designated all Dwarves as hostile... --[[User:WyldKarde|WyldKarde]] 13:17, 23 November 2007 (EST)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:A suggested component: The one-use lever.&lt;br /&gt;
&lt;br /&gt;
 ó _X_ ___ / = ramp X = door&lt;br /&gt;
 #&amp;quot; ¯ /### &amp;quot; = bridge&lt;br /&gt;
 #########&lt;br /&gt;
&lt;br /&gt;
:The lever has a Pull The Lever repeat job on it. The door only opens when access is required. Upon being pulled, the lever opens the bridge and drops the dwarf that pulled it. -- [[User:Zaratustra|Zaratustra]] 14:56, 23 November 2007 (EST)&lt;br /&gt;
:Problem detected: the lever doesn't obstruct, so the dwarf can be left hanging on the lever's tile.&lt;br /&gt;
&lt;br /&gt;
I think we should strive to include an example of an NAND gate and/or a NOR gate for each style since that's the bare minimum for operation.--[[User:AlBorland|AlBorland]] 22:09, 23 November 2007 (EST)&lt;br /&gt;
&lt;br /&gt;
== Machine logic ==&lt;br /&gt;
&lt;br /&gt;
The machine logic gates as they stand are incomplete.  The inputs are levers, but the outputs are machine components.  In order to connect a machine logic gate to another gate, the machine signal needs to be converted back into a lever signal.  The only way I can see to do that is with a water tank, a pump, and a pressure plate. --[[User:Peristarkawan|Peristarkawan]] 12:38, 28 November 2007 (EST)&lt;br /&gt;
&lt;br /&gt;
== Anthills ==&lt;br /&gt;
&lt;br /&gt;
Kudos to whoever mods ants to be trainable for borg machines...  Hex anyone? :D [[User:N35t0r|N35t0r]] 20:28, 8 December 2007 (EST)&lt;br /&gt;
: This would make that person my favoritest ever.  --[[User:Geofferic|Geofferic]] 01:36, 9 December 2007 (EST)&lt;br /&gt;
: Agreed. [[User:Madmadmadmage|Madmadmadmage]] 15:13, 9 December 2007 (EST)&lt;br /&gt;
&lt;br /&gt;
== Fluid logic gates ==&lt;br /&gt;
&lt;br /&gt;
Link to original information is [[Madmadmadmage/Logic_Gates|here]]. Moved to clean up page.&lt;br /&gt;
&lt;br /&gt;
Have you tested these at all? I translated your multi-level NOT gate into a form I could understand better after designing some gates myself, and looked at it. It doesn't look to me like it would work at all - First, water flows diagonally, so the water would just flow around the floodgate. Second, if water didn't flow diagonally, and you opened the floodgate because of an input signal, water from the reservoir would then hold the floodgate open by covering the pressure plate even if you shut off the input signal. You'd also need to do something other than just have the drain always open or you might not even trigger the pressure plate because it's draining too fast. --[[User:SL|SL]] 19:17, 23 December 2007 (EST)&lt;br /&gt;
&lt;br /&gt;
No, I did not test any of these. I forgot that water flows around corners; I usually work with straight passages and put my gates in places where it doesn't matter. I'll fix that. As for draining water, you're correct on one point: the water would drain off too fast to trigger the plates. It would drain out to one, so the part about it not draining out isn't a problem. The draining-too-fast problem can also be solved: set the plate to activate on any depth-two water. That would mean it would take a tiny bit longer to drain (although not much), but it would also make it open if any water at all were coming to the input. Additionally, minimizing delays would be very, very useful. Remember, these don't have to be all separated like I have them. You could design these with everything compressed into three-long channels (the minimum length of a NAND gate plus an input), which would greatly optimize performance. Maybe using something like an aquifer for the water source would also help. I'll have to build a fortress specifically to test fluid gates (translate as: dig through aquifer). Give me a few weeks. [[User:Madmadmadmage|Madmadmadmage]] 02:14, 27 December 2007 (EST)&lt;br /&gt;
&lt;br /&gt;
I've finished my own logic gates now - designed, built, and tested them all. They transfer signals between gates using mechanisms rather than water flow, but use water internally for processing logic. In addition to the standard gates (NOT, AND, OR, XOR, NAND, NOR), I've also made repeaters (repeatedly toggle two output signals) and memory gates (one input signal sets the gate's output to ON, the other input signal resets it to OFF - this is useful to replace one-use pressure plates with resettable versions). They only need to be built on top of a murky pool (with water in it), or an aquifer, brook, stream, river, dwarf-made cistern, whatever, and require power for one or two pumps each. I've posted them here [[User:SL/Logic_Gates]] for now, with all the information needed to build and use them, and advice on doing so. --[[User:SL|SL]] 13:30, 4 January 2008 (EST)&lt;br /&gt;
&lt;br /&gt;
These look really good to me. Since I rarely use screw pumps, I never even thought of using using them. They're slower to build than simple channels, but they're faster, more efficient, and far more predictable. Good idea. Secondarily, I'm moving my stuff to another page to make everything neater. Link [[Madmadmadmage/Logic_Gates|here]] and at the top of the section. [[User:Madmadmadmage|Madmadmadmage]] 20:19, 4 January 2008 (EST)&lt;/div&gt;</summary>
		<author><name>Madmadmadmage</name></author>
	</entry>
	<entry>
		<id>https://dwarffortresswiki.org/index.php?title=40d_Talk:Computing&amp;diff=28865</id>
		<title>40d Talk:Computing</title>
		<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php?title=40d_Talk:Computing&amp;diff=28865"/>
		<updated>2008-01-05T01:20:00Z</updated>

		<summary type="html">&lt;p&gt;Madmadmadmage: /* Fluid logic gates */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;I created this page because I think it's a very interesting part of the game for advanced players.  I'm not at all familiar with creating wiki pages, so if someone else who was familiar with the concepts could write a section or two themselves, that would be grand.  Right now I think it's been proven possible to create logical input and output gates using fluid dynamics, axles and gears, and even the movements of dwarves utilizing pressure plates.&lt;br /&gt;
&lt;br /&gt;
It was on the 4th of Galena 1097 that the Fortress 'The Net of Skies' became self-aware.  Panicked mechanics attempted to disengage the mechanisms, but the fortress interpreted this as an attack and designated all Dwarves as hostile... --[[User:WyldKarde|WyldKarde]] 13:17, 23 November 2007 (EST)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:A suggested component: The one-use lever.&lt;br /&gt;
&lt;br /&gt;
 ó _X_ ___ / = ramp X = door&lt;br /&gt;
 #&amp;quot; ¯ /### &amp;quot; = bridge&lt;br /&gt;
 #########&lt;br /&gt;
&lt;br /&gt;
:The lever has a Pull The Lever repeat job on it. The door only opens when access is required. Upon being pulled, the lever opens the bridge and drops the dwarf that pulled it. -- [[User:Zaratustra|Zaratustra]] 14:56, 23 November 2007 (EST)&lt;br /&gt;
:Problem detected: the lever doesn't obstruct, so the dwarf can be left hanging on the lever's tile.&lt;br /&gt;
&lt;br /&gt;
I think we should strive to include an example of an NAND gate and/or a NOR gate for each style since that's the bare minimum for operation.--[[User:AlBorland|AlBorland]] 22:09, 23 November 2007 (EST)&lt;br /&gt;
&lt;br /&gt;
== Machine logic ==&lt;br /&gt;
&lt;br /&gt;
The machine logic gates as they stand are incomplete.  The inputs are levers, but the outputs are machine components.  In order to connect a machine logic gate to another gate, the machine signal needs to be converted back into a lever signal.  The only way I can see to do that is with a water tank, a pump, and a pressure plate. --[[User:Peristarkawan|Peristarkawan]] 12:38, 28 November 2007 (EST)&lt;br /&gt;
&lt;br /&gt;
== Anthills ==&lt;br /&gt;
&lt;br /&gt;
Kudos to whoever mods ants to be trainable for borg machines...  Hex anyone? :D [[User:N35t0r|N35t0r]] 20:28, 8 December 2007 (EST)&lt;br /&gt;
: This would make that person my favoritest ever.  --[[User:Geofferic|Geofferic]] 01:36, 9 December 2007 (EST)&lt;br /&gt;
: Agreed. [[User:Madmadmadmage|Madmadmadmage]] 15:13, 9 December 2007 (EST)&lt;br /&gt;
&lt;br /&gt;
== Fluid logic gates ==&lt;br /&gt;
&lt;br /&gt;
Link to original information is [[here|Madmadmadmage/Logic_Gates]]. Moved to clean up page.&lt;br /&gt;
&lt;br /&gt;
Have you tested these at all? I translated your multi-level NOT gate into a form I could understand better after designing some gates myself, and looked at it. It doesn't look to me like it would work at all - First, water flows diagonally, so the water would just flow around the floodgate. Second, if water didn't flow diagonally, and you opened the floodgate because of an input signal, water from the reservoir would then hold the floodgate open by covering the pressure plate even if you shut off the input signal. You'd also need to do something other than just have the drain always open or you might not even trigger the pressure plate because it's draining too fast. --[[User:SL|SL]] 19:17, 23 December 2007 (EST)&lt;br /&gt;
&lt;br /&gt;
No, I did not test any of these. I forgot that water flows around corners; I usually work with straight passages and put my gates in places where it doesn't matter. I'll fix that. As for draining water, you're correct on one point: the water would drain off too fast to trigger the plates. It would drain out to one, so the part about it not draining out isn't a problem. The draining-too-fast problem can also be solved: set the plate to activate on any depth-two water. That would mean it would take a tiny bit longer to drain (although not much), but it would also make it open if any water at all were coming to the input. Additionally, minimizing delays would be very, very useful. Remember, these don't have to be all separated like I have them. You could design these with everything compressed into three-long channels (the minimum length of a NAND gate plus an input), which would greatly optimize performance. Maybe using something like an aquifer for the water source would also help. I'll have to build a fortress specifically to test fluid gates (translate as: dig through aquifer). Give me a few weeks. [[User:Madmadmadmage|Madmadmadmage]] 02:14, 27 December 2007 (EST)&lt;br /&gt;
&lt;br /&gt;
I've finished my own logic gates now - designed, built, and tested them all. They transfer signals between gates using mechanisms rather than water flow, but use water internally for processing logic. In addition to the standard gates (NOT, AND, OR, XOR, NAND, NOR), I've also made repeaters (repeatedly toggle two output signals) and memory gates (one input signal sets the gate's output to ON, the other input signal resets it to OFF - this is useful to replace one-use pressure plates with resettable versions). They only need to be built on top of a murky pool (with water in it), or an aquifer, brook, stream, river, dwarf-made cistern, whatever, and require power for one or two pumps each. I've posted them here [[User:SL/Logic_Gates]] for now, with all the information needed to build and use them, and advice on doing so. --[[User:SL|SL]] 13:30, 4 January 2008 (EST)&lt;br /&gt;
&lt;br /&gt;
These look really good to me. Since I rarely use screw pumps, I never even thought of using using them. They're slower to build than simple channels, but they're faster, more efficient, and far more predictable. Good idea. Secondarily, I'm moving my stuff to another page to make everything neater. Link [[here|Madmadmadmage/Logic_Gates]] and at the top of the section. [[User:Madmadmadmage|Madmadmadmage]] 20:19, 4 January 2008 (EST)&lt;/div&gt;</summary>
		<author><name>Madmadmadmage</name></author>
	</entry>
	<entry>
		<id>https://dwarffortresswiki.org/index.php?title=40d_Talk:Computing&amp;diff=28864</id>
		<title>40d Talk:Computing</title>
		<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php?title=40d_Talk:Computing&amp;diff=28864"/>
		<updated>2008-01-05T01:19:32Z</updated>

		<summary type="html">&lt;p&gt;Madmadmadmage: /* Fluid logic gates */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;I created this page because I think it's a very interesting part of the game for advanced players.  I'm not at all familiar with creating wiki pages, so if someone else who was familiar with the concepts could write a section or two themselves, that would be grand.  Right now I think it's been proven possible to create logical input and output gates using fluid dynamics, axles and gears, and even the movements of dwarves utilizing pressure plates.&lt;br /&gt;
&lt;br /&gt;
It was on the 4th of Galena 1097 that the Fortress 'The Net of Skies' became self-aware.  Panicked mechanics attempted to disengage the mechanisms, but the fortress interpreted this as an attack and designated all Dwarves as hostile... --[[User:WyldKarde|WyldKarde]] 13:17, 23 November 2007 (EST)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:A suggested component: The one-use lever.&lt;br /&gt;
&lt;br /&gt;
 ó _X_ ___ / = ramp X = door&lt;br /&gt;
 #&amp;quot; ¯ /### &amp;quot; = bridge&lt;br /&gt;
 #########&lt;br /&gt;
&lt;br /&gt;
:The lever has a Pull The Lever repeat job on it. The door only opens when access is required. Upon being pulled, the lever opens the bridge and drops the dwarf that pulled it. -- [[User:Zaratustra|Zaratustra]] 14:56, 23 November 2007 (EST)&lt;br /&gt;
:Problem detected: the lever doesn't obstruct, so the dwarf can be left hanging on the lever's tile.&lt;br /&gt;
&lt;br /&gt;
I think we should strive to include an example of an NAND gate and/or a NOR gate for each style since that's the bare minimum for operation.--[[User:AlBorland|AlBorland]] 22:09, 23 November 2007 (EST)&lt;br /&gt;
&lt;br /&gt;
== Machine logic ==&lt;br /&gt;
&lt;br /&gt;
The machine logic gates as they stand are incomplete.  The inputs are levers, but the outputs are machine components.  In order to connect a machine logic gate to another gate, the machine signal needs to be converted back into a lever signal.  The only way I can see to do that is with a water tank, a pump, and a pressure plate. --[[User:Peristarkawan|Peristarkawan]] 12:38, 28 November 2007 (EST)&lt;br /&gt;
&lt;br /&gt;
== Anthills ==&lt;br /&gt;
&lt;br /&gt;
Kudos to whoever mods ants to be trainable for borg machines...  Hex anyone? :D [[User:N35t0r|N35t0r]] 20:28, 8 December 2007 (EST)&lt;br /&gt;
: This would make that person my favoritest ever.  --[[User:Geofferic|Geofferic]] 01:36, 9 December 2007 (EST)&lt;br /&gt;
: Agreed. [[User:Madmadmadmage|Madmadmadmage]] 15:13, 9 December 2007 (EST)&lt;br /&gt;
&lt;br /&gt;
== Fluid logic gates ==&lt;br /&gt;
&lt;br /&gt;
Link to information is [[here|Madmadmadmage/Logic_Gates]]. Moved to unclutter page. [[User:Madmadmadmage|Madmadmadmage]] 20:19, 4 January 2008 (EST)&lt;br /&gt;
&lt;br /&gt;
Have you tested these at all? I translated your multi-level NOT gate into a form I could understand better after designing some gates myself, and looked at it. It doesn't look to me like it would work at all - First, water flows diagonally, so the water would just flow around the floodgate. Second, if water didn't flow diagonally, and you opened the floodgate because of an input signal, water from the reservoir would then hold the floodgate open by covering the pressure plate even if you shut off the input signal. You'd also need to do something other than just have the drain always open or you might not even trigger the pressure plate because it's draining too fast. --[[User:SL|SL]] 19:17, 23 December 2007 (EST)&lt;br /&gt;
&lt;br /&gt;
No, I did not test any of these. I forgot that water flows around corners; I usually work with straight passages and put my gates in places where it doesn't matter. I'll fix that. As for draining water, you're correct on one point: the water would drain off too fast to trigger the plates. It would drain out to one, so the part about it not draining out isn't a problem. The draining-too-fast problem can also be solved: set the plate to activate on any depth-two water. That would mean it would take a tiny bit longer to drain (although not much), but it would also make it open if any water at all were coming to the input. Additionally, minimizing delays would be very, very useful. Remember, these don't have to be all separated like I have them. You could design these with everything compressed into three-long channels (the minimum length of a NAND gate plus an input), which would greatly optimize performance. Maybe using something like an aquifer for the water source would also help. I'll have to build a fortress specifically to test fluid gates (translate as: dig through aquifer). Give me a few weeks. [[User:Madmadmadmage|Madmadmadmage]] 02:14, 27 December 2007 (EST)&lt;br /&gt;
&lt;br /&gt;
I've finished my own logic gates now - designed, built, and tested them all. They transfer signals between gates using mechanisms rather than water flow, but use water internally for processing logic. In addition to the standard gates (NOT, AND, OR, XOR, NAND, NOR), I've also made repeaters (repeatedly toggle two output signals) and memory gates (one input signal sets the gate's output to ON, the other input signal resets it to OFF - this is useful to replace one-use pressure plates with resettable versions). They only need to be built on top of a murky pool (with water in it), or an aquifer, brook, stream, river, dwarf-made cistern, whatever, and require power for one or two pumps each. I've posted them here [[User:SL/Logic_Gates]] for now, with all the information needed to build and use them, and advice on doing so. --[[User:SL|SL]] 13:30, 4 January 2008 (EST)&lt;br /&gt;
&lt;br /&gt;
These look really good to me. Since I rarely use screw pumps, I never even thought of using using them. They're slower to build than simple channels, but they're faster, more efficient, and far more predictable. Good idea. Secondarily, I'm moving my stuff to another page to make everything neater. Link [[here|Madmadmadmage/Logic_Gates]] and at the top of the section. [[User:Madmadmadmage|Madmadmadmage]] 20:19, 4 January 2008 (EST)&lt;/div&gt;</summary>
		<author><name>Madmadmadmage</name></author>
	</entry>
	<entry>
		<id>https://dwarffortresswiki.org/index.php?title=User:Madmadmadmage/Logic_Gates&amp;diff=33930</id>
		<title>User:Madmadmadmage/Logic Gates</title>
		<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php?title=User:Madmadmadmage/Logic_Gates&amp;diff=33930"/>
		<updated>2008-01-05T01:17:57Z</updated>

		<summary type="html">&lt;p&gt;Madmadmadmage: New page: Note: originally posted on Talk:Computing  ==Fluid Logic Gate Designs, untested theoretical==  I got bored, so here, have some gates. I don't know the offical DF format for fortress sn...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Note: originally posted on [[Talk:Computing]]&lt;br /&gt;
&lt;br /&gt;
==Fluid Logic Gate Designs, untested theoretical==&lt;br /&gt;
&lt;br /&gt;
I got bored, so here, have some gates. I don't know the offical DF format for fortress snippets, so I've posted them here and hoped someone will be bored enough to format them correctly. I also don't really post on Wikis very much, so if this isn't the kind of thing you're all looking for, delete it. There might also be a few errors; I haven't actually tested any of these, and I'm not exactly sure about the XORs. I know that I could have made a few of these more compact by having the fluid perform the OR themselves, but that would have caused backwash into any dry inputs, possibly corrupting the system. If you have yours set up right, you don't need that.&lt;br /&gt;
&lt;br /&gt;
Also, you might want to connect your reservoir to the floodgates on the other side with another, lever-controlled, floodgate in between. That way you don't have problems with mechanical delays and fluid getting through where it's not supposed to because a gate hasn't closed yet. [[User:Madmadmadmage|Madmadmadmage]] 18:05, 9 December 2007 (EST)&lt;br /&gt;
&lt;br /&gt;
Notation:&lt;br /&gt;
 . : channel&lt;br /&gt;
 + : ground&lt;br /&gt;
 # : wall&lt;br /&gt;
 n : floodgate connected to plate number n&lt;br /&gt;
 p : pressure plate true when depth 1-3&lt;br /&gt;
 q : pressure plate true when depth 4-7&lt;br /&gt;
 I : input channel 1&lt;br /&gt;
 J : input channel 2&lt;br /&gt;
 O : output channel&lt;br /&gt;
 D : to runoff tank, so it doesn’t all jam. I’ve assumed a single level for the basic design,&amp;lt;br /&amp;gt; but a far more efficient model (presented below) assumes that this tank is two levels down,&amp;lt;br /&amp;gt; and that D is a two-z-level pit. &lt;br /&gt;
 H : from full reservoir. Again, basic designs are for a single level, but a far more efficient&amp;lt;br /&amp;gt; model (presented below) assumes that this tank is one level up, and H is a hole in the ceiling.&lt;br /&gt;
 Water == true; no water == false&lt;br /&gt;
&lt;br /&gt;
Pressure plates are numbered top to bottom, and then left to right within rows with multiple plates. For example:&lt;br /&gt;
 ##1####2###&lt;br /&gt;
 #+++34++++#&lt;br /&gt;
 #++++++56+#&lt;br /&gt;
 ##7########&lt;br /&gt;
&lt;br /&gt;
'''Single-level designs:'''&amp;lt;br /&amp;gt;&lt;br /&gt;
NOT gate:&lt;br /&gt;
 ######&lt;br /&gt;
 H....#&lt;br /&gt;
 #++1+#&lt;br /&gt;
 Ip+..O&lt;br /&gt;
 #D##+#&lt;br /&gt;
&lt;br /&gt;
OR gate:&lt;br /&gt;
 ##########&lt;br /&gt;
 H........#&lt;br /&gt;
 #++++++12#&lt;br /&gt;
 D.+...+..#&lt;br /&gt;
 #q+q+.++.O&lt;br /&gt;
 #I#J#D####&lt;br /&gt;
&lt;br /&gt;
NOR gate:&lt;br /&gt;
 ##########&lt;br /&gt;
 H........#&lt;br /&gt;
 #++++++12#&lt;br /&gt;
 D.+...+..#&lt;br /&gt;
 #p+p+.++.O&lt;br /&gt;
 #I#J#D####&lt;br /&gt;
&lt;br /&gt;
AND gate:&lt;br /&gt;
 #########&lt;br /&gt;
 H.......#&lt;br /&gt;
 #++++++1#&lt;br /&gt;
 D.+...+2#&lt;br /&gt;
 #q+q+.+.O&lt;br /&gt;
 #I#J#D###&lt;br /&gt;
&lt;br /&gt;
NAND gate:&lt;br /&gt;
 #########&lt;br /&gt;
 H.......#&lt;br /&gt;
 #++++++1#&lt;br /&gt;
 D.+...+2#&lt;br /&gt;
 #p+p+.+.O&lt;br /&gt;
 #I#J#D###&lt;br /&gt;
&lt;br /&gt;
XOR gate:&lt;br /&gt;
 ###############&lt;br /&gt;
 H.............#&lt;br /&gt;
 #++++++++13+++#&lt;br /&gt;
 #+++++++++..24O&lt;br /&gt;
 J.p.q+pq.+++++#&lt;br /&gt;
 ####D#I#D######&lt;br /&gt;
&lt;br /&gt;
Alternative XOR gate:&lt;br /&gt;
 #############&lt;br /&gt;
 H...........#&lt;br /&gt;
 #++++++12+++#&lt;br /&gt;
 #+++++++..12O&lt;br /&gt;
 J.p+p..+++++#&lt;br /&gt;
 ##D#I#D######&lt;br /&gt;
The pair of floodgates closest to the output (the ones in series) are open when they’re connected to the plates, and the pair of floodgates closest to the reservoir are closed when they’re connected to the plates. Additionally, if the two in series are connected to a lever, this setup can be turned into an AND gate simply by pulling the lever.&lt;br /&gt;
 &lt;br /&gt;
'''Multi-level designs:'''&amp;lt;br /&amp;gt;&lt;br /&gt;
NOT gate:&lt;br /&gt;
 ###H##&lt;br /&gt;
 #++1+#&lt;br /&gt;
 Ip+..O&lt;br /&gt;
 #D####&lt;br /&gt;
&lt;br /&gt;
OR gate:&lt;br /&gt;
 #######&lt;br /&gt;
 IqD+H.#&lt;br /&gt;
 #+++12#&lt;br /&gt;
 JqD+..O&lt;br /&gt;
 #######&lt;br /&gt;
&lt;br /&gt;
NOR gate:&lt;br /&gt;
 #######&lt;br /&gt;
 IpD+H.#&lt;br /&gt;
 #+++12#&lt;br /&gt;
 JpD+..O&lt;br /&gt;
 #######&lt;br /&gt;
&lt;br /&gt;
AND gate:&lt;br /&gt;
 #######&lt;br /&gt;
 IqD+H+#&lt;br /&gt;
 #+++1+#&lt;br /&gt;
 JqD+2.O&lt;br /&gt;
 #######&lt;br /&gt;
&lt;br /&gt;
NAND gate:&lt;br /&gt;
 #######&lt;br /&gt;
 IpD+H+#&lt;br /&gt;
 #+++1+#&lt;br /&gt;
 JpD+2.O&lt;br /&gt;
 #######&lt;br /&gt;
&lt;br /&gt;
XOR gate:&lt;br /&gt;
 ###########&lt;br /&gt;
 IpqD+H.+++#&lt;br /&gt;
 #++++13+++#&lt;br /&gt;
 JpqD+...24O&lt;br /&gt;
 ###########&lt;br /&gt;
&lt;br /&gt;
Alternative XOR gate:&lt;br /&gt;
&lt;br /&gt;
 ##########&lt;br /&gt;
 IpD+H.+++#&lt;br /&gt;
 #+++12+++#&lt;br /&gt;
 JpD+...12O&lt;br /&gt;
 ##########&lt;br /&gt;
The pair of floodgates closest to the output (the ones in series) are open when they’re connected to the plates, and the pair of floodgates closest to the reservoir are closed when they’re connected to the plates. Additionally, if the two in series are connected to a lever, this setup can be turned into an AND gate by pulling the lever.&lt;br /&gt;
&lt;br /&gt;
[[User:Madmadmadmage|Madmadmadmage]] 16:53, 9 December 2007 (EST)&lt;/div&gt;</summary>
		<author><name>Madmadmadmage</name></author>
	</entry>
	<entry>
		<id>https://dwarffortresswiki.org/index.php?title=40d_Talk:Computing&amp;diff=28860</id>
		<title>40d Talk:Computing</title>
		<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php?title=40d_Talk:Computing&amp;diff=28860"/>
		<updated>2007-12-27T07:38:18Z</updated>

		<summary type="html">&lt;p&gt;Madmadmadmage: /* Fluid logic gates */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;I created this page because I think it's a very interesting part of the game for advanced players.  I'm not at all familiar with creating wiki pages, so if someone else who was familiar with the concepts could write a section or two themselves, that would be grand.  Right now I think it's been proven possible to create logical input and output gates using fluid dynamics, axles and gears, and even the movements of dwarves utilizing pressure plates.&lt;br /&gt;
&lt;br /&gt;
It was on the 4th of Galena 1097 that the Fortress 'The Net of Skies' became self-aware.  Panicked mechanics attempted to disengage the mechanisms, but the fortress interpreted this as an attack and designated all Dwarves as hostile... --[[User:WyldKarde|WyldKarde]] 13:17, 23 November 2007 (EST)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:A suggested component: The one-use lever.&lt;br /&gt;
&lt;br /&gt;
 ó _X_ ___ / = ramp X = door&lt;br /&gt;
 #&amp;quot; ¯ /### &amp;quot; = bridge&lt;br /&gt;
 #########&lt;br /&gt;
&lt;br /&gt;
:The lever has a Pull The Lever repeat job on it. The door only opens when access is required. Upon being pulled, the lever opens the bridge and drops the dwarf that pulled it. -- [[User:Zaratustra|Zaratustra]] 14:56, 23 November 2007 (EST)&lt;br /&gt;
:Problem detected: the lever doesn't obstruct, so the dwarf can be left hanging on the lever's tile.&lt;br /&gt;
&lt;br /&gt;
I think we should strive to include an example of an NAND gate and/or a NOR gate for each style since that's the bare minimum for operation.--[[User:AlBorland|AlBorland]] 22:09, 23 November 2007 (EST)&lt;br /&gt;
&lt;br /&gt;
== Machine logic ==&lt;br /&gt;
&lt;br /&gt;
The machine logic gates as they stand are incomplete.  The inputs are levers, but the outputs are machine components.  In order to connect a machine logic gate to another gate, the machine signal needs to be converted back into a lever signal.  The only way I can see to do that is with a water tank, a pump, and a pressure plate. --[[User:Peristarkawan|Peristarkawan]] 12:38, 28 November 2007 (EST)&lt;br /&gt;
&lt;br /&gt;
== Anthills ==&lt;br /&gt;
&lt;br /&gt;
Kudos to whoever mods ants to be trainable for borg machines...  Hex anyone? :D [[User:N35t0r|N35t0r]] 20:28, 8 December 2007 (EST)&lt;br /&gt;
: This would make that person my favoritest ever.  --[[User:Geofferic|Geofferic]] 01:36, 9 December 2007 (EST)&lt;br /&gt;
: Agreed. [[User:Madmadmadmage|Madmadmadmage]] 15:13, 9 December 2007 (EST)&lt;br /&gt;
&lt;br /&gt;
== Fluid logic gates ==&lt;br /&gt;
&lt;br /&gt;
I got bored, so here, have some gates. I don't know the offical DF format for fortress snippets, so I've posted them here and hoped someone will be bored enough to format them correctly. I also don't really post on Wikis very much, so if this isn't the kind of thing you're all looking for, delete it. There might also be a few errors; I haven't actually tested any of these, and I'm not exactly sure about the XORs. I know that I could have made a few of these more compact by having the fluid perform the OR themselves, but that would have caused backwash into any dry inputs, possibly corrupting the system. If you have yours set up right, you don't need that.&lt;br /&gt;
&lt;br /&gt;
:Edit:Also, you might want to connect your reservoir to the floodgates on the other side with another, lever-controlled, floodgate in between. That way you don't have problems with mechanical delays and fluid getting through where it's not supposed to because a gate hasn't closed yet. [[User:Madmadmadmage|Madmadmadmage]] 18:05, 9 December 2007 (EST)&lt;br /&gt;
&lt;br /&gt;
Notation:&lt;br /&gt;
 . : channel&lt;br /&gt;
 + : ground&lt;br /&gt;
 # : wall&lt;br /&gt;
 n : floodgate connected to plate number n&lt;br /&gt;
 p : pressure plate true when depth 1-3&lt;br /&gt;
 q : pressure plate true when depth 4-7&lt;br /&gt;
 I : input channel 1&lt;br /&gt;
 J : input channel 2&lt;br /&gt;
 O : output channel&lt;br /&gt;
 D : to runoff tank, so it doesn’t all jam. I’ve assumed a single level for the basic design,&amp;lt;br /&amp;gt; but a far more efficient model (presented below) assumes that this tank is two levels down,&amp;lt;br /&amp;gt; and that D is a two-z-level pit. &lt;br /&gt;
 H : from full reservoir. Again, basic designs are for a single level, but a far more efficient&amp;lt;br /&amp;gt; model (presented below) assumes that this tank is one level up, and H is a hole in the ceiling.&lt;br /&gt;
 Water == true; no water == false&lt;br /&gt;
&lt;br /&gt;
Pressure plates are numbered top to bottom, and then left to right within rows with multiple plates. For example:&lt;br /&gt;
 ##1####2###&lt;br /&gt;
 #+++34++++#&lt;br /&gt;
 #++++++56+#&lt;br /&gt;
 ##7########&lt;br /&gt;
&lt;br /&gt;
'''Single-level designs:'''&amp;lt;br /&amp;gt;&lt;br /&gt;
NOT gate:&lt;br /&gt;
 ######&lt;br /&gt;
 H....#&lt;br /&gt;
 #++1+#&lt;br /&gt;
 Ip+..O&lt;br /&gt;
 #D##+#&lt;br /&gt;
&lt;br /&gt;
OR gate:&lt;br /&gt;
 ##########&lt;br /&gt;
 H........#&lt;br /&gt;
 #++++++12#&lt;br /&gt;
 D.+...+..#&lt;br /&gt;
 #q+q+.++.O&lt;br /&gt;
 #I#J#D####&lt;br /&gt;
&lt;br /&gt;
NOR gate:&lt;br /&gt;
 ##########&lt;br /&gt;
 H........#&lt;br /&gt;
 #++++++12#&lt;br /&gt;
 D.+...+..#&lt;br /&gt;
 #p+p+.++.O&lt;br /&gt;
 #I#J#D####&lt;br /&gt;
&lt;br /&gt;
AND gate:&lt;br /&gt;
 #########&lt;br /&gt;
 H.......#&lt;br /&gt;
 #++++++1#&lt;br /&gt;
 D.+...+2#&lt;br /&gt;
 #q+q+.+.O&lt;br /&gt;
 #I#J#D###&lt;br /&gt;
&lt;br /&gt;
NAND gate:&lt;br /&gt;
 #########&lt;br /&gt;
 H.......#&lt;br /&gt;
 #++++++1#&lt;br /&gt;
 D.+...+2#&lt;br /&gt;
 #p+p+.+.O&lt;br /&gt;
 #I#J#D###&lt;br /&gt;
&lt;br /&gt;
XOR gate:&lt;br /&gt;
 ###############&lt;br /&gt;
 H.............#&lt;br /&gt;
 #++++++++13+++#&lt;br /&gt;
 #+++++++++..24O&lt;br /&gt;
 J.p.q+pq.+++++#&lt;br /&gt;
 ####D#I#D######&lt;br /&gt;
&lt;br /&gt;
Alternative XOR gate:&lt;br /&gt;
 #############&lt;br /&gt;
 H...........#&lt;br /&gt;
 #++++++12+++#&lt;br /&gt;
 #+++++++..12O&lt;br /&gt;
 J.p+p..+++++#&lt;br /&gt;
 ##D#I#D######&lt;br /&gt;
The pair of floodgates closest to the output (the ones in series) are open when they’re connected to the plates, and the pair of floodgates closest to the reservoir are closed when they’re connected to the plates. Additionally, if the two in series are connected to a lever, this setup can be turned into an AND gate simply by pulling the lever.&lt;br /&gt;
 &lt;br /&gt;
'''Multi-level designs:'''&amp;lt;br /&amp;gt;&lt;br /&gt;
NOT gate:&lt;br /&gt;
 ###H##&lt;br /&gt;
 #++1+#&lt;br /&gt;
 Ip+..O&lt;br /&gt;
 #D####&lt;br /&gt;
&lt;br /&gt;
OR gate:&lt;br /&gt;
 #######&lt;br /&gt;
 IqD+H.#&lt;br /&gt;
 #+++12#&lt;br /&gt;
 JqD+..O&lt;br /&gt;
 #######&lt;br /&gt;
&lt;br /&gt;
NOR gate:&lt;br /&gt;
 #######&lt;br /&gt;
 IpD+H.#&lt;br /&gt;
 #+++12#&lt;br /&gt;
 JpD+..O&lt;br /&gt;
 #######&lt;br /&gt;
&lt;br /&gt;
AND gate:&lt;br /&gt;
 #######&lt;br /&gt;
 IqD+H+#&lt;br /&gt;
 #+++1+#&lt;br /&gt;
 JqD+2.O&lt;br /&gt;
 #######&lt;br /&gt;
&lt;br /&gt;
NAND gate:&lt;br /&gt;
 #######&lt;br /&gt;
 IpD+H+#&lt;br /&gt;
 #+++1+#&lt;br /&gt;
 JpD+2.O&lt;br /&gt;
 #######&lt;br /&gt;
&lt;br /&gt;
XOR gate:&lt;br /&gt;
 ###########&lt;br /&gt;
 IpqD+H.+++#&lt;br /&gt;
 #++++13+++#&lt;br /&gt;
 JpqD+...24O&lt;br /&gt;
 ###########&lt;br /&gt;
&lt;br /&gt;
Alternative XOR gate:&lt;br /&gt;
&lt;br /&gt;
 ##########&lt;br /&gt;
 IpD+H.+++#&lt;br /&gt;
 #+++12+++#&lt;br /&gt;
 JpD+...12O&lt;br /&gt;
 ##########&lt;br /&gt;
The pair of floodgates closest to the output (the ones in series) are open when they’re connected to the plates, and the pair of floodgates closest to the reservoir are closed when they’re connected to the plates. Additionally, if the two in series are connected to a lever, this setup can be turned into an AND gate by pulling the lever.&lt;br /&gt;
&lt;br /&gt;
[[User:Madmadmadmage|Madmadmadmage]] 16:53, 9 December 2007 (EST)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Have you tested these at all? I translated your multi-level NOT gate into a form I could understand better after designing some gates myself, and looked at it. It doesn't look to me like it would work at all - First, water flows diagonally, so the water would just flow around the floodgate. Second, if water didn't flow diagonally, and you opened the floodgate because of an input signal, water from the reservoir would then hold the floodgate open by covering the pressure plate even if you shut off the input signal. You'd also need to do something other than just have the drain always open or you might not even trigger the pressure plate because it's draining too fast. --[[User:SL|SL]] 19:17, 23 December 2007 (EST)&lt;br /&gt;
&lt;br /&gt;
No, I did not test any of these. I forgot that water flows around corners; I usually work with straight passages and put my gates in places where it doesn't matter. I'll fix that. As for draining water, you're correct on one point: the water would drain off too fast to trigger the plates. It would drain out to one, so the part about it not draining out isn't a problem. The draining-too-fast problem can also be solved: set the plate to activate on any depth-two water. That would mean it would take a tiny bit longer to drain (although not much), but it would also make it open if any water at all were coming to the input. Additionally, minimizing delays would be very, very useful. Remember, these don't have to be all separated like I have them. You could design these with everything compressed into three-long channels (the minimum length of a NAND gate plus an input), which would greatly optimize performance. Maybe using something like an aquifer for the water source would also help. I'll have to build a fortress specifically to test fluid gates (translate as: dig through aquifer). Give me a few weeks. [[User:Madmadmadmage|Madmadmadmage]] 02:14, 27 December 2007 (EST)&lt;/div&gt;</summary>
		<author><name>Madmadmadmage</name></author>
	</entry>
	<entry>
		<id>https://dwarffortresswiki.org/index.php?title=40d_Talk:Computing&amp;diff=28859</id>
		<title>40d Talk:Computing</title>
		<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php?title=40d_Talk:Computing&amp;diff=28859"/>
		<updated>2007-12-27T07:23:54Z</updated>

		<summary type="html">&lt;p&gt;Madmadmadmage: /* Fluid logic gates */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;I created this page because I think it's a very interesting part of the game for advanced players.  I'm not at all familiar with creating wiki pages, so if someone else who was familiar with the concepts could write a section or two themselves, that would be grand.  Right now I think it's been proven possible to create logical input and output gates using fluid dynamics, axles and gears, and even the movements of dwarves utilizing pressure plates.&lt;br /&gt;
&lt;br /&gt;
It was on the 4th of Galena 1097 that the Fortress 'The Net of Skies' became self-aware.  Panicked mechanics attempted to disengage the mechanisms, but the fortress interpreted this as an attack and designated all Dwarves as hostile... --[[User:WyldKarde|WyldKarde]] 13:17, 23 November 2007 (EST)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:A suggested component: The one-use lever.&lt;br /&gt;
&lt;br /&gt;
 ó _X_ ___ / = ramp X = door&lt;br /&gt;
 #&amp;quot; ¯ /### &amp;quot; = bridge&lt;br /&gt;
 #########&lt;br /&gt;
&lt;br /&gt;
:The lever has a Pull The Lever repeat job on it. The door only opens when access is required. Upon being pulled, the lever opens the bridge and drops the dwarf that pulled it. -- [[User:Zaratustra|Zaratustra]] 14:56, 23 November 2007 (EST)&lt;br /&gt;
:Problem detected: the lever doesn't obstruct, so the dwarf can be left hanging on the lever's tile.&lt;br /&gt;
&lt;br /&gt;
I think we should strive to include an example of an NAND gate and/or a NOR gate for each style since that's the bare minimum for operation.--[[User:AlBorland|AlBorland]] 22:09, 23 November 2007 (EST)&lt;br /&gt;
&lt;br /&gt;
== Machine logic ==&lt;br /&gt;
&lt;br /&gt;
The machine logic gates as they stand are incomplete.  The inputs are levers, but the outputs are machine components.  In order to connect a machine logic gate to another gate, the machine signal needs to be converted back into a lever signal.  The only way I can see to do that is with a water tank, a pump, and a pressure plate. --[[User:Peristarkawan|Peristarkawan]] 12:38, 28 November 2007 (EST)&lt;br /&gt;
&lt;br /&gt;
== Anthills ==&lt;br /&gt;
&lt;br /&gt;
Kudos to whoever mods ants to be trainable for borg machines...  Hex anyone? :D [[User:N35t0r|N35t0r]] 20:28, 8 December 2007 (EST)&lt;br /&gt;
: This would make that person my favoritest ever.  --[[User:Geofferic|Geofferic]] 01:36, 9 December 2007 (EST)&lt;br /&gt;
: Agreed. [[User:Madmadmadmage|Madmadmadmage]] 15:13, 9 December 2007 (EST)&lt;br /&gt;
&lt;br /&gt;
== Fluid logic gates ==&lt;br /&gt;
&lt;br /&gt;
I got bored, so here, have some gates. I don't know the offical DF format for fortress snippets, so I've posted them here and hoped someone will be bored enough to format them correctly. I also don't really post on Wikis very much, so if this isn't the kind of thing you're all looking for, delete it. There might also be a few errors; I haven't actually tested any of these, and I'm not exactly sure about the XORs. I know that I could have made a few of these more compact by having the fluid perform the OR themselves, but that would have caused backwash into any dry inputs, possibly corrupting the system. If you have yours set up right, you don't need that.&lt;br /&gt;
&lt;br /&gt;
:Edit:Also, you might want to connect your reservoir to the floodgates on the other side with another, lever-controlled, floodgate in between. That way you don't have problems with mechanical delays and fluid getting through where it's not supposed to because a gate hasn't closed yet. [[User:Madmadmadmage|Madmadmadmage]] 18:05, 9 December 2007 (EST)&lt;br /&gt;
&lt;br /&gt;
Notation:&lt;br /&gt;
 . : channel&lt;br /&gt;
 + : ground&lt;br /&gt;
 # : wall&lt;br /&gt;
 n : floodgate connected to plate number n&lt;br /&gt;
 p : pressure plate true when depth 1-3&lt;br /&gt;
 q : pressure plate true when depth 4-7&lt;br /&gt;
 I : input channel 1&lt;br /&gt;
 J : input channel 2&lt;br /&gt;
 O : output channel&lt;br /&gt;
 D : to runoff tank, so it doesn’t all jam. I’ve assumed a single level for the basic design,&amp;lt;br /&amp;gt; but a far more efficient model (presented below) assumes that this tank is two levels down,&amp;lt;br /&amp;gt; and that D is a two-z-level pit. &lt;br /&gt;
 H : from full reservoir. Again, basic designs are for a single level, but a far more efficient&amp;lt;br /&amp;gt; model (presented below) assumes that this tank is one level up, and H is a hole in the ceiling.&lt;br /&gt;
 Water == true; no water == false&lt;br /&gt;
&lt;br /&gt;
Pressure plates are numbered top to bottom, and then left to right within rows with multiple plates. For example:&lt;br /&gt;
 ##1####2###&lt;br /&gt;
 #+++34++++#&lt;br /&gt;
 #++++++56+#&lt;br /&gt;
 ##7########&lt;br /&gt;
&lt;br /&gt;
'''Single-level designs:'''&amp;lt;br /&amp;gt;&lt;br /&gt;
NOT gate:&lt;br /&gt;
 ######&lt;br /&gt;
 H....#&lt;br /&gt;
 #++1+#&lt;br /&gt;
 Ip+..O&lt;br /&gt;
 #D##+#&lt;br /&gt;
&lt;br /&gt;
OR gate:&lt;br /&gt;
 ##########&lt;br /&gt;
 H........#&lt;br /&gt;
 #++++++12#&lt;br /&gt;
 D.+...+..#&lt;br /&gt;
 #q+q+.++.O&lt;br /&gt;
 #I#J#D####&lt;br /&gt;
&lt;br /&gt;
NOR gate:&lt;br /&gt;
 ##########&lt;br /&gt;
 H........#&lt;br /&gt;
 #++++++12#&lt;br /&gt;
 D.+...+..#&lt;br /&gt;
 #p+p+.++.O&lt;br /&gt;
 #I#J#D####&lt;br /&gt;
&lt;br /&gt;
AND gate:&lt;br /&gt;
 #########&lt;br /&gt;
 H.......#&lt;br /&gt;
 #++++++1#&lt;br /&gt;
 D.+...+2#&lt;br /&gt;
 #q+q+.+.O&lt;br /&gt;
 #I#J#D###&lt;br /&gt;
&lt;br /&gt;
NAND gate:&lt;br /&gt;
 #########&lt;br /&gt;
 H.......#&lt;br /&gt;
 #++++++1#&lt;br /&gt;
 D.+...+2#&lt;br /&gt;
 #p+p+.+.O&lt;br /&gt;
 #I#J#D###&lt;br /&gt;
&lt;br /&gt;
XOR gate:&lt;br /&gt;
 ###############&lt;br /&gt;
 H.............#&lt;br /&gt;
 #++++++++13+++#&lt;br /&gt;
 #+++++++++..24O&lt;br /&gt;
 J.p.q+pq.+++++#&lt;br /&gt;
 ####D#I#D######&lt;br /&gt;
&lt;br /&gt;
Alternative XOR gate:&lt;br /&gt;
 #############&lt;br /&gt;
 H...........#&lt;br /&gt;
 #++++++12+++#&lt;br /&gt;
 #+++++++..12O&lt;br /&gt;
 J.p+p..+++++#&lt;br /&gt;
 ##D#I#D######&lt;br /&gt;
The pair of floodgates closest to the output (the ones in series) are open when they’re connected to the plates, and the pair of floodgates closest to the reservoir are closed when they’re connected to the plates. Additionally, if the two in series are connected to a lever, this setup can be turned into an AND gate simply by pulling the lever.&lt;br /&gt;
 &lt;br /&gt;
'''Multi-level designs:'''&amp;lt;br /&amp;gt;&lt;br /&gt;
NOT gate:&lt;br /&gt;
 ###H##&lt;br /&gt;
 #++1+#&lt;br /&gt;
 Ip+..O&lt;br /&gt;
 #D####&lt;br /&gt;
&lt;br /&gt;
OR gate:&lt;br /&gt;
 #######&lt;br /&gt;
 IqD+H.#&lt;br /&gt;
 #+++12#&lt;br /&gt;
 JqD+..O&lt;br /&gt;
 #######&lt;br /&gt;
&lt;br /&gt;
NOR gate:&lt;br /&gt;
 #######&lt;br /&gt;
 IpD+H.#&lt;br /&gt;
 #+++12#&lt;br /&gt;
 JpD+..O&lt;br /&gt;
 #######&lt;br /&gt;
&lt;br /&gt;
AND gate:&lt;br /&gt;
 #######&lt;br /&gt;
 IqD+H+#&lt;br /&gt;
 #+++1+#&lt;br /&gt;
 JqD+2.O&lt;br /&gt;
 #######&lt;br /&gt;
&lt;br /&gt;
NAND gate:&lt;br /&gt;
 #######&lt;br /&gt;
 IpD+H+#&lt;br /&gt;
 #+++1+#&lt;br /&gt;
 JpD+2.O&lt;br /&gt;
 #######&lt;br /&gt;
&lt;br /&gt;
XOR gate:&lt;br /&gt;
 ###########&lt;br /&gt;
 IpqD+H.+++#&lt;br /&gt;
 #++++13+++#&lt;br /&gt;
 JpqD+...24O&lt;br /&gt;
 ###########&lt;br /&gt;
&lt;br /&gt;
Alternative XOR gate:&lt;br /&gt;
&lt;br /&gt;
 ##########&lt;br /&gt;
 IpD+H.+++#&lt;br /&gt;
 #+++12+++#&lt;br /&gt;
 JpD+...12O&lt;br /&gt;
 ##########&lt;br /&gt;
The pair of floodgates closest to the output (the ones in series) are open when they’re connected to the plates, and the pair of floodgates closest to the reservoir are closed when they’re connected to the plates. Additionally, if the two in series are connected to a lever, this setup can be turned into an AND gate by pulling the lever.&lt;br /&gt;
&lt;br /&gt;
[[User:Madmadmadmage|Madmadmadmage]] 16:53, 9 December 2007 (EST)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Have you tested these at all? I translated your multi-level NOT gate into a form I could understand better after designing some gates myself, and looked at it. It doesn't look to me like it would work at all - First, water flows diagonally, so the water would just flow around the floodgate. Second, if water didn't flow diagonally, and you opened the floodgate because of an input signal, water from the reservoir would then hold the floodgate open by covering the pressure plate even if you shut off the input signal. You'd also need to do something other than just have the drain always open or you might not even trigger the pressure plate because it's draining too fast. --[[User:SL|SL]] 19:17, 23 December 2007 (EST)&lt;br /&gt;
&lt;br /&gt;
No, I did not test any of these. I forgot that water flows around corners; I usually work with straight passages and put my gates in places where it doesn't matter. I'll fix that. As for draining water, you're correct on one point: the water would drain off too fast to trigger the plates. It would drain out to one, so the part about it not draining out isn't a problem. The draining-too-fast problem can also be solved: set the plate to activate on any depth-two water. That would mean it would take a tiny bit longer to drain (although not much), but it would also make it open if any water at all were coming to the input. I'll have to build a fortress specifically to test these ideas (an aquifer would be useful). Give me a few weeks. [[User:Madmadmadmage|Madmadmadmage]] 02:14, 27 December 2007 (EST)&lt;/div&gt;</summary>
		<author><name>Madmadmadmage</name></author>
	</entry>
	<entry>
		<id>https://dwarffortresswiki.org/index.php?title=40d_Talk:Computing&amp;diff=28858</id>
		<title>40d Talk:Computing</title>
		<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php?title=40d_Talk:Computing&amp;diff=28858"/>
		<updated>2007-12-27T07:14:37Z</updated>

		<summary type="html">&lt;p&gt;Madmadmadmage: /* Fluid logic gates */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;I created this page because I think it's a very interesting part of the game for advanced players.  I'm not at all familiar with creating wiki pages, so if someone else who was familiar with the concepts could write a section or two themselves, that would be grand.  Right now I think it's been proven possible to create logical input and output gates using fluid dynamics, axles and gears, and even the movements of dwarves utilizing pressure plates.&lt;br /&gt;
&lt;br /&gt;
It was on the 4th of Galena 1097 that the Fortress 'The Net of Skies' became self-aware.  Panicked mechanics attempted to disengage the mechanisms, but the fortress interpreted this as an attack and designated all Dwarves as hostile... --[[User:WyldKarde|WyldKarde]] 13:17, 23 November 2007 (EST)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:A suggested component: The one-use lever.&lt;br /&gt;
&lt;br /&gt;
 ó _X_ ___ / = ramp X = door&lt;br /&gt;
 #&amp;quot; ¯ /### &amp;quot; = bridge&lt;br /&gt;
 #########&lt;br /&gt;
&lt;br /&gt;
:The lever has a Pull The Lever repeat job on it. The door only opens when access is required. Upon being pulled, the lever opens the bridge and drops the dwarf that pulled it. -- [[User:Zaratustra|Zaratustra]] 14:56, 23 November 2007 (EST)&lt;br /&gt;
:Problem detected: the lever doesn't obstruct, so the dwarf can be left hanging on the lever's tile.&lt;br /&gt;
&lt;br /&gt;
I think we should strive to include an example of an NAND gate and/or a NOR gate for each style since that's the bare minimum for operation.--[[User:AlBorland|AlBorland]] 22:09, 23 November 2007 (EST)&lt;br /&gt;
&lt;br /&gt;
== Machine logic ==&lt;br /&gt;
&lt;br /&gt;
The machine logic gates as they stand are incomplete.  The inputs are levers, but the outputs are machine components.  In order to connect a machine logic gate to another gate, the machine signal needs to be converted back into a lever signal.  The only way I can see to do that is with a water tank, a pump, and a pressure plate. --[[User:Peristarkawan|Peristarkawan]] 12:38, 28 November 2007 (EST)&lt;br /&gt;
&lt;br /&gt;
== Anthills ==&lt;br /&gt;
&lt;br /&gt;
Kudos to whoever mods ants to be trainable for borg machines...  Hex anyone? :D [[User:N35t0r|N35t0r]] 20:28, 8 December 2007 (EST)&lt;br /&gt;
: This would make that person my favoritest ever.  --[[User:Geofferic|Geofferic]] 01:36, 9 December 2007 (EST)&lt;br /&gt;
: Agreed. [[User:Madmadmadmage|Madmadmadmage]] 15:13, 9 December 2007 (EST)&lt;br /&gt;
&lt;br /&gt;
== Fluid logic gates ==&lt;br /&gt;
&lt;br /&gt;
I got bored, so here, have some gates. I don't know the offical DF format for fortress snippets, so I've posted them here and hoped someone will be bored enough to format them correctly. I also don't really post on Wikis very much, so if this isn't the kind of thing you're all looking for, delete it. There might also be a few errors; I haven't actually tested any of these, and I'm not exactly sure about the XORs. I know that I could have made a few of these more compact by having the fluid perform the OR themselves, but that would have caused backwash into any dry inputs, possibly corrupting the system. If you have yours set up right, you don't need that.&lt;br /&gt;
&lt;br /&gt;
:Edit:Also, you might want to connect your reservoir to the floodgates on the other side with another, lever-controlled, floodgate in between. That way you don't have problems with mechanical delays and fluid getting through where it's not supposed to because a gate hasn't closed yet. [[User:Madmadmadmage|Madmadmadmage]] 18:05, 9 December 2007 (EST)&lt;br /&gt;
&lt;br /&gt;
Notation:&lt;br /&gt;
 . : channel&lt;br /&gt;
 + : ground&lt;br /&gt;
 # : wall&lt;br /&gt;
 n : floodgate connected to plate number n&lt;br /&gt;
 p : pressure plate true when depth 1-3&lt;br /&gt;
 q : pressure plate true when depth 4-7&lt;br /&gt;
 I : input channel 1&lt;br /&gt;
 J : input channel 2&lt;br /&gt;
 O : output channel&lt;br /&gt;
 D : to runoff tank, so it doesn’t all jam. I’ve assumed a single level for the basic design,&amp;lt;br /&amp;gt; but a far more efficient model (presented below) assumes that this tank is two levels down,&amp;lt;br /&amp;gt; and that D is a two-z-level pit. &lt;br /&gt;
 H : from full reservoir. Again, basic designs are for a single level, but a far more efficient&amp;lt;br /&amp;gt; model (presented below) assumes that this tank is one level up, and H is a hole in the ceiling.&lt;br /&gt;
 Water == true; no water == false&lt;br /&gt;
&lt;br /&gt;
Pressure plates are numbered top to bottom, and then left to right within rows with multiple plates. For example:&lt;br /&gt;
 ##1####2###&lt;br /&gt;
 #+++34++++#&lt;br /&gt;
 #++++++56+#&lt;br /&gt;
 ##7########&lt;br /&gt;
&lt;br /&gt;
'''Single-level designs:'''&amp;lt;br /&amp;gt;&lt;br /&gt;
NOT gate:&lt;br /&gt;
 #####&lt;br /&gt;
 H...#&lt;br /&gt;
 #++.#&lt;br /&gt;
 Ip+1O&lt;br /&gt;
 #D###&lt;br /&gt;
&lt;br /&gt;
OR gate:&lt;br /&gt;
 ##########&lt;br /&gt;
 H........#&lt;br /&gt;
 #++++++12#&lt;br /&gt;
 D.+...+..#&lt;br /&gt;
 #q+q+.++.O&lt;br /&gt;
 #I#J#D####&lt;br /&gt;
&lt;br /&gt;
NOR gate:&lt;br /&gt;
 ##########&lt;br /&gt;
 H........#&lt;br /&gt;
 #++++++12#&lt;br /&gt;
 D.+...+..#&lt;br /&gt;
 #p+p+.++.O&lt;br /&gt;
 #I#J#D####&lt;br /&gt;
&lt;br /&gt;
AND gate:&lt;br /&gt;
 #########&lt;br /&gt;
 H.......#&lt;br /&gt;
 #++++++1#&lt;br /&gt;
 D.+...+2#&lt;br /&gt;
 #q+q+.+.O&lt;br /&gt;
 #I#J#D###&lt;br /&gt;
&lt;br /&gt;
NAND gate:&lt;br /&gt;
 #########&lt;br /&gt;
 H.......#&lt;br /&gt;
 #++++++1#&lt;br /&gt;
 D.+...+2#&lt;br /&gt;
 #p+p+.+.O&lt;br /&gt;
 #I#J#D###&lt;br /&gt;
&lt;br /&gt;
XOR gate:&lt;br /&gt;
 #############&lt;br /&gt;
 H...........#&lt;br /&gt;
 #+++++++13++#&lt;br /&gt;
 #++++++++.24O&lt;br /&gt;
 J.pq+pq.++++#&lt;br /&gt;
 ###D#I#D#####&lt;br /&gt;
&lt;br /&gt;
Alternative XOR gate:&lt;br /&gt;
 ############&lt;br /&gt;
 H..........#&lt;br /&gt;
 #++++++12++#&lt;br /&gt;
 #+++++++.12O&lt;br /&gt;
 J.p+p..++++#&lt;br /&gt;
 ##D#I#D#####&lt;br /&gt;
The pair of floodgates closest to the output (the ones in series) are open when they’re connected to the plates, and the pair of floodgates closest to the reservoir are closed when they’re connected to the plates. Additionally, if the two in series are connected to a lever, this setup can be turned into an AND gate simply by pulling the lever.&lt;br /&gt;
 &lt;br /&gt;
'''Multi-level designs:'''&amp;lt;br /&amp;gt;&lt;br /&gt;
Note that in any of these designs, any floodgates connected directly to the H can have an H moved directly above them, making the designs of the OR, NOR, and XOR gates much more compact (and probably faster).&lt;br /&gt;
NOT gate:&lt;br /&gt;
 ###H#&lt;br /&gt;
 #++1O&lt;br /&gt;
 Ip++#&lt;br /&gt;
 #D###&lt;br /&gt;
&lt;br /&gt;
OR gate:&lt;br /&gt;
 #######&lt;br /&gt;
 IqD+H.#&lt;br /&gt;
 #+++12#&lt;br /&gt;
 JqD+..O&lt;br /&gt;
 #######&lt;br /&gt;
&lt;br /&gt;
NOR gate:&lt;br /&gt;
 #######&lt;br /&gt;
 IpD+H.#&lt;br /&gt;
 #+++12#&lt;br /&gt;
 JpD+..O&lt;br /&gt;
 #######&lt;br /&gt;
&lt;br /&gt;
AND gate:&lt;br /&gt;
 #######&lt;br /&gt;
 IqD+H+#&lt;br /&gt;
 #+++12O&lt;br /&gt;
 JqD+++#&lt;br /&gt;
 #######&lt;br /&gt;
&lt;br /&gt;
NAND gate:&lt;br /&gt;
 #######&lt;br /&gt;
 IpD+H+#&lt;br /&gt;
 #+++12O&lt;br /&gt;
 JpD+++#&lt;br /&gt;
 #######&lt;br /&gt;
&lt;br /&gt;
XOR gate:&lt;br /&gt;
 ##########&lt;br /&gt;
 IpqD+H.++#&lt;br /&gt;
 #++++13++#&lt;br /&gt;
 JpqD+..24O&lt;br /&gt;
 ##########&lt;br /&gt;
&lt;br /&gt;
Alternative XOR gate:&lt;br /&gt;
&lt;br /&gt;
 #########&lt;br /&gt;
 IpD+H.++#&lt;br /&gt;
 #+++12++#&lt;br /&gt;
 JpD+..12O&lt;br /&gt;
 #########&lt;br /&gt;
The pair of floodgates closest to the output (the ones in series) are open when they’re connected to the plates, and the pair of floodgates closest to the reservoir are closed when they’re connected to the plates. Additionally, if the two in series are connected to a lever, this setup can be turned into an AND gate by pulling the lever.&lt;br /&gt;
&lt;br /&gt;
[[User:Madmadmadmage|Madmadmadmage]] 16:53, 9 December 2007 (EST)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Have you tested these at all? I translated your multi-level NOT gate into a form I could understand better after designing some gates myself, and looked at it. It doesn't look to me like it would work at all - First, water flows diagonally, so the water would just flow around the floodgate. Second, if water didn't flow diagonally, and you opened the floodgate because of an input signal, water from the reservoir would then hold the floodgate open by covering the pressure plate even if you shut off the input signal. You'd also need to do something other than just have the drain always open or you might not even trigger the pressure plate because it's draining too fast. --[[User:SL|SL]] 19:17, 23 December 2007 (EST)&lt;br /&gt;
&lt;br /&gt;
No, I did not test any of these. I forgot that water flows around corners; I usually work with straight passages and put my gates in places where it doesn't matter. I'll fix that. As for draining water, you're correct on one point: the water would drain off too fast to trigger the plates. It would drain out to below the threshold, so the part about it not draining out isn't a problem. The draining-too-fast problem can also be solved: set the plate to activate on any depth-two water. That would mean it would take a tiny bit longer to drain (although not much), but it would also make it open if any water at all were coming to the input. I'll have to build a fortress specifically to test these ideas (an aquifer would be useful). Give me a few weeks. [[User:Madmadmadmage|Madmadmadmage]] 02:14, 27 December 2007 (EST)&lt;/div&gt;</summary>
		<author><name>Madmadmadmage</name></author>
	</entry>
	<entry>
		<id>https://dwarffortresswiki.org/index.php?title=40d_Talk:Computing&amp;diff=28857</id>
		<title>40d Talk:Computing</title>
		<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php?title=40d_Talk:Computing&amp;diff=28857"/>
		<updated>2007-12-27T07:14:01Z</updated>

		<summary type="html">&lt;p&gt;Madmadmadmage: /* Fluid logic gates */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;I created this page because I think it's a very interesting part of the game for advanced players.  I'm not at all familiar with creating wiki pages, so if someone else who was familiar with the concepts could write a section or two themselves, that would be grand.  Right now I think it's been proven possible to create logical input and output gates using fluid dynamics, axles and gears, and even the movements of dwarves utilizing pressure plates.&lt;br /&gt;
&lt;br /&gt;
It was on the 4th of Galena 1097 that the Fortress 'The Net of Skies' became self-aware.  Panicked mechanics attempted to disengage the mechanisms, but the fortress interpreted this as an attack and designated all Dwarves as hostile... --[[User:WyldKarde|WyldKarde]] 13:17, 23 November 2007 (EST)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:A suggested component: The one-use lever.&lt;br /&gt;
&lt;br /&gt;
 ó _X_ ___ / = ramp X = door&lt;br /&gt;
 #&amp;quot; ¯ /### &amp;quot; = bridge&lt;br /&gt;
 #########&lt;br /&gt;
&lt;br /&gt;
:The lever has a Pull The Lever repeat job on it. The door only opens when access is required. Upon being pulled, the lever opens the bridge and drops the dwarf that pulled it. -- [[User:Zaratustra|Zaratustra]] 14:56, 23 November 2007 (EST)&lt;br /&gt;
:Problem detected: the lever doesn't obstruct, so the dwarf can be left hanging on the lever's tile.&lt;br /&gt;
&lt;br /&gt;
I think we should strive to include an example of an NAND gate and/or a NOR gate for each style since that's the bare minimum for operation.--[[User:AlBorland|AlBorland]] 22:09, 23 November 2007 (EST)&lt;br /&gt;
&lt;br /&gt;
== Machine logic ==&lt;br /&gt;
&lt;br /&gt;
The machine logic gates as they stand are incomplete.  The inputs are levers, but the outputs are machine components.  In order to connect a machine logic gate to another gate, the machine signal needs to be converted back into a lever signal.  The only way I can see to do that is with a water tank, a pump, and a pressure plate. --[[User:Peristarkawan|Peristarkawan]] 12:38, 28 November 2007 (EST)&lt;br /&gt;
&lt;br /&gt;
== Anthills ==&lt;br /&gt;
&lt;br /&gt;
Kudos to whoever mods ants to be trainable for borg machines...  Hex anyone? :D [[User:N35t0r|N35t0r]] 20:28, 8 December 2007 (EST)&lt;br /&gt;
: This would make that person my favoritest ever.  --[[User:Geofferic|Geofferic]] 01:36, 9 December 2007 (EST)&lt;br /&gt;
: Agreed. [[User:Madmadmadmage|Madmadmadmage]] 15:13, 9 December 2007 (EST)&lt;br /&gt;
&lt;br /&gt;
== Fluid logic gates ==&lt;br /&gt;
&lt;br /&gt;
I got bored, so here, have some gates. I don't know the offical DF format for fortress snippets, so I've posted them here and hoped someone will be bored enough to format them correctly. I also don't really post on Wikis very much, so if this isn't the kind of thing you're all looking for, delete it. There might also be a few errors; I haven't actually tested any of these, and I'm not exactly sure about the XORs. I know that I could have made a few of these more compact by having the fluid perform the OR themselves, but that would have caused backwash into any dry inputs, possibly corrupting the system. If you have yours set up right, you don't need that.&lt;br /&gt;
&lt;br /&gt;
:Edit:Also, you might want to connect your reservoir to the floodgates on the other side with another, lever-controlled, floodgate in between. That way you don't have problems with mechanical delays and fluid getting through where it's not supposed to because a gate hasn't closed yet. [[User:Madmadmadmage|Madmadmadmage]] 18:05, 9 December 2007 (EST)&lt;br /&gt;
&lt;br /&gt;
Notation:&lt;br /&gt;
 . : channel&lt;br /&gt;
 + : ground&lt;br /&gt;
 # : wall&lt;br /&gt;
 n : floodgate connected to plate number n&lt;br /&gt;
 p : pressure plate true when depth 1-3&lt;br /&gt;
 q : pressure plate true when depth 4-7&lt;br /&gt;
 I : input channel 1&lt;br /&gt;
 J : input channel 2&lt;br /&gt;
 O : output channel&lt;br /&gt;
 D : to runoff tank, so it doesn’t all jam. I’ve assumed a single level for the basic design,&amp;lt;br /&amp;gt; but a far more efficient model (presented below) assumes that this tank is two levels down,&amp;lt;br /&amp;gt; and that D is a two-z-level pit. &lt;br /&gt;
 H : from full reservoir. Again, basic designs are for a single level, but a far more efficient&amp;lt;br /&amp;gt; model (presented below) assumes that this tank is one level up, and H is a hole in the ceiling.&lt;br /&gt;
 Water == true; no water == false&lt;br /&gt;
&lt;br /&gt;
Pressure plates are numbered top to bottom, and then left to right within rows with multiple plates. For example:&lt;br /&gt;
 ##1####2###&lt;br /&gt;
 #+++34++++#&lt;br /&gt;
 #++++++56+#&lt;br /&gt;
 ##7########&lt;br /&gt;
&lt;br /&gt;
'''Single-level designs:'''&amp;lt;br /&amp;gt;&lt;br /&gt;
NOT gate:&lt;br /&gt;
 #####&lt;br /&gt;
 H...#&lt;br /&gt;
 #++.#&lt;br /&gt;
 Ip+1O&lt;br /&gt;
 #D###&lt;br /&gt;
&lt;br /&gt;
OR gate:&lt;br /&gt;
 ##########&lt;br /&gt;
 H........#&lt;br /&gt;
 #++++++12#&lt;br /&gt;
 D.+...+..#&lt;br /&gt;
 #q+q+.++.O&lt;br /&gt;
 #I#J#D####&lt;br /&gt;
&lt;br /&gt;
NOR gate:&lt;br /&gt;
 ##########&lt;br /&gt;
 H........#&lt;br /&gt;
 #++++++12#&lt;br /&gt;
 D.+...+..#&lt;br /&gt;
 #p+p+.++.O&lt;br /&gt;
 #I#J#D####&lt;br /&gt;
&lt;br /&gt;
AND gate:&lt;br /&gt;
 #########&lt;br /&gt;
 H.......#&lt;br /&gt;
 #++++++1#&lt;br /&gt;
 D.+...+2#&lt;br /&gt;
 #q+q+.+.O&lt;br /&gt;
 #I#J#D###&lt;br /&gt;
&lt;br /&gt;
NAND gate:&lt;br /&gt;
 #########&lt;br /&gt;
 H.......#&lt;br /&gt;
 #++++++1#&lt;br /&gt;
 D.+...+2#&lt;br /&gt;
 #p+p+.+.O&lt;br /&gt;
 #I#J#D###&lt;br /&gt;
&lt;br /&gt;
XOR gate:&lt;br /&gt;
 #############&lt;br /&gt;
 H...........#&lt;br /&gt;
 #+++++++13++#&lt;br /&gt;
 #++++++++.24O&lt;br /&gt;
 J.pq+pq.++++#&lt;br /&gt;
 ###D#I#D#####&lt;br /&gt;
&lt;br /&gt;
Alternative XOR gate:&lt;br /&gt;
 ############&lt;br /&gt;
 H..........#&lt;br /&gt;
 #++++++12++#&lt;br /&gt;
 #+++++++.12O&lt;br /&gt;
 J.p+p..++++#&lt;br /&gt;
 ##D#I#D#####&lt;br /&gt;
The pair of floodgates closest to the output (the ones in series) are open when they’re connected to the plates, and the pair of floodgates closest to the reservoir are closed when they’re connected to the plates. Additionally, if the two in series are connected to a lever, this setup can be turned into an AND gate simply by pulling the lever.&lt;br /&gt;
 &lt;br /&gt;
'''Multi-level designs:'''&amp;lt;br /&amp;gt;&lt;br /&gt;
Note that in any of these designs, any floodgates connected directly to the H can have an H moved directly above them, making the designs of the OR, NOR, and XOR gates much more compact (and probably faster).&lt;br /&gt;
NOT gate:&lt;br /&gt;
 ###H#&lt;br /&gt;
 #++1O&lt;br /&gt;
 Ip++#&lt;br /&gt;
 #D###&lt;br /&gt;
&lt;br /&gt;
OR gate:&lt;br /&gt;
 #######&lt;br /&gt;
 IqD+H.#&lt;br /&gt;
 #+++12#&lt;br /&gt;
 JqD+..O&lt;br /&gt;
 #######&lt;br /&gt;
&lt;br /&gt;
NOR gate:&lt;br /&gt;
 #######&lt;br /&gt;
 IpD+H.#&lt;br /&gt;
 #+++12#&lt;br /&gt;
 JpD+..O&lt;br /&gt;
 #######&lt;br /&gt;
&lt;br /&gt;
AND gate:&lt;br /&gt;
 #######&lt;br /&gt;
 IqD+H+#&lt;br /&gt;
 #+++12O&lt;br /&gt;
 JqD+++#&lt;br /&gt;
 #######&lt;br /&gt;
&lt;br /&gt;
NAND gate:&lt;br /&gt;
 #######&lt;br /&gt;
 IpD+H+#&lt;br /&gt;
 #+++12O&lt;br /&gt;
 JpD+++#&lt;br /&gt;
 #######&lt;br /&gt;
&lt;br /&gt;
XOR gate:&lt;br /&gt;
 ##########&lt;br /&gt;
 IpqD+H.++#&lt;br /&gt;
 #++++13++#&lt;br /&gt;
 JpqD+..24O&lt;br /&gt;
 ##########&lt;br /&gt;
&lt;br /&gt;
Alternative XOR gate:&lt;br /&gt;
&lt;br /&gt;
 #########&lt;br /&gt;
 IpD+H.++#&lt;br /&gt;
 #+++12++#&lt;br /&gt;
 JpD+..12O&lt;br /&gt;
 #########&lt;br /&gt;
The pair of floodgates closest to the output (the ones in series) are open when they’re connected to the plates, and the pair of floodgates closest to the reservoir are closed when they’re connected to the plates. Additionally, if the two in series are connected to a lever, this setup can be turned into an AND gate by pulling the lever.&lt;br /&gt;
&lt;br /&gt;
[[User:Madmadmadmage|Madmadmadmage]] 16:53, 9 December 2007 (EST)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Have you tested these at all? I translated your multi-level NOT gate into a form I could understand better after designing some gates myself, and looked at it. It doesn't look to me like it would work at all - First, water flows diagonally, so the water would just flow around the floodgate. Second, if water didn't flow diagonally, and you opened the floodgate because of an input signal, water from the reservoir would then hold the floodgate open by covering the pressure plate even if you shut off the input signal. You'd also need to do something other than just have the drain always open or you might not even trigger the pressure plate because it's draining too fast. --[[User:SL|SL]] 19:17, 23 December 2007 (EST)&lt;br /&gt;
&lt;br /&gt;
No, I did not test any of these. I forgot that water flows around corners; I usually work with straight passages and put my gates in places where it doesn't matter. I'll fix that. As for draining water, you're correct on one point: the water would drain off too fast to trigger the plates. It would drain out to below the threshold, so the part about it not draining out isn't a problem. The draining-too-fast problem can also be solved: set the plate to activate on any depth-two water. That would mean it would take a tiny bit longer to drain (although not much), but it would also make it open if any water at all were coming to the input. I'll have to build a fortress specifically to test these ideas (an aquifer would be a favorite). Give me a few weeks. [[User:Madmadmadmage|Madmadmadmage]] 02:14, 27 December 2007 (EST)&lt;/div&gt;</summary>
		<author><name>Madmadmadmage</name></author>
	</entry>
	<entry>
		<id>https://dwarffortresswiki.org/index.php?title=40d_Talk:Computing&amp;diff=28856</id>
		<title>40d Talk:Computing</title>
		<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php?title=40d_Talk:Computing&amp;diff=28856"/>
		<updated>2007-12-27T07:13:24Z</updated>

		<summary type="html">&lt;p&gt;Madmadmadmage: /* Fluid logic gates */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;I created this page because I think it's a very interesting part of the game for advanced players.  I'm not at all familiar with creating wiki pages, so if someone else who was familiar with the concepts could write a section or two themselves, that would be grand.  Right now I think it's been proven possible to create logical input and output gates using fluid dynamics, axles and gears, and even the movements of dwarves utilizing pressure plates.&lt;br /&gt;
&lt;br /&gt;
It was on the 4th of Galena 1097 that the Fortress 'The Net of Skies' became self-aware.  Panicked mechanics attempted to disengage the mechanisms, but the fortress interpreted this as an attack and designated all Dwarves as hostile... --[[User:WyldKarde|WyldKarde]] 13:17, 23 November 2007 (EST)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:A suggested component: The one-use lever.&lt;br /&gt;
&lt;br /&gt;
 ó _X_ ___ / = ramp X = door&lt;br /&gt;
 #&amp;quot; ¯ /### &amp;quot; = bridge&lt;br /&gt;
 #########&lt;br /&gt;
&lt;br /&gt;
:The lever has a Pull The Lever repeat job on it. The door only opens when access is required. Upon being pulled, the lever opens the bridge and drops the dwarf that pulled it. -- [[User:Zaratustra|Zaratustra]] 14:56, 23 November 2007 (EST)&lt;br /&gt;
:Problem detected: the lever doesn't obstruct, so the dwarf can be left hanging on the lever's tile.&lt;br /&gt;
&lt;br /&gt;
I think we should strive to include an example of an NAND gate and/or a NOR gate for each style since that's the bare minimum for operation.--[[User:AlBorland|AlBorland]] 22:09, 23 November 2007 (EST)&lt;br /&gt;
&lt;br /&gt;
== Machine logic ==&lt;br /&gt;
&lt;br /&gt;
The machine logic gates as they stand are incomplete.  The inputs are levers, but the outputs are machine components.  In order to connect a machine logic gate to another gate, the machine signal needs to be converted back into a lever signal.  The only way I can see to do that is with a water tank, a pump, and a pressure plate. --[[User:Peristarkawan|Peristarkawan]] 12:38, 28 November 2007 (EST)&lt;br /&gt;
&lt;br /&gt;
== Anthills ==&lt;br /&gt;
&lt;br /&gt;
Kudos to whoever mods ants to be trainable for borg machines...  Hex anyone? :D [[User:N35t0r|N35t0r]] 20:28, 8 December 2007 (EST)&lt;br /&gt;
: This would make that person my favoritest ever.  --[[User:Geofferic|Geofferic]] 01:36, 9 December 2007 (EST)&lt;br /&gt;
: Agreed. [[User:Madmadmadmage|Madmadmadmage]] 15:13, 9 December 2007 (EST)&lt;br /&gt;
&lt;br /&gt;
== Fluid logic gates ==&lt;br /&gt;
&lt;br /&gt;
I got bored, so here, have some gates. I don't know the offical DF format for fortress snippets, so I've posted them here and hoped someone will be bored enough to format them correctly. I also don't really post on Wikis very much, so if this isn't the kind of thing you're all looking for, delete it. There might also be a few errors; I haven't actually tested any of these, and I'm not exactly sure about the XORs. I know that I could have made a few of these more compact by having the fluid perform the OR themselves, but that would have caused backwash into any dry inputs, possibly corrupting the system. If you have yours set up right, you don't need that.&lt;br /&gt;
&lt;br /&gt;
:Edit:Also, you might want to connect your reservoir to the floodgates on the other side with another, lever-controlled, floodgate in between. That way you don't have problems with mechanical delays and fluid getting through where it's not supposed to because a gate hasn't closed yet. [[User:Madmadmadmage|Madmadmadmage]] 18:05, 9 December 2007 (EST)&lt;br /&gt;
&lt;br /&gt;
Notation:&lt;br /&gt;
 . : channel&lt;br /&gt;
 + : ground&lt;br /&gt;
 # : wall&lt;br /&gt;
 n : floodgate connected to plate number n&lt;br /&gt;
 p : pressure plate true when depth 1-3&lt;br /&gt;
 q : pressure plate true when depth 4-7&lt;br /&gt;
 I : input channel 1&lt;br /&gt;
 J : input channel 2&lt;br /&gt;
 O : output channel&lt;br /&gt;
 D : to runoff tank, so it doesn’t all jam. I’ve assumed a single level for the basic design,&amp;lt;br /&amp;gt; but a far more efficient model (presented below) assumes that this tank is two levels down,&amp;lt;br /&amp;gt; and that D is a two-z-level pit. &lt;br /&gt;
 H : from full reservoir. Again, basic designs are for a single level, but a far more efficient&amp;lt;br /&amp;gt; model (presented below) assumes that this tank is one level up, and H is a hole in the ceiling.&lt;br /&gt;
 Water == true; no water == false&lt;br /&gt;
&lt;br /&gt;
Pressure plates are numbered top to bottom, and then left to right within rows with multiple plates. For example:&lt;br /&gt;
 ##1####2###&lt;br /&gt;
 #+++34++++#&lt;br /&gt;
 #++++++56+#&lt;br /&gt;
 ##7########&lt;br /&gt;
&lt;br /&gt;
'''Single-level designs:'''&amp;lt;br /&amp;gt;&lt;br /&gt;
NOT gate:&lt;br /&gt;
 #####&lt;br /&gt;
 H...#&lt;br /&gt;
 #++.#&lt;br /&gt;
 Ip+1O&lt;br /&gt;
 #D###&lt;br /&gt;
&lt;br /&gt;
OR gate:&lt;br /&gt;
 ##########&lt;br /&gt;
 H........#&lt;br /&gt;
 #++++++12#&lt;br /&gt;
 D.+...+..#&lt;br /&gt;
 #q+q+.++.O&lt;br /&gt;
 #I#J#D####&lt;br /&gt;
&lt;br /&gt;
NOR gate:&lt;br /&gt;
 ##########&lt;br /&gt;
 H........#&lt;br /&gt;
 #++++++12#&lt;br /&gt;
 D.+...+..#&lt;br /&gt;
 #p+p+.++.O&lt;br /&gt;
 #I#J#D####&lt;br /&gt;
&lt;br /&gt;
AND gate:&lt;br /&gt;
 #########&lt;br /&gt;
 H.......#&lt;br /&gt;
 #++++++1#&lt;br /&gt;
 D.+...+2#&lt;br /&gt;
 #q+q+.+.O&lt;br /&gt;
 #I#J#D###&lt;br /&gt;
&lt;br /&gt;
NAND gate:&lt;br /&gt;
 #########&lt;br /&gt;
 H.......#&lt;br /&gt;
 #++++++1#&lt;br /&gt;
 D.+...+2#&lt;br /&gt;
 #p+p+.+.O&lt;br /&gt;
 #I#J#D###&lt;br /&gt;
&lt;br /&gt;
XOR gate:&lt;br /&gt;
 #############&lt;br /&gt;
 H...........#&lt;br /&gt;
 #+++++++13++#&lt;br /&gt;
 #++++++++.24O&lt;br /&gt;
 J.pq+pq.++++#&lt;br /&gt;
 ###D#I#D#####&lt;br /&gt;
&lt;br /&gt;
Alternative XOR gate:&lt;br /&gt;
 ############&lt;br /&gt;
 H..........#&lt;br /&gt;
 #++++++12++#&lt;br /&gt;
 #+++++++.12O&lt;br /&gt;
 J.p+p..++++#&lt;br /&gt;
 ##D#I#D#####&lt;br /&gt;
The pair of floodgates closest to the output (the ones in series) are open when they’re connected to the plates, and the pair of floodgates closest to the reservoir are closed when they’re connected to the plates. Additionally, if the two in series are connected to a lever, this setup can be turned into an AND gate simply by pulling the lever.&lt;br /&gt;
 &lt;br /&gt;
'''Multi-level designs:'''&amp;lt;br /&amp;gt;&lt;br /&gt;
Note that in any of these designs, any floodgates connected directly to the H can have an H moved directly above them, making the designs of the OR, NOR, and XOR gates much more compact (and probably faster).&lt;br /&gt;
NOT gate:&lt;br /&gt;
 ###H#&lt;br /&gt;
 #++1O&lt;br /&gt;
 Ip++#&lt;br /&gt;
 #D###&lt;br /&gt;
&lt;br /&gt;
OR gate:&lt;br /&gt;
 #######&lt;br /&gt;
 IqD+H.#&lt;br /&gt;
 #+++12#&lt;br /&gt;
 JqD+..O&lt;br /&gt;
 #######&lt;br /&gt;
&lt;br /&gt;
NOR gate:&lt;br /&gt;
 #######&lt;br /&gt;
 IpD+H.#&lt;br /&gt;
 #+++12#&lt;br /&gt;
 JpD+..O&lt;br /&gt;
 #######&lt;br /&gt;
&lt;br /&gt;
AND gate:&lt;br /&gt;
 #######&lt;br /&gt;
 IqD+H+#&lt;br /&gt;
 #+++12O&lt;br /&gt;
 JqD+++#&lt;br /&gt;
 #######&lt;br /&gt;
&lt;br /&gt;
NAND gate:&lt;br /&gt;
 #######&lt;br /&gt;
 IpD+H+#&lt;br /&gt;
 #+++12O&lt;br /&gt;
 JpD+++#&lt;br /&gt;
 #######&lt;br /&gt;
&lt;br /&gt;
XOR gate:&lt;br /&gt;
 ##########&lt;br /&gt;
 IpqD+H.++#&lt;br /&gt;
 #++++13++#&lt;br /&gt;
 JpqD+..24O&lt;br /&gt;
 ##########&lt;br /&gt;
&lt;br /&gt;
Alternative XOR gate:&lt;br /&gt;
&lt;br /&gt;
 #########&lt;br /&gt;
 IpD+H.++#&lt;br /&gt;
 #+++12++#&lt;br /&gt;
 JpD+..12O&lt;br /&gt;
 #########&lt;br /&gt;
The pair of floodgates closest to the output (the ones in series) are open when they’re connected to the plates, and the pair of floodgates closest to the reservoir are closed when they’re connected to the plates. Additionally, if the two in series are connected to a lever, this setup can be turned into an AND gate by pulling the lever.&lt;br /&gt;
&lt;br /&gt;
[[User:Madmadmadmage|Madmadmadmage]] 16:53, 9 December 2007 (EST)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Have you tested these at all? I translated your multi-level NOT gate into a form I could understand better after designing some gates myself, and looked at it. It doesn't look to me like it would work at all - First, water flows diagonally, so the water would just flow around the floodgate. Second, if water didn't flow diagonally, and you opened the floodgate because of an input signal, water from the reservoir would then hold the floodgate open by covering the pressure plate even if you shut off the input signal. You'd also need to do something other than just have the drain always open or you might not even trigger the pressure plate because it's draining too fast. --[[User:SL|SL]] 19:17, 23 December 2007 (EST)&lt;br /&gt;
&lt;br /&gt;
No, I did not test any of these. I forgot that water flows around corners; I usually work with straight passages and put my gates in places where it doesn't matter. I'll fix that. As for draining water, you're correct on one point: the water would drain off too fast to trigger the plates. It would drain out to below the threshold, so the part about it not draining out isn't a problem. The draining-too-fast problem can also be solved: set the plate to activate on any depth-two water. That would mean it would take a tiny bit longer to drain (although not much), but it would also make it open if any water at all were coming to the input. I'll have to build a fortress specifically to test these ideas (an aquifer would be a favorite). Give me a few weeks.&lt;/div&gt;</summary>
		<author><name>Madmadmadmage</name></author>
	</entry>
	<entry>
		<id>https://dwarffortresswiki.org/index.php?title=40d_Talk:Computing&amp;diff=28854</id>
		<title>40d Talk:Computing</title>
		<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php?title=40d_Talk:Computing&amp;diff=28854"/>
		<updated>2007-12-15T03:28:05Z</updated>

		<summary type="html">&lt;p&gt;Madmadmadmage: /* Fluid logic gates */  minor corrections (incorrect D to correct H in some of the multi-level designs)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;I created this page because I think it's a very interesting part of the game for advanced players.  I'm not at all familiar with creating wiki pages, so if someone else who was familiar with the concepts could write a section or two themselves, that would be grand.  Right now I think it's been proven possible to create logical input and output gates using fluid dynamics, axles and gears, and even the movements of dwarves utilizing pressure plates.&lt;br /&gt;
&lt;br /&gt;
It was on the 4th of Galena 1097 that the Fortress 'The Net of Skies' became self-aware.  Panicked mechanics attempted to disengage the mechanisms, but the fortress interpreted this as an attack and designated all Dwarves as hostile... --[[User:WyldKarde|WyldKarde]] 13:17, 23 November 2007 (EST)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:A suggested component: The one-use lever.&lt;br /&gt;
&lt;br /&gt;
 ó _X_ ___ / = ramp X = door&lt;br /&gt;
 #&amp;quot; ¯ /### &amp;quot; = bridge&lt;br /&gt;
 #########&lt;br /&gt;
&lt;br /&gt;
:The lever has a Pull The Lever repeat job on it. The door only opens when access is required. Upon being pulled, the lever opens the bridge and drops the dwarf that pulled it. -- [[User:Zaratustra|Zaratustra]] 14:56, 23 November 2007 (EST)&lt;br /&gt;
:Problem detected: the lever doesn't obstruct, so the dwarf can be left hanging on the lever's tile.&lt;br /&gt;
&lt;br /&gt;
I think we should strive to include an example of an NAND gate and/or a NOR gate for each style since that's the bare minimum for operation.--[[User:AlBorland|AlBorland]] 22:09, 23 November 2007 (EST)&lt;br /&gt;
&lt;br /&gt;
== Machine logic ==&lt;br /&gt;
&lt;br /&gt;
The machine logic gates as they stand are incomplete.  The inputs are levers, but the outputs are machine components.  In order to connect a machine logic gate to another gate, the machine signal needs to be converted back into a lever signal.  The only way I can see to do that is with a water tank, a pump, and a pressure plate. --[[User:Peristarkawan|Peristarkawan]] 12:38, 28 November 2007 (EST)&lt;br /&gt;
&lt;br /&gt;
== Anthills ==&lt;br /&gt;
&lt;br /&gt;
Kudos to whoever mods ants to be trainable for borg machines...  Hex anyone? :D [[User:N35t0r|N35t0r]] 20:28, 8 December 2007 (EST)&lt;br /&gt;
: This would make that person my favoritest ever.  --[[User:Geofferic|Geofferic]] 01:36, 9 December 2007 (EST)&lt;br /&gt;
: Agreed. [[User:Madmadmadmage|Madmadmadmage]] 15:13, 9 December 2007 (EST)&lt;br /&gt;
&lt;br /&gt;
== Fluid logic gates ==&lt;br /&gt;
&lt;br /&gt;
I got bored, so here, have some gates. I don't know the offical DF format for fortress snippets, so I've posted them here and hoped someone will be bored enough to format them correctly. I also don't really post on Wikis very much, so if this isn't the kind of thing you're all looking for, delete it. There might also be a few errors; I haven't actually tested any of these, and I'm not exactly sure about the XORs. I know that I could have made a few of these more compact by having the fluid perform the OR themselves, but that would have caused backwash into any dry inputs, possibly corrupting the system. If you have yours set up right, you don't need that.&lt;br /&gt;
&lt;br /&gt;
:Edit:Also, you might want to connect your reservoir to the floodgates on the other side with another, lever-controlled, floodgate in between. That way you don't have problems with mechanical delays and fluid getting through where it's not supposed to because a gate hasn't closed yet. [[User:Madmadmadmage|Madmadmadmage]] 18:05, 9 December 2007 (EST)&lt;br /&gt;
&lt;br /&gt;
Notation:&lt;br /&gt;
 . : channel&lt;br /&gt;
 + : ground&lt;br /&gt;
 # : wall&lt;br /&gt;
 n : floodgate connected to plate number n&lt;br /&gt;
 p : pressure plate true when depth 1-3&lt;br /&gt;
 q : pressure plate true when depth 4-7&lt;br /&gt;
 I : input channel 1&lt;br /&gt;
 J : input channel 2&lt;br /&gt;
 O : output channel&lt;br /&gt;
 D : to runoff tank, so it doesn’t all jam. I’ve assumed a single level for the basic design,&amp;lt;br /&amp;gt; but a far more efficient model (presented below) assumes that this tank is two levels down,&amp;lt;br /&amp;gt; and that D is a two-z-level pit. &lt;br /&gt;
 H : from full reservoir. Again, basic designs are for a single level, but a far more efficient&amp;lt;br /&amp;gt; model (presented below) assumes that this tank is one level up, and H is a hole in the ceiling.&lt;br /&gt;
 Water == true; no water == false&lt;br /&gt;
&lt;br /&gt;
Pressure plates are numbered top to bottom, and then left to right within rows with multiple plates. For example:&lt;br /&gt;
 ##1####2###&lt;br /&gt;
 #+++34++++#&lt;br /&gt;
 #++++++56+#&lt;br /&gt;
 ##7########&lt;br /&gt;
&lt;br /&gt;
'''Single-level designs:'''&amp;lt;br /&amp;gt;&lt;br /&gt;
NOT gate:&lt;br /&gt;
 #####&lt;br /&gt;
 H...#&lt;br /&gt;
 #++.#&lt;br /&gt;
 Ip+1O&lt;br /&gt;
 #D###&lt;br /&gt;
&lt;br /&gt;
OR gate:&lt;br /&gt;
 ##########&lt;br /&gt;
 H........#&lt;br /&gt;
 #++++++12#&lt;br /&gt;
 D.+...+..#&lt;br /&gt;
 #q+q+.++.O&lt;br /&gt;
 #I#J#D####&lt;br /&gt;
&lt;br /&gt;
NOR gate:&lt;br /&gt;
 ##########&lt;br /&gt;
 H........#&lt;br /&gt;
 #++++++12#&lt;br /&gt;
 D.+...+..#&lt;br /&gt;
 #p+p+.++.O&lt;br /&gt;
 #I#J#D####&lt;br /&gt;
&lt;br /&gt;
AND gate:&lt;br /&gt;
 #########&lt;br /&gt;
 H.......#&lt;br /&gt;
 #++++++1#&lt;br /&gt;
 D.+...+2#&lt;br /&gt;
 #q+q+.+.O&lt;br /&gt;
 #I#J#D###&lt;br /&gt;
&lt;br /&gt;
NAND gate:&lt;br /&gt;
 #########&lt;br /&gt;
 H.......#&lt;br /&gt;
 #++++++1#&lt;br /&gt;
 D.+...+2#&lt;br /&gt;
 #p+p+.+.O&lt;br /&gt;
 #I#J#D###&lt;br /&gt;
&lt;br /&gt;
XOR gate:&lt;br /&gt;
 #############&lt;br /&gt;
 H...........#&lt;br /&gt;
 #+++++++13++#&lt;br /&gt;
 #++++++++.24O&lt;br /&gt;
 J.pq+pq.++++#&lt;br /&gt;
 ###D#I#D#####&lt;br /&gt;
&lt;br /&gt;
Alternative XOR gate:&lt;br /&gt;
 ############&lt;br /&gt;
 H..........#&lt;br /&gt;
 #++++++12++#&lt;br /&gt;
 #+++++++.12O&lt;br /&gt;
 J.p+p..++++#&lt;br /&gt;
 ##D#I#D#####&lt;br /&gt;
The pair of floodgates closest to the output (the ones in series) are open when they’re connected to the plates, and the pair of floodgates closest to the reservoir are closed when they’re connected to the plates. Additionally, if the two in series are connected to a lever, this setup can be turned into an AND gate simply by pulling the lever.&lt;br /&gt;
 &lt;br /&gt;
'''Multi-level designs:'''&amp;lt;br /&amp;gt;&lt;br /&gt;
Note that in any of these designs, any floodgates connected directly to the H can have an H moved directly above them, making the designs of the OR, NOR, and XOR gates much more compact (and probably faster).&lt;br /&gt;
NOT gate:&lt;br /&gt;
 ###H#&lt;br /&gt;
 #++1O&lt;br /&gt;
 Ip++#&lt;br /&gt;
 #D###&lt;br /&gt;
&lt;br /&gt;
OR gate:&lt;br /&gt;
 #######&lt;br /&gt;
 IqD+H.#&lt;br /&gt;
 #+++12#&lt;br /&gt;
 JqD+..O&lt;br /&gt;
 #######&lt;br /&gt;
&lt;br /&gt;
NOR gate:&lt;br /&gt;
 #######&lt;br /&gt;
 IpD+H.#&lt;br /&gt;
 #+++12#&lt;br /&gt;
 JpD+..O&lt;br /&gt;
 #######&lt;br /&gt;
&lt;br /&gt;
AND gate:&lt;br /&gt;
 #######&lt;br /&gt;
 IqD+H+#&lt;br /&gt;
 #+++12O&lt;br /&gt;
 JqD+++#&lt;br /&gt;
 #######&lt;br /&gt;
&lt;br /&gt;
NAND gate:&lt;br /&gt;
 #######&lt;br /&gt;
 IpD+H+#&lt;br /&gt;
 #+++12O&lt;br /&gt;
 JpD+++#&lt;br /&gt;
 #######&lt;br /&gt;
&lt;br /&gt;
XOR gate:&lt;br /&gt;
 ##########&lt;br /&gt;
 IpqD+H.++#&lt;br /&gt;
 #++++13++#&lt;br /&gt;
 JpqD+..24O&lt;br /&gt;
 ##########&lt;br /&gt;
&lt;br /&gt;
Alternative XOR gate:&lt;br /&gt;
&lt;br /&gt;
 #########&lt;br /&gt;
 IpD+H.++#&lt;br /&gt;
 #+++12++#&lt;br /&gt;
 JpD+..12O&lt;br /&gt;
 #########&lt;br /&gt;
The pair of floodgates closest to the output (the ones in series) are open when they’re connected to the plates, and the pair of floodgates closest to the reservoir are closed when they’re connected to the plates. Additionally, if the two in series are connected to a lever, this setup can be turned into an AND gate by pulling the lever.&lt;br /&gt;
&lt;br /&gt;
[[User:Madmadmadmage|Madmadmadmage]] 16:53, 9 December 2007 (EST)&lt;/div&gt;</summary>
		<author><name>Madmadmadmage</name></author>
	</entry>
	<entry>
		<id>https://dwarffortresswiki.org/index.php?title=40d_Talk:Computing&amp;diff=28853</id>
		<title>40d Talk:Computing</title>
		<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php?title=40d_Talk:Computing&amp;diff=28853"/>
		<updated>2007-12-09T23:05:05Z</updated>

		<summary type="html">&lt;p&gt;Madmadmadmage: /* Fluid logic gates */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;I created this page because I think it's a very interesting part of the game for advanced players.  I'm not at all familiar with creating wiki pages, so if someone else who was familiar with the concepts could write a section or two themselves, that would be grand.  Right now I think it's been proven possible to create logical input and output gates using fluid dynamics, axles and gears, and even the movements of dwarves utilizing pressure plates.&lt;br /&gt;
&lt;br /&gt;
It was on the 4th of Galena 1097 that the Fortress 'The Net of Skies' became self-aware.  Panicked mechanics attempted to disengage the mechanisms, but the fortress interpreted this as an attack and designated all Dwarves as hostile... --[[User:WyldKarde|WyldKarde]] 13:17, 23 November 2007 (EST)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:A suggested component: The one-use lever.&lt;br /&gt;
&lt;br /&gt;
 ó _X_ ___ / = ramp X = door&lt;br /&gt;
 #&amp;quot; ¯ /### &amp;quot; = bridge&lt;br /&gt;
 #########&lt;br /&gt;
&lt;br /&gt;
:The lever has a Pull The Lever repeat job on it. The door only opens when access is required. Upon being pulled, the lever opens the bridge and drops the dwarf that pulled it. -- [[User:Zaratustra|Zaratustra]] 14:56, 23 November 2007 (EST)&lt;br /&gt;
:Problem detected: the lever doesn't obstruct, so the dwarf can be left hanging on the lever's tile.&lt;br /&gt;
&lt;br /&gt;
I think we should strive to include an example of an NAND gate and/or a NOR gate for each style since that's the bare minimum for operation.--[[User:AlBorland|AlBorland]] 22:09, 23 November 2007 (EST)&lt;br /&gt;
&lt;br /&gt;
== Machine logic ==&lt;br /&gt;
&lt;br /&gt;
The machine logic gates as they stand are incomplete.  The inputs are levers, but the outputs are machine components.  In order to connect a machine logic gate to another gate, the machine signal needs to be converted back into a lever signal.  The only way I can see to do that is with a water tank, a pump, and a pressure plate. --[[User:Peristarkawan|Peristarkawan]] 12:38, 28 November 2007 (EST)&lt;br /&gt;
&lt;br /&gt;
== Anthills ==&lt;br /&gt;
&lt;br /&gt;
Kudos to whoever mods ants to be trainable for borg machines...  Hex anyone? :D [[User:N35t0r|N35t0r]] 20:28, 8 December 2007 (EST)&lt;br /&gt;
: This would make that person my favoritest ever.  --[[User:Geofferic|Geofferic]] 01:36, 9 December 2007 (EST)&lt;br /&gt;
: Agreed. [[User:Madmadmadmage|Madmadmadmage]] 15:13, 9 December 2007 (EST)&lt;br /&gt;
&lt;br /&gt;
== Fluid logic gates ==&lt;br /&gt;
&lt;br /&gt;
I got bored, so here, have some gates. I don't know the offical DF format for fortress snippets, so I've posted them here and hoped someone will be bored enough to format them correctly. I also don't really post on Wikis very much, so if this isn't the kind of thing you're all looking for, delete it. There might also be a few errors; I haven't actually tested any of these, and I'm not exactly sure about the XORs. I know that I could have made a few of these more compact by having the fluid perform the OR themselves, but that would have caused backwash into any dry inputs, possibly corrupting the system. If you have yours set up right, you don't need that.&lt;br /&gt;
&lt;br /&gt;
:Edit:Also, you might want to connect your reservoir to the floodgates on the other side with another, lever-controlled, floodgate in between. That way you don't have problems with mechanical delays and fluid getting through where it's not supposed to because a gate hasn't closed yet. [[User:Madmadmadmage|Madmadmadmage]] 18:05, 9 December 2007 (EST)&lt;br /&gt;
&lt;br /&gt;
Notation:&lt;br /&gt;
 . : channel&lt;br /&gt;
 + : ground&lt;br /&gt;
 # : wall&lt;br /&gt;
 n : floodgate connected to plate number n&lt;br /&gt;
 p : pressure plate true when depth 1-3&lt;br /&gt;
 q : pressure plate true when depth 4-7&lt;br /&gt;
 I : input channel 1&lt;br /&gt;
 J : input channel 2&lt;br /&gt;
 O : output channel&lt;br /&gt;
 D : to runoff tank, so it doesn’t all jam. I’ve assumed a single level for the basic design,&amp;lt;br /&amp;gt; but a far more efficient model (presented below) assumes that this tank is two levels down,&amp;lt;br /&amp;gt; and that D is a two-z-level pit. &lt;br /&gt;
 H : from full reservoir. Again, basic designs are for a single level, but a far more efficient&amp;lt;br /&amp;gt; model (presented below) assumes that this tank is one level up, and H is a hole in the ceiling.&lt;br /&gt;
 Water == true; no water == false&lt;br /&gt;
&lt;br /&gt;
Pressure plates are numbered top to bottom, and then left to right within rows with multiple plates. For example:&lt;br /&gt;
 ##1####2###&lt;br /&gt;
 #+++34++++#&lt;br /&gt;
 #++++++56+#&lt;br /&gt;
 ##7########&lt;br /&gt;
&lt;br /&gt;
'''Single-level designs:'''&amp;lt;br /&amp;gt;&lt;br /&gt;
NOT gate:&lt;br /&gt;
 #####&lt;br /&gt;
 H...#&lt;br /&gt;
 #++.#&lt;br /&gt;
 Ip+1O&lt;br /&gt;
 #D###&lt;br /&gt;
&lt;br /&gt;
OR gate:&lt;br /&gt;
 ##########&lt;br /&gt;
 H........#&lt;br /&gt;
 #++++++12#&lt;br /&gt;
 D.+...+..#&lt;br /&gt;
 #q+q+.++.O&lt;br /&gt;
 #I#J#D####&lt;br /&gt;
&lt;br /&gt;
NOR gate:&lt;br /&gt;
 ##########&lt;br /&gt;
 H........#&lt;br /&gt;
 #++++++12#&lt;br /&gt;
 D.+...+..#&lt;br /&gt;
 #p+p+.++.O&lt;br /&gt;
 #I#J#D####&lt;br /&gt;
&lt;br /&gt;
AND gate:&lt;br /&gt;
 #########&lt;br /&gt;
 H.......#&lt;br /&gt;
 #++++++1#&lt;br /&gt;
 D.+...+2#&lt;br /&gt;
 #q+q+.+.O&lt;br /&gt;
 #I#J#D###&lt;br /&gt;
&lt;br /&gt;
NAND gate:&lt;br /&gt;
 #########&lt;br /&gt;
 H.......#&lt;br /&gt;
 #++++++1#&lt;br /&gt;
 D.+...+2#&lt;br /&gt;
 #p+p+.+.O&lt;br /&gt;
 #I#J#D###&lt;br /&gt;
&lt;br /&gt;
XOR gate:&lt;br /&gt;
 #############&lt;br /&gt;
 H...........#&lt;br /&gt;
 #+++++++13++#&lt;br /&gt;
 #++++++++.24O&lt;br /&gt;
 J.pq+pq.++++#&lt;br /&gt;
 ###D#I#D#####&lt;br /&gt;
&lt;br /&gt;
Alternative XOR gate:&lt;br /&gt;
 ############&lt;br /&gt;
 H..........#&lt;br /&gt;
 #++++++12++#&lt;br /&gt;
 #+++++++.12O&lt;br /&gt;
 J.p+p..++++#&lt;br /&gt;
 ##D#I#D#####&lt;br /&gt;
The pair of floodgates closest to the output (the ones in series) are open when they’re connected to the plates, and the pair of floodgates closest to the reservoir are closed when they’re connected to the plates. Additionally, if the two in series are connected to a lever, this setup can be turned into an AND gate simply by pulling the lever.&lt;br /&gt;
 &lt;br /&gt;
'''Multi-level designs:'''&amp;lt;br /&amp;gt;&lt;br /&gt;
Note that in any of these designs, any floodgates connected directly to the H can have an H moved directly above them, making the designs of the OR, NOR, and XOR gates much more compact (and probably faster).&lt;br /&gt;
NOT gate:&lt;br /&gt;
 ###H#&lt;br /&gt;
 #++1O&lt;br /&gt;
 Ip++#&lt;br /&gt;
 #D###&lt;br /&gt;
&lt;br /&gt;
OR gate:&lt;br /&gt;
 #######&lt;br /&gt;
 IqD+H.#&lt;br /&gt;
 #+++12#&lt;br /&gt;
 JqD+..O&lt;br /&gt;
 #######&lt;br /&gt;
&lt;br /&gt;
NOR gate:&lt;br /&gt;
 #######&lt;br /&gt;
 IpD+H.#&lt;br /&gt;
 #+++12#&lt;br /&gt;
 JpD+..O&lt;br /&gt;
 #######&lt;br /&gt;
&lt;br /&gt;
AND gate:&lt;br /&gt;
 #######&lt;br /&gt;
 IqD+D+#&lt;br /&gt;
 #+++12O&lt;br /&gt;
 JqD+++#&lt;br /&gt;
 #######&lt;br /&gt;
&lt;br /&gt;
NAND gate:&lt;br /&gt;
 #######&lt;br /&gt;
 IpD+D+#&lt;br /&gt;
 #+++12O&lt;br /&gt;
 JpD+++#&lt;br /&gt;
 #######&lt;br /&gt;
&lt;br /&gt;
XOR gate:&lt;br /&gt;
 ##########&lt;br /&gt;
 IpqD+H.++#&lt;br /&gt;
 #++++13++#&lt;br /&gt;
 JpqD+..24O&lt;br /&gt;
 ##########&lt;br /&gt;
&lt;br /&gt;
Alternative XOR gate:&lt;br /&gt;
&lt;br /&gt;
 #########&lt;br /&gt;
 IpD+H.++#&lt;br /&gt;
 #+++12++#&lt;br /&gt;
 JpD+..12O&lt;br /&gt;
 #########&lt;br /&gt;
The pair of floodgates closest to the output (the ones in series) are open when they’re connected to the plates, and the pair of floodgates closest to the reservoir are closed when they’re connected to the plates. Additionally, if the two in series are connected to a lever, this setup can be turned into an AND gate by pulling the lever.&lt;br /&gt;
&lt;br /&gt;
[[User:Madmadmadmage|Madmadmadmage]] 16:53, 9 December 2007 (EST)&lt;/div&gt;</summary>
		<author><name>Madmadmadmage</name></author>
	</entry>
	<entry>
		<id>https://dwarffortresswiki.org/index.php?title=40d_Talk:Computing&amp;diff=28852</id>
		<title>40d Talk:Computing</title>
		<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php?title=40d_Talk:Computing&amp;diff=28852"/>
		<updated>2007-12-09T21:55:33Z</updated>

		<summary type="html">&lt;p&gt;Madmadmadmage: /* Fluid logic gates */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;I created this page because I think it's a very interesting part of the game for advanced players.  I'm not at all familiar with creating wiki pages, so if someone else who was familiar with the concepts could write a section or two themselves, that would be grand.  Right now I think it's been proven possible to create logical input and output gates using fluid dynamics, axles and gears, and even the movements of dwarves utilizing pressure plates.&lt;br /&gt;
&lt;br /&gt;
It was on the 4th of Galena 1097 that the Fortress 'The Net of Skies' became self-aware.  Panicked mechanics attempted to disengage the mechanisms, but the fortress interpreted this as an attack and designated all Dwarves as hostile... --[[User:WyldKarde|WyldKarde]] 13:17, 23 November 2007 (EST)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:A suggested component: The one-use lever.&lt;br /&gt;
&lt;br /&gt;
 ó _X_ ___ / = ramp X = door&lt;br /&gt;
 #&amp;quot; ¯ /### &amp;quot; = bridge&lt;br /&gt;
 #########&lt;br /&gt;
&lt;br /&gt;
:The lever has a Pull The Lever repeat job on it. The door only opens when access is required. Upon being pulled, the lever opens the bridge and drops the dwarf that pulled it. -- [[User:Zaratustra|Zaratustra]] 14:56, 23 November 2007 (EST)&lt;br /&gt;
:Problem detected: the lever doesn't obstruct, so the dwarf can be left hanging on the lever's tile.&lt;br /&gt;
&lt;br /&gt;
I think we should strive to include an example of an NAND gate and/or a NOR gate for each style since that's the bare minimum for operation.--[[User:AlBorland|AlBorland]] 22:09, 23 November 2007 (EST)&lt;br /&gt;
&lt;br /&gt;
== Machine logic ==&lt;br /&gt;
&lt;br /&gt;
The machine logic gates as they stand are incomplete.  The inputs are levers, but the outputs are machine components.  In order to connect a machine logic gate to another gate, the machine signal needs to be converted back into a lever signal.  The only way I can see to do that is with a water tank, a pump, and a pressure plate. --[[User:Peristarkawan|Peristarkawan]] 12:38, 28 November 2007 (EST)&lt;br /&gt;
&lt;br /&gt;
== Anthills ==&lt;br /&gt;
&lt;br /&gt;
Kudos to whoever mods ants to be trainable for borg machines...  Hex anyone? :D [[User:N35t0r|N35t0r]] 20:28, 8 December 2007 (EST)&lt;br /&gt;
: This would make that person my favoritest ever.  --[[User:Geofferic|Geofferic]] 01:36, 9 December 2007 (EST)&lt;br /&gt;
: Agreed. [[User:Madmadmadmage|Madmadmadmage]] 15:13, 9 December 2007 (EST)&lt;br /&gt;
&lt;br /&gt;
== Fluid logic gates ==&lt;br /&gt;
&lt;br /&gt;
I got bored, so here, have some gates. I don't know the offical DF format for fortress snippets, so I've posted them here and hoped someone will be bored enough to format them correctly. I also don't really post on Wikis very much, so if this isn't the kind of thing you're all looking for, delete it. There might also be a few errors; I haven't actually tested any of these, and I'm not exactly sure about the XORs.&lt;br /&gt;
&lt;br /&gt;
Notation:&lt;br /&gt;
 . : channel&lt;br /&gt;
 + : ground&lt;br /&gt;
 # : wall&lt;br /&gt;
 n : floodgate connected to plate number n&lt;br /&gt;
 p : pressure plate true when depth 1-3&lt;br /&gt;
 q : pressure plate true when depth 4-7&lt;br /&gt;
 I : input channel 1&lt;br /&gt;
 J : input channel 2&lt;br /&gt;
 O : output channel&lt;br /&gt;
 D : to runoff tank, so it doesn’t all jam. I’ve assumed a single level for the basic design,&amp;lt;br /&amp;gt; but a far more efficient model (presented below) assumes that this tank is two levels down,&amp;lt;br /&amp;gt; and that D is a two-z-level pit. &lt;br /&gt;
 H : from full reservoir. Again, basic designs are for a single level, but a far more efficient&amp;lt;br /&amp;gt; model (presented below) assumes that this tank is one level up, and H is a hole in the ceiling.&lt;br /&gt;
 Water == true; no water == false&lt;br /&gt;
&lt;br /&gt;
Pressure plates are numbered top to bottom, and then left to right within rows with multiple plates. For example:&lt;br /&gt;
 ##1####2###&lt;br /&gt;
 #+++34++++#&lt;br /&gt;
 #++++++56+#&lt;br /&gt;
 ##7########&lt;br /&gt;
&lt;br /&gt;
'''Single-level designs:'''&amp;lt;br /&amp;gt;&lt;br /&gt;
NOT gate:&lt;br /&gt;
 #####&lt;br /&gt;
 H...#&lt;br /&gt;
 #++.#&lt;br /&gt;
 Ip+1O&lt;br /&gt;
 #D###&lt;br /&gt;
&lt;br /&gt;
OR gate:&lt;br /&gt;
 ##########&lt;br /&gt;
 H........#&lt;br /&gt;
 #++++++12#&lt;br /&gt;
 D.+...+..#&lt;br /&gt;
 #q+q+.++.O&lt;br /&gt;
 #I#J#D####&lt;br /&gt;
&lt;br /&gt;
NOR gate:&lt;br /&gt;
 ##########&lt;br /&gt;
 H........#&lt;br /&gt;
 #++++++12#&lt;br /&gt;
 D.+...+..#&lt;br /&gt;
 #p+p+.++.O&lt;br /&gt;
 #I#J#D####&lt;br /&gt;
&lt;br /&gt;
AND gate:&lt;br /&gt;
 #########&lt;br /&gt;
 H.......#&lt;br /&gt;
 #++++++1#&lt;br /&gt;
 D.+...+2#&lt;br /&gt;
 #q+q+.+.O&lt;br /&gt;
 #I#J#D###&lt;br /&gt;
&lt;br /&gt;
NAND gate:&lt;br /&gt;
 #########&lt;br /&gt;
 H.......#&lt;br /&gt;
 #++++++1#&lt;br /&gt;
 D.+...+2#&lt;br /&gt;
 #p+p+.+.O&lt;br /&gt;
 #I#J#D###&lt;br /&gt;
&lt;br /&gt;
XOR gate:&lt;br /&gt;
 #############&lt;br /&gt;
 H...........#&lt;br /&gt;
 #+++++++13++#&lt;br /&gt;
 #++++++++.24O&lt;br /&gt;
 J.pq+pq.++++#&lt;br /&gt;
 ###D#I#D#####&lt;br /&gt;
&lt;br /&gt;
Alternative XOR gate:&lt;br /&gt;
 ############&lt;br /&gt;
 H..........#&lt;br /&gt;
 #++++++12++#&lt;br /&gt;
 #+++++++.12O&lt;br /&gt;
 J.p+p..++++#&lt;br /&gt;
 ##D#I#D#####&lt;br /&gt;
The pair of floodgates closest to the output (the ones in series) are open when they’re connected to the plates, and the pair of floodgates closest to the reservoir are closed when they’re connected to the plates. Additionally, if the two in series are connected to a lever, this setup can be turned into an AND gate simply by pulling the lever.&lt;br /&gt;
 &lt;br /&gt;
'''Multi-level designs:'''&amp;lt;br /&amp;gt;&lt;br /&gt;
Note that in any of these designs, any floodgates connected directly to the H can have an H moved directly above them, making the designs of the OR, NOR, and XOR gates much more compact (and probably faster).&lt;br /&gt;
NOT gate:&lt;br /&gt;
 ###H#&lt;br /&gt;
 #++1O&lt;br /&gt;
 Ip++#&lt;br /&gt;
 #D###&lt;br /&gt;
&lt;br /&gt;
OR gate:&lt;br /&gt;
 #######&lt;br /&gt;
 IqD+H.#&lt;br /&gt;
 #+++12#&lt;br /&gt;
 JqD+..O&lt;br /&gt;
 #######&lt;br /&gt;
&lt;br /&gt;
NOR gate:&lt;br /&gt;
 #######&lt;br /&gt;
 IpD+H.#&lt;br /&gt;
 #+++12#&lt;br /&gt;
 JpD+..O&lt;br /&gt;
 #######&lt;br /&gt;
&lt;br /&gt;
AND gate:&lt;br /&gt;
 #######&lt;br /&gt;
 IqD+D+#&lt;br /&gt;
 #+++12O&lt;br /&gt;
 JqD+++#&lt;br /&gt;
 #######&lt;br /&gt;
&lt;br /&gt;
NAND gate:&lt;br /&gt;
 #######&lt;br /&gt;
 IpD+D+#&lt;br /&gt;
 #+++12O&lt;br /&gt;
 JpD+++#&lt;br /&gt;
 #######&lt;br /&gt;
&lt;br /&gt;
XOR gate:&lt;br /&gt;
 ##########&lt;br /&gt;
 IpqD+H.++#&lt;br /&gt;
 #++++13++#&lt;br /&gt;
 JpqD+..24O&lt;br /&gt;
 ##########&lt;br /&gt;
&lt;br /&gt;
Alternative XOR gate:&lt;br /&gt;
&lt;br /&gt;
 #########&lt;br /&gt;
 IpD+H.++#&lt;br /&gt;
 #+++12++#&lt;br /&gt;
 JpD+..12O&lt;br /&gt;
 #########&lt;br /&gt;
The pair of floodgates closest to the output (the ones in series) are open when they’re connected to the plates, and the pair of floodgates closest to the reservoir are closed when they’re connected to the plates. Additionally, if the two in series are connected to a lever, this setup can be turned into an AND gate by pulling the lever.&lt;br /&gt;
&lt;br /&gt;
[[User:Madmadmadmage|Madmadmadmage]] 16:53, 9 December 2007 (EST)&lt;/div&gt;</summary>
		<author><name>Madmadmadmage</name></author>
	</entry>
	<entry>
		<id>https://dwarffortresswiki.org/index.php?title=40d_Talk:Computing&amp;diff=28851</id>
		<title>40d Talk:Computing</title>
		<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php?title=40d_Talk:Computing&amp;diff=28851"/>
		<updated>2007-12-09T21:54:24Z</updated>

		<summary type="html">&lt;p&gt;Madmadmadmage: /* Fluid logic gates */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;I created this page because I think it's a very interesting part of the game for advanced players.  I'm not at all familiar with creating wiki pages, so if someone else who was familiar with the concepts could write a section or two themselves, that would be grand.  Right now I think it's been proven possible to create logical input and output gates using fluid dynamics, axles and gears, and even the movements of dwarves utilizing pressure plates.&lt;br /&gt;
&lt;br /&gt;
It was on the 4th of Galena 1097 that the Fortress 'The Net of Skies' became self-aware.  Panicked mechanics attempted to disengage the mechanisms, but the fortress interpreted this as an attack and designated all Dwarves as hostile... --[[User:WyldKarde|WyldKarde]] 13:17, 23 November 2007 (EST)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:A suggested component: The one-use lever.&lt;br /&gt;
&lt;br /&gt;
 ó _X_ ___ / = ramp X = door&lt;br /&gt;
 #&amp;quot; ¯ /### &amp;quot; = bridge&lt;br /&gt;
 #########&lt;br /&gt;
&lt;br /&gt;
:The lever has a Pull The Lever repeat job on it. The door only opens when access is required. Upon being pulled, the lever opens the bridge and drops the dwarf that pulled it. -- [[User:Zaratustra|Zaratustra]] 14:56, 23 November 2007 (EST)&lt;br /&gt;
:Problem detected: the lever doesn't obstruct, so the dwarf can be left hanging on the lever's tile.&lt;br /&gt;
&lt;br /&gt;
I think we should strive to include an example of an NAND gate and/or a NOR gate for each style since that's the bare minimum for operation.--[[User:AlBorland|AlBorland]] 22:09, 23 November 2007 (EST)&lt;br /&gt;
&lt;br /&gt;
== Machine logic ==&lt;br /&gt;
&lt;br /&gt;
The machine logic gates as they stand are incomplete.  The inputs are levers, but the outputs are machine components.  In order to connect a machine logic gate to another gate, the machine signal needs to be converted back into a lever signal.  The only way I can see to do that is with a water tank, a pump, and a pressure plate. --[[User:Peristarkawan|Peristarkawan]] 12:38, 28 November 2007 (EST)&lt;br /&gt;
&lt;br /&gt;
== Anthills ==&lt;br /&gt;
&lt;br /&gt;
Kudos to whoever mods ants to be trainable for borg machines...  Hex anyone? :D [[User:N35t0r|N35t0r]] 20:28, 8 December 2007 (EST)&lt;br /&gt;
: This would make that person my favoritest ever.  --[[User:Geofferic|Geofferic]] 01:36, 9 December 2007 (EST)&lt;br /&gt;
: Agreed. [[User:Madmadmadmage|Madmadmadmage]] 15:13, 9 December 2007 (EST)&lt;br /&gt;
&lt;br /&gt;
== Fluid logic gates ==&lt;br /&gt;
&lt;br /&gt;
I got bored, so here, have some gates. I don't know the offical DF format for fortress snippets, so I've posted them here and hoped someone will be bored enough to format them correctly. I also don't really post on Wikis very much, so if this isn't the kind of thing you're all looking for, delete it. There might also be a few errors; I haven't actually tested any of these, and I'm not exactly sure about the XORs.&lt;br /&gt;
&lt;br /&gt;
Notation:&lt;br /&gt;
 . : channel&lt;br /&gt;
 + : ground&lt;br /&gt;
 # : wall&lt;br /&gt;
 n : floodgate connected to plate number n&lt;br /&gt;
 p : pressure plate true when depth 1-3&lt;br /&gt;
 q : pressure plate true when depth 4-7&lt;br /&gt;
 I : input channel 1&lt;br /&gt;
 J : input channel 2&lt;br /&gt;
 O : output channel&lt;br /&gt;
 D : to runoff tank, so it doesn’t all jam. I’ve assumed a single level for the basic design, but a far more efficient model (presented below) assumes that this tank is two levels down, and that D is a two-z-level pit. &lt;br /&gt;
 H : from full reservoir. Again, basic designs are for a single level, but a far more efficient model (presented below) assumes that this tank is one level up, and H is a hole in the ceiling.&lt;br /&gt;
 Water == true; no water == false&lt;br /&gt;
&lt;br /&gt;
Pressure plates are numbered top to bottom, and then left to right within rows with multiple plates. For example:&lt;br /&gt;
 ##1####2###&lt;br /&gt;
 #+++34++++#&lt;br /&gt;
 #++++++56+#&lt;br /&gt;
 ##7########&lt;br /&gt;
&lt;br /&gt;
'''Single-level designs:'''&amp;lt;br /&amp;gt;&lt;br /&gt;
NOT gate:&lt;br /&gt;
 #####&lt;br /&gt;
 H...#&lt;br /&gt;
 #++.#&lt;br /&gt;
 Ip+1O&lt;br /&gt;
 #D###&lt;br /&gt;
&lt;br /&gt;
OR gate:&lt;br /&gt;
 ##########&lt;br /&gt;
 H........#&lt;br /&gt;
 #++++++12#&lt;br /&gt;
 D.+...+..#&lt;br /&gt;
 #q+q+.++.O&lt;br /&gt;
 #I#J#D####&lt;br /&gt;
&lt;br /&gt;
NOR gate:&lt;br /&gt;
 ##########&lt;br /&gt;
 H........#&lt;br /&gt;
 #++++++12#&lt;br /&gt;
 D.+...+..#&lt;br /&gt;
 #p+p+.++.O&lt;br /&gt;
 #I#J#D####&lt;br /&gt;
&lt;br /&gt;
AND gate:&lt;br /&gt;
 #########&lt;br /&gt;
 H.......#&lt;br /&gt;
 #++++++1#&lt;br /&gt;
 D.+...+2#&lt;br /&gt;
 #q+q+.+.O&lt;br /&gt;
 #I#J#D###&lt;br /&gt;
&lt;br /&gt;
NAND gate:&lt;br /&gt;
 #########&lt;br /&gt;
 H.......#&lt;br /&gt;
 #++++++1#&lt;br /&gt;
 D.+...+2#&lt;br /&gt;
 #p+p+.+.O&lt;br /&gt;
 #I#J#D###&lt;br /&gt;
&lt;br /&gt;
XOR gate:&lt;br /&gt;
 #############&lt;br /&gt;
 H...........#&lt;br /&gt;
 #+++++++13++#&lt;br /&gt;
 #++++++++.24O&lt;br /&gt;
 J.pq+pq.++++#&lt;br /&gt;
 ###D#I#D#####&lt;br /&gt;
&lt;br /&gt;
Alternative XOR gate:&lt;br /&gt;
 ############&lt;br /&gt;
 H..........#&lt;br /&gt;
 #++++++12++#&lt;br /&gt;
 #+++++++.12O&lt;br /&gt;
 J.p+p..++++#&lt;br /&gt;
 ##D#I#D#####&lt;br /&gt;
The pair of floodgates closest to the output (the ones in series) are open when they’re connected to the plates, and the pair of floodgates closest to the reservoir are closed when they’re connected to the plates. Additionally, if the two in series are connected to a lever, this setup can be turned into an AND gate simply by pulling the lever.&lt;br /&gt;
 &lt;br /&gt;
'''Multi-level designs:'''&amp;lt;br /&amp;gt;&lt;br /&gt;
Note that in any of these designs, any floodgates connected directly to the H can have an H moved directly above them, making the designs of the OR, NOR, and XOR gates much more compact (and probably faster).&lt;br /&gt;
NOT gate:&lt;br /&gt;
 ###H#&lt;br /&gt;
 #++1O&lt;br /&gt;
 Ip++#&lt;br /&gt;
 #D###&lt;br /&gt;
&lt;br /&gt;
OR gate:&lt;br /&gt;
 #######&lt;br /&gt;
 IqD+H.#&lt;br /&gt;
 #+++12#&lt;br /&gt;
 JqD+..O&lt;br /&gt;
 #######&lt;br /&gt;
&lt;br /&gt;
NOR gate:&lt;br /&gt;
 #######&lt;br /&gt;
 IpD+H.#&lt;br /&gt;
 #+++12#&lt;br /&gt;
 JpD+..O&lt;br /&gt;
 #######&lt;br /&gt;
&lt;br /&gt;
AND gate:&lt;br /&gt;
 #######&lt;br /&gt;
 IqD+D+#&lt;br /&gt;
 #+++12O&lt;br /&gt;
 JqD+++#&lt;br /&gt;
 #######&lt;br /&gt;
&lt;br /&gt;
NAND gate:&lt;br /&gt;
 #######&lt;br /&gt;
 IpD+D+#&lt;br /&gt;
 #+++12O&lt;br /&gt;
 JpD+++#&lt;br /&gt;
 #######&lt;br /&gt;
&lt;br /&gt;
XOR gate:&lt;br /&gt;
 ##########&lt;br /&gt;
 IpqD+H.++#&lt;br /&gt;
 #++++13++#&lt;br /&gt;
 JpqD+..24O&lt;br /&gt;
 ##########&lt;br /&gt;
&lt;br /&gt;
Alternative XOR gate:&lt;br /&gt;
&lt;br /&gt;
 #########&lt;br /&gt;
 IpD+H.++#&lt;br /&gt;
 #+++12++#&lt;br /&gt;
 JpD+..12O&lt;br /&gt;
 #########&lt;br /&gt;
The pair of floodgates closest to the output (the ones in series) are open when they’re connected to the plates, and the pair of floodgates closest to the reservoir are closed when they’re connected to the plates. Additionally, if the two in series are connected to a lever, this setup can be turned into an AND gate by pulling the lever.&lt;br /&gt;
&lt;br /&gt;
[[User:Madmadmadmage|Madmadmadmage]] 16:53, 9 December 2007 (EST)&lt;/div&gt;</summary>
		<author><name>Madmadmadmage</name></author>
	</entry>
	<entry>
		<id>https://dwarffortresswiki.org/index.php?title=40d_Talk:Computing&amp;diff=28850</id>
		<title>40d Talk:Computing</title>
		<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php?title=40d_Talk:Computing&amp;diff=28850"/>
		<updated>2007-12-09T21:53:10Z</updated>

		<summary type="html">&lt;p&gt;Madmadmadmage: Fluid logic gates&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;I created this page because I think it's a very interesting part of the game for advanced players.  I'm not at all familiar with creating wiki pages, so if someone else who was familiar with the concepts could write a section or two themselves, that would be grand.  Right now I think it's been proven possible to create logical input and output gates using fluid dynamics, axles and gears, and even the movements of dwarves utilizing pressure plates.&lt;br /&gt;
&lt;br /&gt;
It was on the 4th of Galena 1097 that the Fortress 'The Net of Skies' became self-aware.  Panicked mechanics attempted to disengage the mechanisms, but the fortress interpreted this as an attack and designated all Dwarves as hostile... --[[User:WyldKarde|WyldKarde]] 13:17, 23 November 2007 (EST)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:A suggested component: The one-use lever.&lt;br /&gt;
&lt;br /&gt;
 ó _X_ ___ / = ramp X = door&lt;br /&gt;
 #&amp;quot; ¯ /### &amp;quot; = bridge&lt;br /&gt;
 #########&lt;br /&gt;
&lt;br /&gt;
:The lever has a Pull The Lever repeat job on it. The door only opens when access is required. Upon being pulled, the lever opens the bridge and drops the dwarf that pulled it. -- [[User:Zaratustra|Zaratustra]] 14:56, 23 November 2007 (EST)&lt;br /&gt;
:Problem detected: the lever doesn't obstruct, so the dwarf can be left hanging on the lever's tile.&lt;br /&gt;
&lt;br /&gt;
I think we should strive to include an example of an NAND gate and/or a NOR gate for each style since that's the bare minimum for operation.--[[User:AlBorland|AlBorland]] 22:09, 23 November 2007 (EST)&lt;br /&gt;
&lt;br /&gt;
== Machine logic ==&lt;br /&gt;
&lt;br /&gt;
The machine logic gates as they stand are incomplete.  The inputs are levers, but the outputs are machine components.  In order to connect a machine logic gate to another gate, the machine signal needs to be converted back into a lever signal.  The only way I can see to do that is with a water tank, a pump, and a pressure plate. --[[User:Peristarkawan|Peristarkawan]] 12:38, 28 November 2007 (EST)&lt;br /&gt;
&lt;br /&gt;
== Anthills ==&lt;br /&gt;
&lt;br /&gt;
Kudos to whoever mods ants to be trainable for borg machines...  Hex anyone? :D [[User:N35t0r|N35t0r]] 20:28, 8 December 2007 (EST)&lt;br /&gt;
: This would make that person my favoritest ever.  --[[User:Geofferic|Geofferic]] 01:36, 9 December 2007 (EST)&lt;br /&gt;
: Agreed. [[User:Madmadmadmage|Madmadmadmage]] 15:13, 9 December 2007 (EST)&lt;br /&gt;
&lt;br /&gt;
== Fluid logic gates ==&lt;br /&gt;
&lt;br /&gt;
I don't know the offical DF format for fortress snippets, so I've posted them here. I also don't really post on Wikis very much, so if this isn't the kind of thing you're all looking for, delete it. There might also be a few errors; I haven't actually tested any of these, and I'm not exactly sure about the XORs.&lt;br /&gt;
&lt;br /&gt;
Notation:&lt;br /&gt;
 . : channel&lt;br /&gt;
 + : ground&lt;br /&gt;
 # : wall&lt;br /&gt;
 n : floodgate connected to plate number n&lt;br /&gt;
 p : pressure plate true when depth 1-3&lt;br /&gt;
 q : pressure plate true when depth 4-7&lt;br /&gt;
 I : input channel 1&lt;br /&gt;
 J : input channel 2&lt;br /&gt;
 O : output channel&lt;br /&gt;
 D : to runoff tank, so it doesn’t all jam. I’ve assumed a single level for the basic design, but a far more efficient model (presented below) assumes that this tank is two levels down, and that D is a two-z-level pit. &lt;br /&gt;
 H : from full reservoir. Again, basic designs are for a single level, but a far more efficient model (presented below) assumes that this tank is one level up, and H is a hole in the ceiling.&lt;br /&gt;
 Water == true; no water == false&lt;br /&gt;
&lt;br /&gt;
Pressure plates are numbered top to bottom, and then left to right within rows with multiple plates. For example:&lt;br /&gt;
 ##1####2###&lt;br /&gt;
 #+++34++++#&lt;br /&gt;
 #++++++56+#&lt;br /&gt;
 ##7########&lt;br /&gt;
&lt;br /&gt;
'''Single-level designs:'''&amp;lt;br /&amp;gt;&lt;br /&gt;
NOT gate:&lt;br /&gt;
 #####&lt;br /&gt;
 H...#&lt;br /&gt;
 #++.#&lt;br /&gt;
 Ip+1O&lt;br /&gt;
 #D###&lt;br /&gt;
&lt;br /&gt;
OR gate:&lt;br /&gt;
 ##########&lt;br /&gt;
 H........#&lt;br /&gt;
 #++++++12#&lt;br /&gt;
 D.+...+..#&lt;br /&gt;
 #q+q+.++.O&lt;br /&gt;
 #I#J#D####&lt;br /&gt;
&lt;br /&gt;
NOR gate:&lt;br /&gt;
 ##########&lt;br /&gt;
 H........#&lt;br /&gt;
 #++++++12#&lt;br /&gt;
 D.+...+..#&lt;br /&gt;
 #p+p+.++.O&lt;br /&gt;
 #I#J#D####&lt;br /&gt;
&lt;br /&gt;
AND gate:&lt;br /&gt;
 #########&lt;br /&gt;
 H.......#&lt;br /&gt;
 #++++++1#&lt;br /&gt;
 D.+...+2#&lt;br /&gt;
 #q+q+.+.O&lt;br /&gt;
 #I#J#D###&lt;br /&gt;
&lt;br /&gt;
NAND gate:&lt;br /&gt;
 #########&lt;br /&gt;
 H.......#&lt;br /&gt;
 #++++++1#&lt;br /&gt;
 D.+...+2#&lt;br /&gt;
 #p+p+.+.O&lt;br /&gt;
 #I#J#D###&lt;br /&gt;
&lt;br /&gt;
XOR gate:&lt;br /&gt;
 #############&lt;br /&gt;
 H...........#&lt;br /&gt;
 #+++++++13++#&lt;br /&gt;
 #++++++++.24O&lt;br /&gt;
 J.pq+pq.++++#&lt;br /&gt;
 ###D#I#D#####&lt;br /&gt;
&lt;br /&gt;
Alternative XOR gate:&lt;br /&gt;
 ############&lt;br /&gt;
 H..........#&lt;br /&gt;
 #++++++12++#&lt;br /&gt;
 #+++++++.12O&lt;br /&gt;
 J.p+p..++++#&lt;br /&gt;
 ##D#I#D#####&lt;br /&gt;
The pair of floodgates closest to the output (the ones in series) are open when they’re connected to the plates, and the pair of floodgates closest to the reservoir are closed when they’re connected to the plates. Additionally, if the two in series are connected to a lever, this setup can be turned into an AND gate simply by pulling the lever.&lt;br /&gt;
 &lt;br /&gt;
'''Multi-level designs:'''&amp;lt;br /&amp;gt;&lt;br /&gt;
Note that in any of these designs, any floodgates connected directly to the H can have an H moved directly above them, making the designs of the OR, NOR, and XOR gates much more compact (and probably faster).&lt;br /&gt;
NOT gate:&lt;br /&gt;
 ###H#&lt;br /&gt;
 #++1O&lt;br /&gt;
 Ip++#&lt;br /&gt;
 #D###&lt;br /&gt;
&lt;br /&gt;
OR gate:&lt;br /&gt;
 #######&lt;br /&gt;
 IqD+H.#&lt;br /&gt;
 #+++12#&lt;br /&gt;
 JqD+..O&lt;br /&gt;
 #######&lt;br /&gt;
&lt;br /&gt;
NOR gate:&lt;br /&gt;
 #######&lt;br /&gt;
 IpD+H.#&lt;br /&gt;
 #+++12#&lt;br /&gt;
 JpD+..O&lt;br /&gt;
 #######&lt;br /&gt;
&lt;br /&gt;
AND gate:&lt;br /&gt;
 #######&lt;br /&gt;
 IqD+D+#&lt;br /&gt;
 #+++12O&lt;br /&gt;
 JqD+++#&lt;br /&gt;
 #######&lt;br /&gt;
&lt;br /&gt;
NAND gate:&lt;br /&gt;
 #######&lt;br /&gt;
 IpD+D+#&lt;br /&gt;
 #+++12O&lt;br /&gt;
 JpD+++#&lt;br /&gt;
 #######&lt;br /&gt;
&lt;br /&gt;
XOR gate:&lt;br /&gt;
 ##########&lt;br /&gt;
 IpqD+H.++#&lt;br /&gt;
 #++++13++#&lt;br /&gt;
 JpqD+..24O&lt;br /&gt;
 ##########&lt;br /&gt;
&lt;br /&gt;
Alternative XOR gate:&lt;br /&gt;
&lt;br /&gt;
 #########&lt;br /&gt;
 IpD+H.++#&lt;br /&gt;
 #+++12++#&lt;br /&gt;
 JpD+..12O&lt;br /&gt;
 #########&lt;br /&gt;
The pair of floodgates closest to the output (the ones in series) are open when they’re connected to the plates, and the pair of floodgates closest to the reservoir are closed when they’re connected to the plates. Additionally, if the two in series are connected to a lever, this setup can be turned into an AND gate by pulling the lever.&lt;br /&gt;
&lt;br /&gt;
[[User:Madmadmadmage|Madmadmadmage]] 16:53, 9 December 2007 (EST)&lt;/div&gt;</summary>
		<author><name>Madmadmadmage</name></author>
	</entry>
	<entry>
		<id>https://dwarffortresswiki.org/index.php?title=40d_Talk:Computing&amp;diff=28849</id>
		<title>40d Talk:Computing</title>
		<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php?title=40d_Talk:Computing&amp;diff=28849"/>
		<updated>2007-12-09T20:13:36Z</updated>

		<summary type="html">&lt;p&gt;Madmadmadmage: /* Anthills */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;I created this page because I think it's a very interesting part of the game for advanced players.  I'm not at all familiar with creating wiki pages, so if someone else who was familiar with the concepts could write a section or two themselves, that would be grand.  Right now I think it's been proven possible to create logical input and output gates using fluid dynamics, axles and gears, and even the movements of dwarves utilizing pressure plates.&lt;br /&gt;
&lt;br /&gt;
It was on the 4th of Galena 1097 that the Fortress 'The Net of Skies' became self-aware.  Panicked mechanics attempted to disengage the mechanisms, but the fortress interpreted this as an attack and designated all Dwarves as hostile... --[[User:WyldKarde|WyldKarde]] 13:17, 23 November 2007 (EST)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:A suggested component: The one-use lever.&lt;br /&gt;
&lt;br /&gt;
 ó _X_ ___ / = ramp X = door&lt;br /&gt;
 #&amp;quot; ¯ /### &amp;quot; = bridge&lt;br /&gt;
 #########&lt;br /&gt;
&lt;br /&gt;
:The lever has a Pull The Lever repeat job on it. The door only opens when access is required. Upon being pulled, the lever opens the bridge and drops the dwarf that pulled it. -- [[User:Zaratustra|Zaratustra]] 14:56, 23 November 2007 (EST)&lt;br /&gt;
:Problem detected: the lever doesn't obstruct, so the dwarf can be left hanging on the lever's tile.&lt;br /&gt;
&lt;br /&gt;
I think we should strive to include an example of an NAND gate and/or a NOR gate for each style since that's the bare minimum for operation.--[[User:AlBorland|AlBorland]] 22:09, 23 November 2007 (EST)&lt;br /&gt;
&lt;br /&gt;
== Machine logic ==&lt;br /&gt;
&lt;br /&gt;
The machine logic gates as they stand are incomplete.  The inputs are levers, but the outputs are machine components.  In order to connect a machine logic gate to another gate, the machine signal needs to be converted back into a lever signal.  The only way I can see to do that is with a water tank, a pump, and a pressure plate. --[[User:Peristarkawan|Peristarkawan]] 12:38, 28 November 2007 (EST)&lt;br /&gt;
&lt;br /&gt;
== Anthills ==&lt;br /&gt;
&lt;br /&gt;
Kudos to whoever mods ants to be trainable for borg machines...  Hex anyone? :D [[User:N35t0r|N35t0r]] 20:28, 8 December 2007 (EST)&lt;br /&gt;
: This would make that person my favoritest ever.  --[[User:Geofferic|Geofferic]] 01:36, 9 December 2007 (EST)&lt;br /&gt;
: Agreed. [[User:Madmadmadmage|Madmadmadmage]] 15:13, 9 December 2007 (EST)&lt;/div&gt;</summary>
		<author><name>Madmadmadmage</name></author>
	</entry>
	<entry>
		<id>https://dwarffortresswiki.org/index.php?title=40d:Container&amp;diff=16198</id>
		<title>40d:Container</title>
		<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php?title=40d:Container&amp;diff=16198"/>
		<updated>2007-11-24T06:33:22Z</updated>

		<summary type="html">&lt;p&gt;Madmadmadmage: /* Barrels, bins and bags */  fixed minor grammatical error&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Containers are, typically enough, boxes (or barrels, or bins, or even bags) made out of a solid material and are used to hold everything from personal possessions, to gems, to [[alcohol|beer]], to quarry bush leaves [25], and even living creatures. Their use is context-sensitive, so you cannot use your barrels for storing coins.&lt;br /&gt;
&lt;br /&gt;
== Barrels, bins and bags ==&lt;br /&gt;
&lt;br /&gt;
[[Barrel|Barrels]] are (usually) wooden containers that are useful for storing items in a [[Stockpile#food|food stockpile]] and are used primarily for [[alcohol|flammable, unstable and volatile liquids]], 2nd-stage cooking items (read: dwarven syrup and quarry bush leaves), unlucky stacks of =longland beer biscuits[8]=, and so on. They are also found to have been used for seed disposal, with some barrels being occupied by bags filled with [[Plump_Helmet|plump helmet spawn]], [[Quarry_Bush|rock nuts]] and so on.&lt;br /&gt;
&lt;br /&gt;
Bins are, essentially, smaller barrels (although these can be made of [[metal]]) for everything that doesn't want barrels. They are sent to all the other stockpiles (with exclusion to the refuse and graveyard piles) and will hold much larger stacks of items, making organizing those endless piles of +giant cave spider silk cloth+ much easier to manage.&lt;br /&gt;
&lt;br /&gt;
Bags are some of the most widely-used containers in dwarf fortress, due to their use as both seed preservation and [[Glass_Furnace|sand collection]]. These are only made from plant fiber or animal (silk) cloth, leather, or [[adamantine]]. These are also the only stockpile containers that can be used as a stationary container, if you want one for that sort of thing.&lt;br /&gt;
&lt;br /&gt;
== Cabinets and coffers ==&lt;br /&gt;
&lt;br /&gt;
These two containers are both furniture items in your fortress, and are useful if you don't want your fortress drowning in [[Clothing|dumped]] [[Coins|items]].  These are only used as containers after you {{k|b}}uild them under shelter.  As long as a nearby bed/table/chair/armour rack/etc has been {{k|q}}uery - {{k|r}}oom - {{k|a}}ssigned to a dwarf, they will store their clothing items in the cabinet and all the other items (including coins) into the coffer.&lt;br /&gt;
&lt;br /&gt;
A [[wood]]en coffer is called a chest, and a glass coffer is called a box, but they are used for the same purpose.&lt;/div&gt;</summary>
		<author><name>Madmadmadmage</name></author>
	</entry>
	<entry>
		<id>https://dwarffortresswiki.org/index.php?title=40d:Above_ground&amp;diff=22491</id>
		<title>40d:Above ground</title>
		<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php?title=40d:Above_ground&amp;diff=22491"/>
		<updated>2007-11-24T06:23:55Z</updated>

		<summary type="html">&lt;p&gt;Madmadmadmage: Fixed minor typo (somepoint --&amp;gt; some point)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;A [[map tile]] is considered '''above ground''' if it has, at some point, been bleached by the [[light|everlasting day]] that casts shadows across the world. Any channel [[digging|dug]] from the surface by your [[miner]]s will expose [[subterranean]] to light creating new ''above ground''. Walls and floors constructed by dwarves also create new above ground tiles. The [[sky]] is considered above ground.&lt;br /&gt;
&lt;br /&gt;
''Above ground'' is the opposite term for [[subterranean]]. The terms are used opposingly in dwarf fortress when viewing a tile using the {{Key|k}} look at menu. Above ground can be combined with [[light]] and [[dark]] as well as [[inside]] and [[outside]].&lt;br /&gt;
&lt;br /&gt;
The effect of being above ground is unknown on dwarves, nor on other creatures.&lt;/div&gt;</summary>
		<author><name>Madmadmadmage</name></author>
	</entry>
	<entry>
		<id>https://dwarffortresswiki.org/index.php?title=40d:Justice&amp;diff=28391</id>
		<title>40d:Justice</title>
		<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php?title=40d:Justice&amp;diff=28391"/>
		<updated>2007-11-24T06:10:11Z</updated>

		<summary type="html">&lt;p&gt;Madmadmadmage: Fixed link typo to hammerer&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;One [[restraint]] or [[cage]] in an area set to be used by justice is needed for every 10 dwarves (rounded down).  If you don't have enough; then the [[sheriff]] with be unhappy, and more beatings will be handed out due to overcrowding in jail.&lt;br /&gt;
&lt;br /&gt;
=== Crime ===&lt;br /&gt;
* Building destruction - destroying a [[building]] during a [[tantrum]]&lt;br /&gt;
* Disorderly conduct - brawling while throwing a [[tantrum]]&lt;br /&gt;
* Violation of work order - a dwarf is punished if you ignore a [[noble]]'s [[mandate]].&lt;br /&gt;
* Vandalism - toppling [[furniture]] or [[door]]s during a [[tantrum]]&lt;br /&gt;
=== Punishment ===&lt;br /&gt;
* X days imprisonment - the sheriff or fortress guard haul the dwarf off to a [[restraint]] to serve a jail sentence&lt;br /&gt;
* Beating - the sheriff or fortress guard attack the dwarf unarmed for a short time, this punishment is used instead of imprisonment if the jail is full&lt;br /&gt;
* Hammering - the [[Hammerer]] beats the dwarf with a war hammer, causing death or serious injury&lt;/div&gt;</summary>
		<author><name>Madmadmadmage</name></author>
	</entry>
	<entry>
		<id>https://dwarffortresswiki.org/index.php?title=40d_Talk:Charcoal&amp;diff=28942</id>
		<title>40d Talk:Charcoal</title>
		<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php?title=40d_Talk:Charcoal&amp;diff=28942"/>
		<updated>2007-11-24T05:28:24Z</updated>

		<summary type="html">&lt;p&gt;Madmadmadmage: question&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Anyone wonder why you can make buildings out of charcoal? [[User:Madmadmadmage|Madmadmadmage]] 00:28, 24 November 2007 (EST)&lt;/div&gt;</summary>
		<author><name>Madmadmadmage</name></author>
	</entry>
</feed>