()
| 288 | } |
| 289 | |
| 290 | func NewANDGate3() *ANDGate3 { |
| 291 | a := new(ANDGate3) |
| 292 | |
| 293 | a.inputA = *circuit.NewWire("a", false) |
| 294 | a.inputB = *circuit.NewWire("b", false) |
| 295 | a.inputC = *circuit.NewWire("c", false) |
| 296 | a.output = *circuit.NewWire("d", false) |
| 297 | |
| 298 | a.andA = *circuit.NewANDGate() |
| 299 | a.andB = *circuit.NewANDGate() |
| 300 | |
| 301 | return a |
| 302 | } |
| 303 | |
| 304 | func (g *ANDGate3) Output() bool { |
| 305 | return g.output.Get() |