text: class Statistic {
    constructor() {
      this.gameResults = [
        { win: true, bid: 2 },
        { win: true, bid: 30 },
      ];
    }
    addGameToStatistic(win, bid) {
      let gameResult = {
        win: win,
        bid: bid,
      };
      this.gameResults.push(gameResult);
    }
    showGameStatistic() {
      let games = this.gameResults.length;
      let wins = this.gameResults.filter((result) => result.win).length;
      let losses = this.gameResults.filter((result) => !result.win).length;
      return [games, wins, losses];
    }
  }
  
  const stats = new Statistic();
  