Giter Site home page Giter Site logo

alien-invasion's Introduction

Alien Invasion

Mad aliens are about to invade the earth and you are tasked with simulating the invasion.

Prerequisite

setup Golang working environment

usage

Clone the repository and install the dependencies

git clone https://github.com/codaelux/Alien-Invasion.git
cd Alien-Invasion

Run

Getting started

$ go run main.go -aliens 20

Options: View all CLI options

$ go run main.go -help

CLI options

usage of /main:
 
  -aliens int
        number of aliens invading
  -intel string
        a file used to name aliens (default "./files/aliens.txt")
  -movements int
        number of alien movements (default 10000)
  -world string
        a file used as game world map input (default "./files/example.txt")

running with specific alien movement command

$ go run main.go -aliens 20 -movements 50 

running with alien world path and alien name directory

$ go run main.go -aliens 20 -movements 50 -world "./test/example.txt" -intel "./test/alien.txt"

Testing

Run the test suite with:

$ go test ./... -v

alien-invasion's People

Contributors

bizmindx avatar

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.