Giter Club home page Giter Club logo

wartheatresimulator's Introduction

War Theatre Simulator

This is a project of turn-based simulation of strategic millitary combats on a hexagonal map. There are three types of units and several biomes. Effectiveness of an attack depends of supply level and terrain type.

Units

There are 3 types of units: infantry, tanks and artillery. They differ by damage dealt to other units, range and movement points.

Two most important parameters of a unit is organization and supply level.

Organization

Organization is the potential to defend and attack (similar to HP in many games). During an attack, the enemy suffers organization loss equal to damage. If after an attack a unit has 0 or less organization, it is destroyed.

Supply level

Unit that has low supply level deals little damage and having less than 25 prevents it from attacking. Every round all units are given 25 supply level points.

Movement points

Movement to adjacent field or attacking costs 1 movement point. Renewed every turn. This value cannot be lower than 0.

Controlling

This project has command line interface. Enter h to get list of available commands.

Example

For an example, please refer to test/example1.cpp and its corresponding png map (it uses NATO symbols). It creates a map using MapEditor class with two human factions and then runs the game. You can build it with:

cmake .
make example1

wartheatresimulator's People

Contributors

mrater avatar

Watchers

 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.