Advertisement
Guest User

Untitled

a guest
Nov 12th, 2019
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. import State from "./state";
  2. import Player from "./player";
  3. import { db } from "./db/db";
  4. // import HumanPlayer from "./humanPlayer";
  5.  
  6.  
  7. // db.ref(`logs/test`).set(`lastRound: ${10}`);
  8.  
  9. const p1: Player = new Player("local_firebase-one");
  10. const p2: Player = new Player("local_firebase-two");
  11.  
  12. const games = 500000;
  13. const game = new State(p1, p2);
  14. game.play(games, 100);
  15.  
  16. // const computer: Player = new Player("computer_vm", 0);
  17. // computer.loadPolicy().then(res => {
  18. // console.log('loaded');
  19. // const newGame = new State(computer, new HumanPlayer("Timas"));
  20. // newGame.playVsAI();
  21. // });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement