Inspiration

I created a fun game this weekend to learn Genetic Programming and these concepts can be used in real life simulations.

What it does

Shark Simulator demonstrates natural selection with genetic algorithms. Fish DNA codes for color, agility, and whether or not each fish has an impressive display of green stars on their back (a secondary characteristic).

The user can interact with the simulation in a few ways:

  • Increasing/Decreasing the amount of prey, which increases/decreases the environmental carrying capacity of fish
  • Adjusting the DNA mutation rate of children fish, anywhere from an exact clone of a fish's parent's DNA to completely random DNA.
  • Increasing/decreasing the amount of predators
  • Clicking or dragging the mouse to manually add more fish to the ecosystem
  • Instantaneously exterminating the population of fish with the push of a button

Screenshot-from-2020-12-05-21-17-08

How we built it

I built it using Javascript and HTML

Challenges we ran into

Learning and Programming Genetic Algorithm was difficult

Accomplishments that we're proud of

Learning and Implementing Genetic Algorithm from scratch.

What we learned

Genetic Algorithms,DNA Mutation Algorithm,Hosting Website on Firebase

What's next for Shark Simulator

  1. Adding Realistic UI
  2. Making it faster using parallel programming

Checkout the Live Hosted Link

https://sharksimulator.web.app/

GoDaddy Domain Name : sharksimulator.co

Share this project:

Updates