feat: first time using setw but its interesting; used in window for numbers
This commit is contained in:
+7
-1
@@ -1,14 +1,20 @@
|
||||
#include <iostream>
|
||||
#include <thread>
|
||||
#include "input.hpp"
|
||||
#include "window.hpp"
|
||||
|
||||
int main() {
|
||||
Input input;
|
||||
Window window;
|
||||
bool running = true;
|
||||
std::thread input_thread(&Input::get_input, &input, std::ref(running));
|
||||
|
||||
|
||||
window.m_board[0][0] = 4;
|
||||
while (running) {
|
||||
std::cout << "Hello World" << std::endl;
|
||||
window.draw_window();
|
||||
}
|
||||
|
||||
input_thread.join();
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user