a web based snake game using machine learning
trying to learn a javascript library called ml5.js by creating a basic web based snake game. The snake is not controlled by the arrow keys but instead, it is controlled by hand gestures by the help of machine learning.
Node should be installed.
- Clone or download the ZIP file.
- Unzip the file.
- open the terminal and navigate to the path where you unzipped the downloaded file.
- Run this command:
npm install -g http-server
, if local server is not installed. This will allow us to run the js files on localhost. - Run this command:
browser-sync start --server -f -w
which has the benefit of reloading the browser automatically after saving the file. After running the command, go to the localhost address provided in the terminal.(example: http://localhost:3000).