aboutsummaryrefslogtreecommitdiff
path: root/week06/ex4.cpp
blob: b500b339579bdd17a5aeb22fa2c9811aef45fd7d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <iostream>

int main() {
	char chocolate[41][41] = { { '#' } };
	size_t N, M;
	std::cin >> N >> M;

	bool firstPlayerTurn = false;
	size_t row, col;
	unsigned winStatus = 0;
	do {
		firstPlayerTurn = !firstPlayerTurn;
		winStatus = chomp(chocolate, row, col);
	} while(winStatus == 0);
}