jiwan / meta_crush_saga Goto Github PK
View Code? Open in Web Editor NEWA C++17 compile-time game
A C++17 compile-time game
Application fails when number of columns differs from 8.
Expected behaviour: application is running.
Actual behaviour: exception is thrown.
The bug is tracked to parsing that assumes the game caption length being equal to the field length that is valid only for 8-columns fields. Suggested solution is to make parsing independent from caption length.
Sample of a larger game field: current_state.txt
Build fails with CMake:
CMake version: 3.14.2
GCC version: 9.1.0
OS: Debian GNU/Linux 10
mkdir build
cd build
cmake ..
cmake --build .
The output:
Scanning dependencies of target template_crush_saga
[ 50%] Building CXX object CMakeFiles/template_crush_saga.dir/main.cpp.o
In file included from /home/adem/Github/meta_crush_saga/main.cpp:6:
/home/adem/Github/meta_crush_saga/loop_inputs.hpp:7:57: error: ‘KEYBOARD_INPUT’ is not a member of ‘KeyboardInput’
constexpr KeyboardInput keyboard_input = KeyboardInput::KEYBOARD_INPUT;
^~~~~~~~~~~~~~
/home/adem/Github/meta_crush_saga/loop_inputs.hpp:8:32: error: ‘EPOCH_MS’ was not declared in this scope
constexpr long long epoch_ms = EPOCH_MS;
^~~~~~~~
make[2]: *** [CMakeFiles/template_crush_saga.dir/build.make:63: CMakeFiles/template_crush_saga.dir/main.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:73: CMakeFiles/template_crush_saga.dir/all] Error 2
make: *** [Makefile:84: all] Error 2
Multiple header files are missing proper includes. In constexpr_string_view.hpp
you have used std::size_t
and exception class, but none of these names are defined within this file. There are more places where includes are missing
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.