Skip to content
Snippets Groups Projects
Commit abf4bc44 authored by Barna Réka Emese's avatar Barna Réka Emese
Browse files

Upload New File

parent 55dc3145
No related branches found
No related tags found
No related merge requests found
#ifndef JATEK_VEZERLO_HPP
#define JATEK_VEZERLO_HPP
#include <vector>
class JatekVezerlo {
public:
enum Jatekos { URES, X_JATEKOS, O_JATEKOS };
JatekVezerlo(int meret = 15); // Alapértelmezetten 15x15-ös tábla
bool lepes(int sor, int oszlop, Jatekos jatekos);
Jatekos nyertesEllenorzes() const;
bool teleVanATabla() const;
void ujJatek();
Jatekos aktualisJatekos() const;
int tablaMeret() const;
Jatekos mezoAllapot(int sor, int oszlop) const;
private:
bool egyenesEllenorzes(int kezdoSor, int kezdoOszlop, int sorLeptetes, int oszlopLeptetes) const;
bool nyertesSorozat(int kezdoSor, int kezdoOszlop, int sorLeptetes, int oszlopLeptetes) const;
int tablaMeret_;
std::vector<std::vector<Jatekos>> tabla_;
Jatekos aktualisJatekos_;
};
#endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment