All projects
Software · 2024
Warhammer 40k Points Calculator
University Introduction to Programming project in Java

A command-line army builder that reads unit data from CSV, tracks selections against a points limit, writes a report file, and is covered by JUnit tests.
- 4
- sprints
- JUnit 5
- tested with
#Overview
For my university Introduction to Programming module I built a points calculator for the tabletop game Warhammer 40k. The program reads each unit's data from a CSV file, lets the user build an army up to a points limit, and writes a full breakdown to a report file.
#Built in four sprints
- CSV reading: a reusable method that locates the chosen army file and searches it line by line.
- Unit selection & storage: user input is matched against the CSV, and selections are stored in an
ArrayList. - Report generation:
FileWriterproduces a dynamic, human-readable army report. - Testing: unit tests for every major data-processing method with JUnit, built with Maven.
I also used inheritance for user data (userData → fullUserData) to meet the brief.