Skip to content

Commit

Permalink
merge bharat's changes
Browse files Browse the repository at this point in the history
  • Loading branch information
aurbano committed Aug 2, 2018
2 parents 1d6948b + 652f738 commit 3258eea
Show file tree
Hide file tree
Showing 16 changed files with 98 additions and 41 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,4 @@ jspm_packages
.node_repl_history

.idea
.vscode
ultimate-ttt-server.iml
4 changes: 4 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"typescript.tsdk": "node_modules/typescript/lib",
"tslint.exclude": "*/test/**/*.ts"
}
2 changes: 1 addition & 1 deletion dist/tournament/match/Match.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/tournament/match/Match.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions dist/tournament/match/game/Game.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { PlayerNumber, PlayerOrTie } from "@socialgorithm/ultimate-ttt/dist/model/constants";
import Player from "tournament/model/Player";
import IGameOptions from "./GameOptions";
import { IGameStats } from "./GameStats";
export default class Game {
private players;
private options;
Expand All @@ -9,13 +10,15 @@ export default class Game {
gameTime: number;
timedoutPlayer: PlayerNumber;
private game;
private moves;
private currentPlayerIndex;
private gameStart;
private gamePromise;
private resolve;
private playerMoveTimeout;
constructor(players: Player[], options: IGameOptions, log: any);
playGame(): Promise<boolean>;
getStats(): IGameStats;
private resetPlayers;
private askForMove;
private handlePlayerMove;
Expand Down
30 changes: 19 additions & 11 deletions dist/tournament/match/game/Game.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/tournament/match/game/Game.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions dist/tournament/match/game/GameStats.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { PlayerNumber } from "../../../../node_modules/@socialgorithm/ultimate-ttt/dist/model/constants";
import UTTT from "../../../../node_modules/@socialgorithm/ultimate-ttt/dist/UTTT";
export interface IMove {
board: number[];
move: number[];
player: PlayerNumber;
}
export interface IGameStats {
moves: IMove[];
uttt: UTTT;
}
3 changes: 3 additions & 0 deletions dist/tournament/match/game/GameStats.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/tournament/match/game/GameStats.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 3258eea

Please sign in to comment.