Snake Game

In one of the online coding interviews I was given a problem to create a snake game we all played in old days. The problem statement was something like this given the moves you have to determine after how many moves the snake will eat himself. I was able to solve the problem, but as I was solving it I was thinking "can I can give this code a little more life with javascript"...

December 13, 2021 · 1 min · Zeeshan Khan
Game of life

Game of Life

The Game of Life, also known simply as Life, is a cellular automaton devised by the British mathematician John Horton Conway in 1970. for more detail check Wikipedia In short, the game is a 2D grid that has the following rules Game Rules Any live cell with fewer than two live neighbours dies, as if by underpopulation. Any live cell with two or three live neighbours lives on to the next generation....

December 9, 2021 · 1 min · Zeeshan Khan