File tree 2 files changed +9
-3
lines changed
2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -73,8 +73,6 @@ public interface Grid
73
73
* If this Grid is not yet a finished game, this returns PLAYEREMPTY
74
74
*/
75
75
public int getWinningPlayer ();
76
-
77
- public boolean makeMove (int col );
78
76
79
77
public void undo ();
80
78
}
Original file line number Diff line number Diff line change 4
4
5
5
public class Template implements Player {
6
6
7
- // hard-coded to start in the middle, and only go through the decision tree if it can't put it in the middle
7
+ /**
8
+ * You should write your logic here
9
+ *
10
+ * @param g the game grid
11
+ * @return a 0-indexed to drop a piece in
12
+ */
8
13
public int getMoveColumn (Grid g ) {
9
14
while (true ){
10
15
int i = (int ) (g .getCols () * Math .random ());
@@ -14,6 +19,9 @@ public int getMoveColumn(Grid g) {
14
19
}
15
20
16
21
22
+ /**
23
+ * @return Your bot's (or your) name
24
+ */
17
25
public String getPlayerName () {
18
26
return "Template" ;
19
27
}
You can’t perform that action at this time.
0 commit comments