override getAiSign()

in src/app/pages/game/services/ai-strategies/conditional-strategy.service.ts [30:38]


  override getAiSign(): Promise<Signs> {
    const playerLosingStreak = this.gameHandler.playerLosingStreak();
    const playerWinningStreak = this.gameHandler.playerWinningStreak();
    const pastPlayerMoves = this.gameHandler.pastPlayerMoves().map((gesture) => gesture.name);

    const additionalInformation = `Player lost ${playerLosingStreak} recent games. Player won ${playerWinningStreak} recent games. ${pastPlayerMoves.length > 0 ? `Last player move was ${pastPlayerMoves[pastPlayerMoves.length - 1]}. All player moves were (from oldest to newest) [${pastPlayerMoves.join(', ')}]` : ``}`;

    return this.getSign(additionalInformation);
  }