Git Product home page Git Product logo

meta_crush_saga's People

Contributors

aexg avatar jiwan avatar rudxain avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

meta_crush_saga's Issues

Field's width is restricted to exactly 8 columns

Summary

Application fails when number of columns differs from 8.

Steps to reproduce

  1. Edit current state to size 9x6.
  2. Start application.

Expected behaviour: application is running.
Actual behaviour: exception is thrown.

Suggested solution

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...

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

Missing standard library includes

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.