Skip to content
Snippets Groups Projects
Select Git revision
  • 15bc8f4d125f1c415508f4909564e3851bfadc6f
  • main default protected
2 results

jatek_mester.hpp

Blame
  • jatek_mester.hpp 592 B
    #ifndef JATEK_MESTER_HPP
    #define JATEK_MESTER_HPP
    
    #include <vector>
    #include <string>
    
    class JatekMester {
    private:
        std::vector<std::vector<int>> board;
        std::vector<std::vector<int>> original_board;
    
    public:
        JatekMester();
        bool is_valid_move(int number, int row, int col) const;
        bool is_original(int row, int col) const;
        void update_value(int row, int col, int value);
        int get_value(int row, int col) const;
        bool load_from_file(const std::string& filename);
        bool is_cell_valid(int row, int col) const;
    };
    
    #endif // JATEK_MESTER_HPP