@@ -1110,9 +1110,14 @@ export class FroggerGame extends GameBase {
11101110 result . move = move ;
11111111 } else {
11121112 if ( result . autocomplete !== undefined ) {
1113- //Internal autocompletion:
1114- const automove = result . autocomplete ;
1113+ //Internal autocompletion.
1114+ let automove = result . autocomplete ;
11151115 result = this . validateMove ( automove ) as IClickResult ;
1116+ //A double auto-completion may be needed.
1117+ if ( result . autocomplete !== undefined ) {
1118+ automove = result . autocomplete ;
1119+ result = this . validateMove ( automove ) as IClickResult ;
1120+ }
11161121 result . move = automove ;
11171122 } else {
11181123 result . move = newmove ;
@@ -1346,7 +1351,7 @@ export class FroggerGame extends GameBase {
13461351 //Internal autocompletion:
13471352 const targets :string [ ] = subIFM . forward ? cloned . getNextForwardsForCard ( subIFM . from , subIFM . card ! ) : this . getNextBack ( subIFM . from ) ;
13481353 if ( targets . length === 1 ) {
1349- result . autocomplete = m + targets [ 0 ] + ( subIFM . forward ? "/" : ", " ) ;
1354+ result . autocomplete = m + targets [ 0 ] + ( subIFM . forward ? "/" : "" ) ;
13501355 }
13511356
13521357 return result ;
@@ -1476,8 +1481,6 @@ export class FroggerGame extends GameBase {
14761481 }
14771482
14781483 this . results = [ ] ;
1479- this . _highlight = [ ] ;
1480- this . _points = [ ] ;
14811484
14821485 let marketEmpty = false ;
14831486 let refill = false ;
@@ -1496,10 +1499,16 @@ export class FroggerGame extends GameBase {
14961499 const moves = m . split ( "/" ) ;
14971500
14981501 for ( let s = 0 ; s < moves . length ; s ++ ) {
1502+
1503+ //Really only need these on a final partial submove
1504+ //but it's simpler to do it every submove.
1505+ this . _highlight = [ ] ;
1506+ this . _points = [ ] ;
1507+
14991508 const submove = moves [ s ] ;
15001509 if ( submove === "" )
15011510 continue ;
1502-
1511+
15031512 const subIFM = this . parseMove ( submove ) ;
15041513
15051514 if ( subIFM . refill )
0 commit comments