This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "drawable.h" | |
#include <SDL/SDL.h> | |
class SDLDrawable : public Drawable | |
{ | |
public: | |
SDLDrawable(int w, int h); | |
~SDLDrawable(); | |
void setPixel(int x, int y, unsigned int color); | |
unsigned int getPixel(int x, int y); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <vector> | |
#include <cmath> | |
#include <algorithm> | |
struct Point | |
{ | |
int x; | |
int y; | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#pragma once | |
#include <array> | |
template <int width, int height, typename T> | |
class Matrix | |
{ | |
using row_t = std::array<T, width>; | |
using col_t = std::array<T, height>; | |
public: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <vector> | |
#include <random> | |
#include <chrono> | |
enum class TileStatus | |
{ | |
Visited, | |
Wall, | |
NotVisited |
NewerOlder