Giter Site home page Giter Site logo

darwinio's Introduction

Made with Emacs GPLv3 Python Powered

Darwinio

______   _______  _______          _________ _       _________ _______
(  __  \ (  ___  )(  ____ )|\     /|\__   __/( (    /|\__   __/(  ___  )
| (  \  )| (   ) || (    )|| )   ( |   ) (   |  \  ( |   ) (   | (   ) |
| |   ) || (___) || (____)|| | _ | |   | |   |   \ | |   | |   | |   | |
| |   | ||  ___  ||     __)| |( )| |   | |   | (\ \) |   | |   | |   | |
| |   ) || (   ) || (\ (   | || || |   | |   | | \   |   | |   | |   | |
| (__/  )| )   ( || ) \ \__| () () |___) (___| )  \  |___) (___| (___) |
(______/ |/     \||/   \__/(_______)\_______/|/    )_)\_______/(_______)

This is a Python program that simulates the process of evolution, complete with organisms, genetic codes, and neural networks.

Features

  • You get to randomly generate organisms, and see how they evolve.
  • Change the conditions while the simulation is running.
  • You can control - Food and Temperature

Screenshot

main game play screenshot

Setup

*Nix(Gnu-Linux, *BSD, MacOS)

  1. Make sure your python is up-to date
  2. Install pipx

    For Debian and it's derivatives

    apt install pipx
    

    For ArchLinux and it's derivatives

    pacman -S python-pipx
    
    

    For Gentoo

    sudo emerge --sync
    sudo emerge --ask --update --deep --newuse @world
    sudo emerge --ask dev-python/pip
    sudo pip install pipx
    
    
  3. Open your terminal, and install darwinio by running
    pipx install darwinio
  4. To run the program,
    pipx run darwinio

Microsoft Windows

  1. Make sure you python is up-to date, if you don't have python installed install a recent version from python's official website..

    Or, if you have winget available, you can use,

    winget install python
  2. Open your terminal/Powershell, and install darwinio by running

    py -m pip install darwinio
  3. To run the program,

    py -m darwinio

Building and testing

*Nix(Gnu-Linux, *BSD, MacOS)

  1. Clone the repository to your local machine using the following command in your terminal
    git clone https://github.com/tusharhero/darwinio.git
    
  2. Create a virtual environment and source it
    python -m venv .venv
    source ./.venv/bin/activate
    
  3. Get the requirements
    pip install build
    
  4. Build and install it
    python -m build
    pip install .
    
  5. Test it by running it.
    python -m darwinio
    

License

This program is copyright © 2023 Tushar Maharana [email protected], and Mihir Nallagonda [email protected].

This program is licensed under the terms of the GNU GENERAL PUBLIC LICENSE VERSION 3 which means this is Free Software.

darwinio's People

Contributors

ashirbadsahu avatar iamharshit188 avatar jvbioy avatar martinus2004 avatar thedarwinioproject avatar tusharhero avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

darwinio's Issues

pygame.error: mixer not initialized

Onto Running :

pygame-ce 2.3.2 (SDL 2.26.5, Python 3.11.4)
ALSA lib confmisc.c:855:(parse_card) cannot find card '0'
ALSA lib conf.c:5181:(_snd_config_evaluate) function snd_func_card_inum returned error: No such file or directory
ALSA lib confmisc.c:422:(snd_func_concat) error evaluating strings
ALSA lib conf.c:5181:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1334:(snd_func_refer) error evaluating name
ALSA lib conf.c:5181:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5704:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2666:(snd_pcm_open_noupdate) Unknown PCM default
Traceback (most recent call last):
  File "/sec/home/iamharshit188/.local/pipx/.cache/e2de8fd435481cf/bin/darwinio", line 8, in <module>
    sys.exit(cli())
             ^^^^^
  File "/sec/home/iamharshit188/.local/pipx/.cache/e2de8fd435481cf/lib/python3.11/site-packages/darwinio/__main__.py", line 150, in cli
    main((1000, 750), 60, (50, 50))
  File "/sec/home/iamharshit188/.local/pipx/.cache/e2de8fd435481cf/lib/python3.11/site-packages/darwinio/__main__.py", line 53, in main
    pg.mixer.music.load(path)
pygame.error: mixer not initialized


Distribution : ArchLinux & Kali Linux

Infinite food

Combination of food given and food obtained from demise of other organisms snowballs into way too much food which is unrealistic

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.