Skip to content

An interesting problem to understand undirected graphs

Notifications You must be signed in to change notification settings

souvikhaldar/alien-invasion

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Alien-Invasion

Situation

Alien-Invasion is a simulation of hypothetical situation (or maybe near future :P), where N number of aliens are unleashed on us. They kill each other if present in same city and destroy the city as well during the brutal fight. The final state of our planet is the map as stored in output file as defined in config.json. You can read the entire situation here

Video Demo

Video demonstration of the simulation

Steps to run the simulation

  1. Install golang
  2. Clone this repository. git clone git@github.com:souvikhaldar/alien-invasion.git
  3. Get into the repository. cd alien-invasion/.
  4. Install the dependencies using go mod tidy.
  5. Run the simulation 5 aliens or any number you want go run cmd/ai/main.go -N=5
  6. By default it uses the credentials present in config.json present in the root. You can provide other configuration file by using the flag -conf=<file-name.
  7. The output file is output_map.txt in testfiles dir if not specified otherwise.

About

An interesting problem to understand undirected graphs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages