in https://github.com/terroo/flappybird/blob/main/flappy.cpp#L1... for (std::size_t i {}; i < pipes.size(); ++i) { C++ has had range based loops for years now, can use that instead here. for (auto& pipe : pipes) I don't…
just want to point out, this unjustly uses std::shared_ptr in main.cpp auto flappy = std::make_shared<FlappyBird>(); flappy->run(); you can do this. FlappyBird flappy; flappy.run(); in flappy.hpp…
in https://github.com/terroo/flappybird/blob/main/flappy.cpp#L1... for (std::size_t i {}; i < pipes.size(); ++i) { C++ has had range based loops for years now, can use that instead here. for (auto& pipe : pipes) I don't…
just want to point out, this unjustly uses std::shared_ptr in main.cpp auto flappy = std::make_shared<FlappyBird>(); flappy->run(); you can do this. FlappyBird flappy; flappy.run(); in flappy.hpp…