Skip to content

πŸš€ Genetic algorithm simulation which optimizes ship's movement to navigate through environment. Visualized in Ruby2D.

License

Notifications You must be signed in to change notification settings

IndieCoderMM/space-odyssey

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

18 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“— Table of Contents

πŸš€ Space Odyssey

This project is a simple implementation of genetic algorithm, simulated using Ruby2D graphic library.

Every ship has sensors to detect the surrounding and a randomized neural network. Network controls the ship's movement based on the sensor's reading. Each generation is generated from best performers of the previous generation.

demo_simulation

(back to top)

🎯 Features

  • Collision detection
  • Ray casting for sensors
  • Neural network layers
  • Network visualizer
  • Generation system

(back to top)

πŸ’» Getting Started

To get a local copy up and running, follow these steps.

Prerequisites

In order to run this project you need Ruby installed on your machine.

Setup

Clone this repository to your desired folder:

  cd my-project
  git clone [email protected]:IndieCoderMM/space-odyssey.git .

Installation

Install this project with:

  bundle install

Usage

To run the simulation, execute the following command:

  ruby main.rb

(back to top)

πŸ‘¨β€πŸš€ Author

(back to top)

πŸ”­ Future Features

  • Improve algorithm
  • Add shooting mechanic
  • Optimize code

(back to top)

🀝 Contributing

Contributions, issues, and feature requests are welcome!

Feel free to check the issues page.

(back to top)

πŸ’– Show your support

If you like this project, please consider giving it a ⭐.

(back to top)

πŸ’Ž Resources

(back to top)

πŸ“œ License

This project is MIT licensed.

(back to top)

About

πŸš€ Genetic algorithm simulation which optimizes ship's movement to navigate through environment. Visualized in Ruby2D.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages