A Knight Tour Genetic Algorithm simulation with p5js javascript library.
If you would like to check it out in action: https://editor.p5js.org/Rocksus/full/yX2ZlGZDL
To run the program, just access index.html
using any browser.
To add storing capabilities, I have implemented a firebase connection.
First, in sketch.js
, change enableDatabase
to true
.
Then, create a new file called constants.js
and fill them with:
const API_KEY = "your-api-key"
const AUTH_DOMAIN = "your-firebaseapp-auth-domain"
const DATABASE_URL = "your-firebaseio-database-url"
const STORAGE_BUCKET = "your-firebase-storage-bucket-url"
const MESSAGING_SENDER_ID = "your-messaging-sender-id"
If you want to know more about it, you can read my article post about it.
- Add ACO Algorithm approach
- Add pure heuristics approach
- Open to suggestions!