Skip to content

Commit

Permalink
Numbers for columns, suggestion by @itsthecactus
Browse files Browse the repository at this point in the history
  • Loading branch information
FLAK-ZOSO committed Jun 20, 2023
1 parent efb18c9 commit fdc738a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions fullkning.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@ class StoneBlock : public Block {
// A VirtualBlock represents the place where the user will have to collocate the blocks
class VirtualBlock : public Block {
public:
VirtualBlock(sista::Coordinates coordinates_) : Block('O', coordinates_, virtual_style, BlockType::Virtual) {}
VirtualBlock(sista::Coordinates& coordinates_, bool _by_reference) : Block('O', coordinates_, virtual_style, BlockType::Virtual, true) {}
VirtualBlock(sista::Coordinates coordinates_) : Block((char)('0'+coordinates_.x), coordinates_, virtual_style, BlockType::Virtual) {}
VirtualBlock(sista::Coordinates& coordinates_, bool _by_reference) : Block((char)('0'+coordinates_.x), coordinates_, virtual_style, BlockType::Virtual, true) {}
virtual BlockType getType() {
return BlockType::Virtual;
}
Expand Down Expand Up @@ -306,6 +306,14 @@ int main(int argc, char* argv[]) {
path += ".level";
fillFromLevelFile(path);
field_.print('&');
cursor.set(2, 2);
ANSI::Settings(
ANSI::ForegroundColor::F_WHITE,
ANSI::BackgroundColor::B_BLACK,
ANSI::Attribute::REVERSE
).apply();
std::cout << "0123456789" << std::flush;
ANSI::reset();
std::this_thread::sleep_for(std::chrono::milliseconds(1000));

bool finished = false;
Expand Down
Binary file modified fullkning.exe
Binary file not shown.

0 comments on commit fdc738a

Please sign in to comment.