-
Notifications
You must be signed in to change notification settings - Fork 0
/
Game.h
40 lines (32 loc) · 797 Bytes
/
Game.h
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
35
36
37
38
39
40
//
// Game.h
// Learn
//
// Created by Alexander Khotyanov on 1/20/14.
// Copyright (c) 2014 Alexander Khotyanov. All rights reserved.
//
#ifndef __Learn__Game__
#define __Learn__Game__
#include <iostream>
#include "GameMode.h"
#include "Player.h"
#include "Board.h"
#include "GameStrategy.h"
#include <vector>
class Game {
public:
Game(Player& player1, Player& player2, Board& board,
GameMode& game_mode, GameStrategy& game_strategy);
~Game();
void play();
private:
GameMode _game_mode;
GameStrategy* _game_strategy;
Player* _player1;
Player* _player2;
Board* _board;
int** winning_combinations; //TODO: make static
void process_user_input(Player* player);
void print_game_result();
};
#endif /* defined(__Learn__Game__) */