~ajpaon/squell

e0703b5d38bb0dc0ca9b2c84092d69e64f73caec — Andrew Paon 7 months ago a172a3b
board_print -> render_board
1 files changed, 3 insertions(+), 2 deletions(-)

M main.c
M main.c => main.c +3 -2
@@ 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);