Skip to content

Commit

Permalink
Remove console log
Browse files Browse the repository at this point in the history
  • Loading branch information
ImperialOctopus committed May 24, 2019
1 parent 5c4d84f commit 3b9ce15
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
1 change: 0 additions & 1 deletion src/app/menu/menu.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ export class MenuComponent implements OnInit {
playerNumber: number;
roomName: string;
message: string;
isConnected = true;

constructor(
private wordlistService: WordlistService,
Expand Down
5 changes: 1 addition & 4 deletions src/app/wordlist.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,7 @@ export class WordlistService {
}

async generatePrompt(): Promise<Prompt> {
console.log(this.wordlist);
const loadedList = await this.wordlist;
console.log(loadedList);
return loadedList[Math.floor(Math.random() * loadedList.length)];
}

Expand All @@ -47,11 +45,10 @@ export class WordlistService {

testFakeGeneration(): void {
for (let i = 3; i < 10; i++) {
let array: Array<number> = Array(i).fill(0);
const array: Array<number> = Array(i).fill(0);
for (let j = 0; j < 1000; j++) {
array[this.generateFake(i) - 1] += 1;
}
console.log(i + ": " + array);
}
}
}

0 comments on commit 3b9ce15

Please sign in to comment.