File tree Expand file tree Collapse file tree 1 file changed +13
-13
lines changed
Expand file tree Collapse file tree 1 file changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -383,19 +383,19 @@ export class GyveGame extends GameBase {
383383 this . results = [ ] ;
384384 this . dots = [ ] ;
385385
386- // calculate legal follow-ups
387- if ( partial && m !== "pass" && ! m . includes ( "," ) && this . stack . length > 1 ) {
388- const n1 = this . calcN ( m ) ;
389- const cloned = this . clone ( ) ;
390- cloned . board . set ( m , this . currplayer ) ;
391- const g = this . graph ;
392- g . graph . nodes ( ) . filter ( node => ! cloned . board . has ( node ) ) . forEach ( node => {
393- const n2 = cloned . calcN ( node ) ;
394- if ( n1 === n2 ) {
395- this . dots . push ( node ) ;
396- }
397- } )
398- }
386+ // // calculate legal follow-ups
387+ // if (partial && m !== "pass" && !m.includes(",") && this.stack.length > 1) {
388+ // const n1 = this.calcN(m);
389+ // const cloned = this.clone();
390+ // cloned.board.set(m, this.currplayer);
391+ // const g = this.graph;
392+ // g.graph.nodes().filter(node => !cloned.board.has(node)).forEach(node => {
393+ // const n2 = cloned.calcN(node);
394+ // if (n1 === n2) {
395+ // this.dots.push(node);
396+ // }
397+ // })
398+ // }
399399
400400 if ( m === "pass" ) {
401401 this . results . push ( { type : "pass" } ) ;
You can’t perform that action at this time.
0 commit comments