feat: first time using setw but its interesting; used in window for numbers
This commit is contained in:
+2
-2
@@ -1,7 +1,7 @@
|
||||
#ifndef GLOBALS_HPP
|
||||
#define GLOBALS_HPP
|
||||
|
||||
constexpr int ROW = 10;
|
||||
constexpr int COL = 10;
|
||||
constexpr int ROW = 4;
|
||||
constexpr int COL = 4;
|
||||
|
||||
#endif
|
||||
|
||||
+7
-1
@@ -1,6 +1,12 @@
|
||||
#ifndef WINDOW_HPP
|
||||
#define WINDOW_HPP
|
||||
|
||||
// Add code here
|
||||
#include "globals.hpp"
|
||||
#include <array>
|
||||
|
||||
struct Window {
|
||||
std::array<std::array<int, COL>, ROW> m_board = {};
|
||||
void draw_window();
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user