+ExtFunc void ShowScore(int scr, int totalDrops, int totalLines, int totalAdds)
+{
+ float timer;
+ move(6, statusXPos); addstr("Next: ");
+ move(7, statusXPos + 6); addstr(" ");
+ ShapeIterate(nextShape[scr], scr,
+ ShapeToNetNum(nextShape[scr]) == 15 ? 15 : 16, statusXPos/2 + 4,
+ 1, GlanceFunc, NULL);
+ move(statusYPos - 20 + 1, statusXPos);
+ timer = CurTimeval() / 1e6;
+ printw("Lines: %05d", totalLines);
+ if (timer > 4)
+ printw(" (%.1f ppm)", totalDrops * 60 / timer);
+ move(statusYPos - 18, statusXPos);
+ printw("apm: %.1f", totalAdds * 60 / timer);
+ if (totalLines > 0)
+ printw(" (%d%% yield) ", 100 * totalAdds / totalLines);
+}
+