Giter Site home page Giter Site logo

wargames's Introduction

What is Wargames?

Wargames is a simple battle simulator in Java. In a Battle two armies will fight against each other. An army consists of units. Units are special troops that can have special abilities.

The project was created as an obligatory submission in the subject IDATT2001 on computer engineering at NTNU.

To developers

FSH - FileHandlingSystem

Classes with "FSH" in the name shows that the class is a "filehandling system class". This means that it is responsible for reading and writing to files, and managing files.

ArmyFSH

The ArmyFSH stores and writes armies that are stored in memory. Units are stored in a csv file. The csv file always starts with the name of the army. The file name should also be the name of the army.

The Units are stored in the following fashion:
unitType,unitName,health,count

Where:

  • unitType - type of Unit
  • unitName - name of the Unit
  • health - amount of healthPoints the unit has
  • count - Amount of the unit in the Army

The count is there for saving space. Rather than having multiples of lines representing the same Unit, the count will save unnecessary data duplication.

UnitFactory

Unit Factory creates units from strings. This is usually done hand in hand when parsing files. If new types of Units are added, they should also be added in the factory, if the Unit is wished to be used by the Factory.

JavaFX

Todo

System requirements

  • Apache maven
  • Java 16

wargames's People

Contributors

aaarunan 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.