Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Size update(non dynamic) #112

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions src/gameboard.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ std::array<std::string, num_of_bars> 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<PATTERN_HEAD>(t);
for (auto i = 0; i < playsize; i++) {
Expand Down Expand Up @@ -117,10 +117,16 @@ std::string drawSelf(gameboard_data_array_t gbda) {
const auto is_first_col = (x == 0);
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<BASE_BAR>(vertibar);
Expand Down