-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathalgorithm_ST.cpp
34 lines (26 loc) · 1.23 KB
/
algorithm_ST.cpp
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
#include <iostream>
#include <stdlib.h>
#include <time.h>
#include "../include/algorithm.h"
using namespace std;
/******************************************************
* In your algorithm, you can just use the the funcitons
* listed by TA to get the board information.(functions
* 1. ~ 4. are listed in next block)
*
* The STL library functions is not allowed to use.
******************************************************/
/*************************************************************************
* 1. int board.get_orbs_num(int row_index, int col_index)
* 2. int board.get_capacity(int row_index, int col_index)
* 3. char board.get_cell_color(int row_index, int col_index)
* 4. void board.print_current_board(int row_index, int col_index, int round)
*
* 1. The function that return the number of orbs in cell(row, col)
* 2. The function that return the orb capacity of the cell(row, col)
* 3. The function that return the color fo the cell(row, col)
* 4. The function that print out the current board statement
*************************************************************************/
void algorithm_A(Board board, Player player, int index[]){
//////your algorithm design///////////
}