View difference between Paste ID: BUL5pcrw and L7H49Z8W
SHOW: | | - or go back to the newest paste.
1-
#include "ttt_field2d_.h"
1+
#ifndef TTT_FIELD2D__H
2
#define TTT_FIELD2D__H
3-
TTT_field2d_::TTT_field2d_()
3+
4
#include<iostream>
5-
    for ( int h = 0; h < HIGTH; ++h)
5+
class TTT_field2d_
6-
    {
6+
7-
        for (int w = 0; w < WIDTH; ++w)
7+
    const static unsigned int HIGTH = 3;
8-
            FIeld[h][w] = 0;
8+
    const static unsigned int WIDTH = 3;
9-
    }
9+
10-
}
10+
private:
11
    int **FIeld[][WIDTH];
12-
void TTT_field2d_::place (int  _h, int _w, int _player)
12+
13
public:
14-
    ;
14+
    TTT_field2d_();
15-
}
15+
    void place (int  _h, int _w, int _player);
16-
void TTT_field2d_::AImove()
16+
    void AImove();
17
    void check();
18-
    ;
18+
    int ret(int _h, int _w);
19-
}
19+
20-
void TTT_field2d_::check()
20+
    friend std::ostream & operator<< (std::ostream & os, const TTT_field2d_ & _field );
21
};
22-
    ;
22+
23-
}
23+
#endif // TTT_FIELD2D__H