File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -377,9 +377,9 @@ ${this.state.player2Username}: ${getEmojiFromSign(this.state.player2Sign)}
377
377
378
378
const row2 = new ActionRowBuilder < ButtonBuilder > ( ) . addComponents (
379
379
new ButtonBuilder ( )
380
- . setCustomId ( `connect4-5-${ this . id } ` )
381
- . setLabel ( '5' )
382
- . setStyle ( ButtonStyle . Secondary ) ,
380
+ . setCustomId ( `connect4-5-${ this . id } ` )
381
+ . setLabel ( '5' )
382
+ . setStyle ( ButtonStyle . Secondary ) ,
383
383
new ButtonBuilder ( )
384
384
. setCustomId ( `connect4-6-${ this . id } ` )
385
385
. setLabel ( '6' )
@@ -555,7 +555,7 @@ ${this.state.player2Username}: ${getEmojiFromSign(this.state.player2Sign)}
555
555
this . setStatus ( newState , i ) ;
556
556
// need to check if there is more than one possible guaranteed win
557
557
// in that case, if there exists an immediate win, we want the bot to choose that column
558
- if ( newState . status === ConnectFourGameStatus . Player2Win ) {
558
+ if ( newState . status === ConnectFourGameStatus . Player2Win ) {
559
559
return i ;
560
560
}
561
561
column_scores [ i ] = this . miniMax ( newState , 4 , ConnectFourGameSign . Player1 ) ;
You can’t perform that action at this time.
0 commit comments