-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbattle-stage.js
51 lines (44 loc) · 1.29 KB
/
battle-stage.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
import { Match } from './framework/index.js';
import { GameOfDrones } from './game/game-of-drones.js';
import AdaptiveDefender from './example-bots/adaptive-defender.js';
import ZergRusher from './example-bots/zerg-rush.js';
import HardHittingPacifist from './example-bots/hard-hitting-pacifist.js';
import Randomonium from './example-bots/random-choices.js';
//AJONP Imports
import AJONPRobinsons from './ajonp-bots/ajonp-robinsons.js';
matchStart()
let match = new Match({
game: new GameOfDrones({ rounds: 1000 }),
player1: AJONPRobinsons(),
player2: AdaptiveDefender()
});
console.log(JSON.stringify(match.play(), null, 2));
matchStart()
match = new Match({
game: new GameOfDrones({ rounds: 1000 }),
player1: AJONPRobinsons(),
player2: ZergRusher()
});
console.log(JSON.stringify(match.play(), null, 2));
matchStart()
match = new Match({
game: new GameOfDrones({ rounds: 1000 }),
player1: AJONPRobinsons(),
player2: HardHittingPacifist()
});
console.log(JSON.stringify(match.play(), null, 2));
matchStart()
match = new Match({
game: new GameOfDrones({ rounds: 1000 }),
player1: AJONPRobinsons(),
player2: Randomonium()
});
console.log(JSON.stringify(match.play(), null, 2));
function matchStart(){
let i=0;
do {
console.log('MATCHMATCHMATCHMATCH\n');
i++;
}
while (i < 10);
}