fixed linting issues
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
</button>
|
||||
</div>
|
||||
<div class="sliders-panel">
|
||||
<label>{{ 'CLOTH.ELONGATION' | translate }}: {{ elongation }}</label>
|
||||
<span>{{ 'CLOTH.ELONGATION' | translate }}: {{ elongation }}</span>
|
||||
<mat-slider min="0.5" max="2.0" step="0.1">
|
||||
<input matSliderThumb [(ngModel)]="elongation">
|
||||
</mat-slider>
|
||||
|
||||
@@ -178,10 +178,9 @@ export class ConwayGolComponent implements AfterViewInit {
|
||||
|
||||
async startGame(): Promise<void> {
|
||||
this.gameStarted.set(true);
|
||||
let lifeIsDead = false;
|
||||
while (this.gameStarted()){
|
||||
const startTime = performance.now();
|
||||
lifeIsDead = true;
|
||||
let lifeIsDead = true;
|
||||
for (let row = 0; row < this.gridRows; row++) {
|
||||
for (let col = 0; col < this.gridCols; col++) {
|
||||
lifeIsDead = this.checkLifeRules(row, col, this.writeGrid) && lifeIsDead;
|
||||
|
||||
@@ -56,7 +56,7 @@ export class SortingService {
|
||||
|
||||
let start = -1;
|
||||
let end = array.length-1;
|
||||
let changed = false;
|
||||
let changed: boolean;
|
||||
do {
|
||||
changed = false;
|
||||
start += 1;
|
||||
|
||||
Reference in New Issue
Block a user