Skip to content

JavaScript ECMAScript6 logic gates (AND, OR, NOT, XOR) using Conway's Game of Life

License

Notifications You must be signed in to change notification settings

jayalbo/GoLGates.js

Repository files navigation

GoLGates.js

JavaScript ECMAScript6 logic gates (AND, OR, NOT, XOR) using Conway's Game of Life

Installation

git clone https://github.com/jayalbo/GoLGates.js.git

HTML5
<script src="baseGOL.js"></script>
<script src="logicGates.js"></script>
HTML 4
<script type="text/javascript src="baseGOL.js"></script>
<script type="text/javascript src="logicGates.js"></script>

How to use it

golGates = new LOGICGates();

//AND Gate
golGates.andGate(1,1); //1

//OR Gate
golGates.orGate(1,0); //1

//NOT Gate
golGates.notGate(1); //0

//XOR Gate
golGates.xorGate(1,0); //1

Demo

Game of Life 8-bit Adder

Demo of a simple 8-bit calculator (adder) using GoLGates.js - Link

HTML/CSS by Andrew Creech

About

JavaScript ECMAScript6 logic gates (AND, OR, NOT, XOR) using Conway's Game of Life

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published