Skip to content
Snippets Groups Projects
Select Git revision
  • 66a7d140bda4a888c56f57e08e20c011415a9ddc
  • master default protected
  • 1.3.1
  • 1.3.0
  • 1.2.0
  • 1.1.5
  • 1.1.4
  • 1.1.3
  • 1.1.2
  • 1.1.1
  • 1.1.0
  • 1.0.19
  • 1.0.18
  • 1.0.17
  • 1.0.16
  • 1.0.15
  • 1.0.14
  • 1.0.13
  • 1.0.12
  • 1.0.10
  • 1.0.9
  • 1.0.8
22 results

App.js

Blame
  • Forked from KSZK / DevTeam / kszkepzes / old / kszkepzes-frontend
    Source project has a limited visibility.
    matrix.hxx 637 B
    #ifndef _MATRIX_HXX_
    #define _MATRIX_HXX_
    
    #include <vector>
    
    #include "element.hxx"
    #include "utils.hxx"
    
    class Matrix
    {
    private:
        std::vector<std::vector<Symbol>> board_;
        bool solved = false;
    protected:
        Symbol at(const Position& pos) const;
    public:
        Matrix(std::size_t dim);
        bool put(const Element& elem, const Position& pos);
        bool putFirst(const Element& elem, Position& posIn);
        void free(const Element& elem, const Position& pos);
        bool isFree(const Position& pos);
        std::size_t size() const { return board_.size(); }
    
        bool isSolved() const { return solved; }
    
        void print() const;
    };
    
    
    #endif