From 22fe7bdf0b8aab9d13aaa433c96cff77d11234a2 Mon Sep 17 00:00:00 2001 From: "A.M. Rowsell" Date: Thu, 28 Aug 2025 10:45:41 -0400 Subject: [PATCH] organize: moved include files to inc/ --- Board.cpp | 4 ++-- NeoPixel.cpp | 2 +- Piece.cpp | 2 +- Board.hpp => inc/Board.hpp | 0 NeoPixel.hpp => inc/NeoPixel.hpp | 0 Piece.hpp => inc/Piece.hpp | 0 main.cpp | 6 +++--- 7 files changed, 7 insertions(+), 7 deletions(-) rename Board.hpp => inc/Board.hpp (100%) rename NeoPixel.hpp => inc/NeoPixel.hpp (100%) rename Piece.hpp => inc/Piece.hpp (100%) diff --git a/Board.cpp b/Board.cpp index 933dfcc..38eaed5 100644 --- a/Board.cpp +++ b/Board.cpp @@ -6,7 +6,7 @@ // This Source Code Form is "Incompatible With Secondary Licenses", as // defined by the Mozilla Public License, v. 2.0. -#include "Board.hpp" +#include "inc/Board.hpp" #include "inc/strFuncs.hpp" /* @@ -40,7 +40,7 @@ Board::~Board() { void Board::setupInitialPosition() { // set up the board grid with smart pointers - // initialize each square with a Piece + // initialize each square with a Piece or nullptr playerTurn = PL_WHITE; for(int i = 0; i < 8; i++) { switch(i) { diff --git a/NeoPixel.cpp b/NeoPixel.cpp index 343310f..68ba1dc 100644 --- a/NeoPixel.cpp +++ b/NeoPixel.cpp @@ -6,7 +6,7 @@ // This Source Code Form is "Incompatible With Secondary Licenses", as // defined by the Mozilla Public License, v. 2.0. -#include "NeoPixel.hpp" +#include "inc/NeoPixel.hpp" uint8_t setNeoPixel(uint8_t index, uint8_t red, uint8_t green, uint8_t blue) { return 0; diff --git a/Piece.cpp b/Piece.cpp index 95ab9f3..e0ed418 100644 --- a/Piece.cpp +++ b/Piece.cpp @@ -6,7 +6,7 @@ // This Source Code Form is "Incompatible With Secondary Licenses", as // defined by the Mozilla Public License, v. 2.0. -#include "Piece.hpp" +#include "inc/Piece.hpp" Piece::~Piece() { return; diff --git a/Board.hpp b/inc/Board.hpp similarity index 100% rename from Board.hpp rename to inc/Board.hpp diff --git a/NeoPixel.hpp b/inc/NeoPixel.hpp similarity index 100% rename from NeoPixel.hpp rename to inc/NeoPixel.hpp diff --git a/Piece.hpp b/inc/Piece.hpp similarity index 100% rename from Piece.hpp rename to inc/Piece.hpp diff --git a/main.cpp b/main.cpp index ee3b5e1..51059d6 100644 --- a/main.cpp +++ b/main.cpp @@ -49,9 +49,9 @@ #include // for ISR macros #include -#include "Board.hpp" -#include "Piece.hpp" -#include "NeoPixel.hpp" +#include "inc/Board.hpp" +#include "inc/Piece.hpp" +#include "inc/NeoPixel.hpp" #define F_CPU 12000000UL // 12MHz #define F_PER 6000000UL // 6MHz