Home / utk / cs140 / sp20 / lab6 / candyCrush.cpp
Directory Listing
candyCrush.cpp
makefile
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
/*
 * INSTRUCTOR-GIVEN TEMPLATE
 * COSC 140: Lab 6 - Candy Crush
 *
 * Description:
 *     Implements a 1D variation of Candy Crush where you crush candy and all
 *     adjacent candies of the same kind.
 *
 * Author:
 *     Your Name
 */

#include "candyCrush.hpp"

using namespace std;

// ----------------------------------------------------------------------------
// CandyCrush Class Methods                                                {{{1
// ----------------------------------------------------------------------------

/*
 * candyCrush(const string &)                                              {{{2
 *
 * Sets up the candyCrush instance via a file at "inputFile". This file will
 * specify the rules of the game, as well as points given for a specific number
 * of candies being broken in a row.
 */

candyCrush::candyCrush(const string &inputFile) {

}

/*
 * getRowLength                                                            {{{2
 *
 * Gets the length of amount of candy in the row...
 */

int candyCrush::getRowLength() const {
	return 0;
}

/*
 * getScore                                                                {{{2
 *
 * Gets the current score in-game.
 */

int candyCrush::getScore() const {
	return 0;
}

/*
 * printCandy                                                              {{{2
 * 
 * Prints candy to stdout.
 */

void candyCrush::printCandy() const {

}

/*
 * play                                                                    {{{2
 *
 * Make a play in the game. The candy destroyed is determined by "choice".
 */

int candyCrush::play(int choice) {
	return 0;
}