float point exception, waiting for debugging

This commit is contained in:
2024-06-30 02:51:24 -04:00
parent c5f5f969a4
commit e513e78d1d
32 changed files with 915 additions and 0 deletions

21
src/display.cc Normal file
View File

@ -0,0 +1,21 @@
#include "display.h"
display::display(): contents{DISPLAY_HEIGHT} {}
void display::clear() {
for (auto line : contents)
line.clear();
}
void display::print(std::ostream &out) const {
for (auto line : contents)
out << line << std::endl;
}
void display::print_line(const std::string &line, const int linenum) {
contents[linenum] = line;
}
void display::print_position(const position &pos, const char ch) {
contents[pos.y][pos.x] = ch;
}