Skip to content

A medium project where little things 🐥 evolve in a simulated and simplified world 🌍, while trying to survive as long as possible 🔥.

License

Notifications You must be signed in to change notification settings

Manfred-Madelaine-pro/quest-ai

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Quest AI 🌍

A medium project where little things evolve in a simulated and simplified world, while trying to survive as long as possible to world climate changes.

Quest AI gif

Dependencies 📦

Note that following libraries are used in the project, thus are required on your machine if you want to run it :

numpy
tkinter
matplotlib
pyyaml

quick start 🚀

  1. Install all dependencies
  2. Then run :
    python3 main.py
    

🏗️ world building 🌱

Rain 🌧️ occures randomly on small part of the map and provide a natural world's water supply.

Data Model 📚

Quest AI - Data Model

AI types 🤖

As for entities, we have implemented the following ones :

  1. A Random entity that acts regardless of his environment changes.
  2. A Water seeker AI that can choose only between wait, move or drink.
  3. An Herbivorous AI that can, not only choose between wait, move and drink actions, but also eat available food.
  4. A Carnivorous AI which have same options as Herbivorous AI, but can also eat other "species".
  5. A Cannibal AI, the most dangerous one, can devour everything near it.

Display ✨

An example of Neural Network viewed from the console log :

$ py back/ai/network.py
   [Input]             Input Weights           [Hidden 1]   Hidden Weights   [Hidden 2]   Output Weights    [Output]
      0        -0.701  0.321   -0.904  -0.437       0        -0.689  -0.186       0        0.336    0.46        0
      0        0.468    -0.1   -0.654  -0.132       0        0.149   -0.006       0        0.416   0.118        0
      0                                                                                    0.487   -0.192       0
      0
                                                ----- mutation -----

   [Input]             Input Weights           [Hidden 1]   Hidden Weights   [Hidden 2]   Output Weights    [Output]
      0        -0.785  0.321     -1    -0.267       0        -0.504  -0.186       0        0.336   0.651        0
      0        0.468   -0.214  -0.902  0.075        0        0.149   -0.006       0         0.49    0.28        0
      0                                                                                    0.487    0.14        0
      0

Best score per generation

About

A medium project where little things 🐥 evolve in a simulated and simplified world 🌍, while trying to survive as long as possible 🔥.

Topics

Resources

License

Stars

Watchers

Forks

Languages