Skip to content

Latest commit

 

History

History
21 lines (17 loc) · 565 Bytes

README.md

File metadata and controls

21 lines (17 loc) · 565 Bytes

Conway's Game of Life

Implemented using HTML/CSS/JS

Things I learned from this:

  • Cool trick to swtich 0 and 1
function changeColor() {
  const newState = 1 - state;
  state = newState;
  document.getElementById("colorbtn").innerText = "Change Color : " + color[newState];
}
  • Familiarised with canvas, button element, DOM Manipulation and Array in JS
  • Automata, States and Transition Table