This commit is contained in:
Eric Mertens
2022-11-04 19:59:35 -07:00
parent 29a840bdfc
commit 48808dab97
2 changed files with 95 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
#ifndef INTCODE_GRID_HPP_
#define INTCODE_GRID_HPP_
#include <ostream>
#include <map>
#include <tuple>
#include <intcode/Machine.hpp>
namespace intcode {
using Coord = std::pair<ValueType, ValueType>;
auto Draw(std::ostream & out, std::map<Coord, ValueType> image) -> void;
auto Up(Coord) -> Coord;
auto Down(Coord) -> Coord;
auto Left(Coord) -> Coord;
auto Right(Coord) -> Coord;
auto CW(Coord) -> Coord;
auto CCW(Coord) -> Coord;
auto Add(Coord, Coord) -> Coord;
} // namespace
#endif