Quick coding exercise to get handy with the codebase, toolchains, etc.
Getting The Source Code
Make a private fork of the repository and clone it:
git clone git@github.com:<username>/getrafty.git
cd getrafty/tasks/tutorial
Setting Up Dev Environment
Launch dev container with configured development environment
./tasklet.py boot
The container is now running on port 3333
and accessible under ubuntu
user. To continue in terminal login via ssh ubuntu@localhost -p 3333
or simply ./tasklet.py attach
. It's recommended to configure an IDE of your choice.
🧠Task
Your goal is to complete the method FluxCapacitor::computeTimeBreakBarrierSpeed
in flux_capacitor.cpp
.
// In flux_capacitor.cpp:
Speed FluxCapacitor::computeTimeBreakBarrierSpeed() {
...
};
The method should return a minimum speed (measured in miles per hour) for a DeLorean vehicle to be able to travel in time.
Verification
Ensure your code passes clang-tidy lints. Every task comes with tests, and you should be able to run it via CMake.