Subscribe!
Code - https://github.com/vs-123/ai-box-rs
A basic demonstration of a genetic algorithm in Rust
How it works:
The player initially has 4 directions to move, i.e., North, South, East and West.
The player randomly chooses a direction.
If the player moves further away from the food, then it will not use the same direction again.