@@ 44,7 44,8 @@ struct Piece {
GridField field;
};
-void board_print(GridField g, GridField highlight) {
+// Render `g` as a board, highlighting any cells that are active in `highlight`
+void render_board(GridField g, GridField highlight) {
// The shape of the printed board. This string is never sent to stdout because
// it does not have space for ANSI color codes. Instead, we fill it with
// meaningful symbols and later iterate it and print a single ANSI-colored
@@ 364,7 365,7 @@ void render(struct Game g) {
g.active_column);
}
- board_print(g.field, allowed);
+ render_board(g.field, allowed);
if (g.state == CHOOSING_PIECE) {
render_table(g.table, -1);