File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -377,9 +377,9 @@ ${this.state.player2Username}: ${getEmojiFromSign(this.state.player2Sign)}
377377
378378 const row2 = new ActionRowBuilder < ButtonBuilder > ( ) . addComponents (
379379 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 ) ,
383383 new ButtonBuilder ( )
384384 . setCustomId ( `connect4-6-${ this . id } ` )
385385 . setLabel ( '6' )
@@ -555,7 +555,7 @@ ${this.state.player2Username}: ${getEmojiFromSign(this.state.player2Sign)}
555555 this . setStatus ( newState , i ) ;
556556 // need to check if there is more than one possible guaranteed win
557557 // 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 ) {
559559 return i ;
560560 }
561561 column_scores [ i ] = this . miniMax ( newState , 4 , ConnectFourGameSign . Player1 ) ;
You can’t perform that action at this time.
0 commit comments