diff options
| author | dawidg81 <dawidgorski.m@gmail.com> | 2026-01-26 16:24:55 +0100 |
|---|---|---|
| committer | dawidg81 <dawidgorski.m@gmail.com> | 2026-01-26 16:24:55 +0100 |
| commit | a07cb9c0d0f858ac159cc5c0117e3f3df23a5752 (patch) | |
| tree | 0330d3eaf8010873ef16a181a68f67b17981ef60 /src/game/display.cpp | |
| parent | 11e83f577039ec03403720b416e7f8bd66606342 (diff) | |
more code fragmentation
Diffstat (limited to 'src/game/display.cpp')
| -rw-r--r-- | src/game/display.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/game/display.cpp b/src/game/display.cpp new file mode 100644 index 0000000..4fb16cb --- /dev/null +++ b/src/game/display.cpp @@ -0,0 +1,14 @@ +#include "Game.hpp" + +#include <cstdlib> +#include <cstdio> +#include <iostream> + + +void Game::displayBoard() { + for (int i = 0; i < boardHeight; i++) { + for (int j = 0; j < boardWidth; j++) + putchar(tileMap[i][j]); + putchar('\n'); + } +}
\ No newline at end of file |
