You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
947 B
38 lines
947 B
<app-book-menu></app-book-menu>
|
|
|
|
<p>sudoku works!</p>
|
|
|
|
<div class="grid">
|
|
<div *ngFor="let row of grille; let x = index" class="subgrid sub{{x}}">
|
|
<div *ngFor="let cell of row; let y = index" class="case x{{x}} y{{y}}">
|
|
<input *ngIf="cell != 0" type="number" value="{{cell}}" class="cell" max="9" min="0" id="xy{{x}}{{y}}" disabled>
|
|
<input *ngIf="cell == 0" type="number" value="" class="cell" max="9" min="0" id="xy{{x}}{{y}}">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<button (click)="publish()">
|
|
soumettre
|
|
</button>
|
|
|
|
<button (click)="corriger()">
|
|
verrifier
|
|
</button>
|
|
|
|
<p>nombre d'indice: {{nbIndice}}</p>
|
|
|
|
|
|
|
|
<section *ngIf="haveWin" class="winpopup">
|
|
<h2>Vous avez gagné !</h2>
|
|
<div class="menu">
|
|
<button routerLink="/">
|
|
retour à la page d'acceuille
|
|
</button>
|
|
<button routerLink="/sudoku/">
|
|
nouvelle partie
|
|
</button>
|
|
</div>
|
|
</section>
|
|
|