# Contributing Hello! Thank you for taking an interest. This began as a solo project with the aid of Claude Opus 4.8, but help is genuinely welcome in the form of bug reports, fixes, filling in the edges of the simulation, or untangling code that grew messily. ## Building and testing ```sh make app # build the game -> build/libreopolis make test # build and run the full test suite (no SDL needed) make format # rewrite sources to the house style make format-check # style gate — run this before you commit ``` `make test` compiles and runs every `tests/test_*.cpp` with nothing but a compiler. Style is enforced by `.clang-format` at the repo root (existing line breaks win; hand-packed data tables sit inside `// clang-format off/on` guards), so please run `make format-check` before sending a change. New code should name tile codes through `include/sc2k/tile_codes.hpp` rather than spelling out raw XBLD/XTER hex — the tests deliberately keep the raw literals as an independent check. ## Sending a change If you want to send a change, please keep it focused to one concern per pull request, and vaguely match the style around you (unless you're improving code quality, in which case, please match better code!). A change that fixes behaviour should come with a test that would fail without it. ## Never commit game content Remember, never commit anything copied directly from the original game. There should be no sprites, sounds, or original city files, for example, unless they are fully original.