From c2aa53ac88ff75912e7e9bedcdb2ecc593beb04a Mon Sep 17 00:00:00 2001 From: David Tahir Date: Tue, 19 Jul 2022 19:02:27 +0000 Subject: [PATCH] enable ai training --- src/app/board/board.component.ts | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/app/board/board.component.ts b/src/app/board/board.component.ts index 11a48d4..17268ad 100644 --- a/src/app/board/board.component.ts +++ b/src/app/board/board.component.ts @@ -38,12 +38,10 @@ export class BoardComponent implements OnInit { }); }); console.log(AllMoves); - // let ai: AiService; - // let games = []; - // games.push(AllMoves); - // ai = new AiService(); - // ai.trainOnGames(games, (data)=>{console.log(data)}); - + const games = []; + games.push(AllMoves); + const ai = new AiService(); + ai.trainOnGames(games, (data)=>{ console.log(data); }); } resetGame() {