-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfours.h
More file actions
34 lines (25 loc) · 704 Bytes
/
fours.h
File metadata and controls
34 lines (25 loc) · 704 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#ifndef fours_h
#define fours_h
#include "plansza.h"
#include <iostream>
using namespace std;
class fours: public plansza{
public:
fours(int);
void poka();
bool gameover();
void wykonajRuch();
void zmien_Ruch();
bool sprawdz_plansze(int x,int y );
private:
int _warunekwygranej;
int sprawdz_lewo( int x, int y,int akumulator );
int sprawdz_prawo( int x, int y,int akumulator );
int sprawdz_gora( int x, int y,int akumulator );
int sprawdz_dol( int x, int y,int akumulator );
int sprawdz_lewoup( int x, int y,int akumulator );
int sprawdz_prawoup( int x, int y,int akumulator );
int sprawdz_lewodown( int x, int y,int akumulator );
int sprawdz_prawodown( int x, int y,int akumulator );
};
#endif