rogueviz::seuphorica::call compute_size

This commit is contained in:
Zeno Rogue
2025-03-08 16:41:40 +01:00
parent 1aa201bd58
commit 5e801af7a9
+1 -3
View File
@@ -23,9 +23,7 @@ namespace seuphorica {
void compute_score();
void draw_board() {
minx=15, miny=15, maxx=0, maxy=0;
for(auto& b: board) if(!just_placed.count(b.first)) minx = min(minx, b.first.x), maxx = max(maxx, b.first.x), miny = min(miny, b.first.y), maxy = max(maxy, b.first.y);
miny -= 6; minx -= 6; maxx += 7; maxy += 7;
compute_size();
compute_score();
}