From 647ce7b555b658959cdea6308f2e71dc888bfbb0 Mon Sep 17 00:00:00 2001 From: SYBIOTE <54761979+SYBIOTE@users.noreply.github.com> Date: Mon, 7 Oct 2019 03:13:25 +0530 Subject: [PATCH 1/2] Size update doubled the size of the board horizontally --- src/gameboard.cpp | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/src/gameboard.cpp b/src/gameboard.cpp index 206866de..ee2c0e99 100644 --- a/src/gameboard.cpp +++ b/src/gameboard.cpp @@ -87,7 +87,7 @@ std::array make_patterned_bars(int playsize) { const auto generate_x_bar_pattern = [playsize](const bar_pattern_t t) { enum { PATTERN_HEAD, PATTERN_MID, PATTERN_TAIL }; constexpr auto sp = " "; - constexpr auto separator = "──────"; + constexpr auto separator = "────────────"; std::ostringstream temp_richtext; temp_richtext << sp << std::get(t); for (auto i = 0; i < playsize; i++) { @@ -115,12 +115,18 @@ std::string drawSelf(gameboard_data_array_t gbda) { std::get(vertibar)); for (auto x = 0; x < playsize; x++) { const auto is_first_col = (x == 0); - const auto sp = (is_first_col ? " " : " "); + const auto sp = (is_first_col ? " " : " "); str_os << sp; - str_os << "│ "; + //change 2 + if(is_first_col == true){ + str_os << " |";} + else{ + str_os << " |"; + } str_os << getTileOnGameboardDataArray(gbda, point2D_t{x, y}); } - str_os << " │"; + //change3 + str_os << " |"; str_os << "\n"; } str_os << std::get(vertibar); From 88b3a69a57b11623b1e77c720a39a2fc3a2e1c10 Mon Sep 17 00:00:00 2001 From: SYBIOTE <54761979+SYBIOTE@users.noreply.github.com> Date: Mon, 7 Oct 2019 03:25:07 +0530 Subject: [PATCH 2/2] size increase(non - dynamic) increased size horizontally to accommodate bigger strings --- src/gameboard.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gameboard.cpp b/src/gameboard.cpp index ee2c0e99..81460861 100644 --- a/src/gameboard.cpp +++ b/src/gameboard.cpp @@ -115,7 +115,7 @@ std::string drawSelf(gameboard_data_array_t gbda) { std::get(vertibar)); for (auto x = 0; x < playsize; x++) { const auto is_first_col = (x == 0); - const auto sp = (is_first_col ? " " : " "); + const auto sp = (is_first_col ? " " : " "); str_os << sp; //change 2 if(is_first_col == true){