Code Monkey home page Code Monkey logo

artillery-game's Introduction

Artillery Game

A three-player turn based Artillery Game written in Haskell. Each player controls a tank, with a set of weapons, and the objective is to destroy the tanks of the other players.

Installation

Prerequisites

  • Haskell Platform. Installation instructions can be found here

Building the project

  • Clone the repository
$ git clone https://github.com/sukrutrao/Artillery-Game.git
$ cd Artillery-Game
  • Install using Cabal
$ cabal install
  • Copy the file Level1.txt from src folder to dist/build/Artillery-Game folder
$ cp src/Level1.txt dist/build/Artillery-Game/

Playing the game

Use

$ ./Artillery-Game

About the game

  • The game is a multi-player turn based game. Currently, the number of players supported is three.
  • Each player has one tank. Tanks can shoot weapons on opponent tanks.
  • Each tank starts with a certain health. Being hit by weapons decreases the health. If it reaches zero, the tank is eliminated from the game.
  • Each player is given three weapon types. The quantities of each are 1000, 10, and 2 respectively.
  • Each weapon type has an associated damage and impact radius. In lexicographic order, the number of weapons of the type reduces, the damage increases, and the impact radius decreases.
  • The objective of each player is to eliminate all other players' tanks. The last tank standing, if any, is the winner.
  • To triangle marker denotes whose turn it is. The bar on the top of a tank denotes its remaining health.
  • To move the tank, press the left and right arrow keys.
  • To change the power of launch of weapon, use the + and - keys.
  • To change the angle of the turret, use the A and D keys.
  • To launch the weapon, use the Space key.

Documentation

Code documentation can be found here.

Authors

License

This project is provided under the MIT License.

artillery-game's People

Contributors

atulraj297 avatar gooddeeds avatar sipian avatar sukrutrao avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

zhs1397

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.