From b9e87379b9ee16d64aacc6dc6f72776caa547d80 Mon Sep 17 00:00:00 2001 From: fernando Date: Mon, 5 Aug 2024 21:47:54 -0600 Subject: [PATCH] Renombrado de archivos --- API.cpp => api.cpp | 2 +- API.h => api.h | 0 Main.cpp => main.cpp | 10 +++++++--- 3 files changed, 8 insertions(+), 4 deletions(-) rename API.cpp => api.cpp (99%) rename API.h => api.h (100%) rename Main.cpp => main.cpp (66%) diff --git a/API.cpp b/api.cpp similarity index 99% rename from API.cpp rename to api.cpp index 0f788ae..37e308a 100644 --- a/API.cpp +++ b/api.cpp @@ -1,4 +1,4 @@ -#include "API.h" +#include "api.h" #include #include diff --git a/API.h b/api.h similarity index 100% rename from API.h rename to api.h diff --git a/Main.cpp b/main.cpp similarity index 66% rename from Main.cpp rename to main.cpp index 025123b..5ca6628 100644 --- a/Main.cpp +++ b/main.cpp @@ -1,19 +1,23 @@ #include #include -#include "API.h" - +#include "api.h" void log(const std::string& text) { std::cerr << text << std::endl; } +void log(const int& num) { + std::cerr << num << std::endl; +} int main(int argc, char* argv[]) { log("Running..."); API::setColor(0, 0, 'G'); - API::setText(0, 0, "abc"); +// API::setText(0, 0, "abc"); + API::setWall(1, 0, 'e'); while (true) { if (!API::wallLeft()) { API::turnLeft(); + //std::cerr << API::mazeWidth() << std::endl; } while (API::wallFront()) { API::turnRight();