Spaces:
Running
Running
Download examples/dispatch.cpp from pgg-engineering/guardshift: direct link, hf CLI and curl.
- Browser
- Download file 294 Bytes
-
https://huggingface.co/spaces/pgg-engineering/guardshift/resolve/main/examples/dispatch.cpp
- Command line
-
hf download hf://spaces/pgg-engineering/guardshift/examples/dispatch.cpp
-
curl -L -o dispatch.cpp https://huggingface.co/spaces/pgg-engineering/guardshift/resolve/main/examples/dispatch.cpp
294 Bytes
| int main() { | |
| guardshift::Index index({95, 60}, {{{0, 100, 1000}, {1, 0, 70}}}); | |
| for (const auto& edge : index.apply({{0, 105}, {1, 65}})) { | |
| std::cout << "guard " << edge.guard << (edge.active ? " entered\n" : " exited\n"); | |
| } | |
| } | |