We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 405ec74 commit bd7e276Copy full SHA for bd7e276
pkg/core/pcplayer/pc_player_engine_test.go
@@ -223,6 +223,26 @@ func TestGetPCMove(t *testing.T) {
223
},
224
want: []int{6},
225
226
+ {
227
+ name: "inside board",
228
+ args: args{
229
+ gameBoard: board.Create(4, 4, 4).
230
+ SetIndexState(0, letter.LetterX).
231
+ SetIndexState(1, letter.LetterO).
232
+ SetIndexState(2, letter.LetterO).
233
+ SetIndexState(3, letter.LetterX).
234
+ SetIndexState(4, letter.LetterX).
235
+ SetIndexState(7, letter.LetterO).
236
+ SetIndexState(8, letter.LetterX).
237
+ SetIndexState(11, letter.LetterO).
238
+ SetIndexState(12, letter.LetterO).
239
+ SetIndexState(13, letter.LetterX).
240
+ SetIndexState(14, letter.LetterX).
241
+ SetIndexState(15, letter.LetterO),
242
+ pcLetter: letter.LetterX,
243
+ },
244
+ want: []int{5, 6, 9, 10},
245
246
}
247
248
for _, tt := range tests {
0 commit comments