Skip to content

Commit

Permalink
Relase 1.00
Browse files Browse the repository at this point in the history
  • Loading branch information
dagistan-tuncbilek committed May 21, 2020
1 parent 4fcc458 commit dd3cb67
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 28 deletions.
24 changes: 5 additions & 19 deletions src/app/main/main.component.css
Original file line number Diff line number Diff line change
@@ -1,44 +1,30 @@
.img{

background-image: url('../../assets/images/Schwarz.gif');
.img {
background-image: url("../../assets/images/Schwarz.gif");
background-position: 400px 10px;
background-repeat: no-repeat;

}

.blue{
.blue {
width: 50px;
height: 50px;
background-color: blue;
border-radius: 50%;
}
.red{
.red {
width: 50px;
height: 50px;
background-color: red;
border-radius: 50%;
}

.anim {
border-color: yellow solid 5px;
}
.invisiable{
visibility: hidden;
}

.blueStonesCSS{
position: absolute;
cursor: pointer;
}
.redStonesCSS {
.stone {
position: absolute;
cursor: pointer;
}

.stone0 {
left: 390px;
top: 0px;

}
.stone1 {
left: 672px;
Expand Down
4 changes: 2 additions & 2 deletions src/app/main/main.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ <h1 class="font-weight-bold text-center">Nine Man's Morris</h1>
></div>
</div>
<div *ngFor="let stone of reserves; let i = index">
<div id={{stone}} class="blueStonesCSS stone{{stone}}" *ngIf="i < 9">
<div id={{stone}} class="stone stone{{stone}}" *ngIf="i < 9">
<div
id=blue{{stone}}
class="blue"
[draggable]="!preventDrag"
(dragstart)="dragStart($event)">
</div>
</div>
<div id={{stone}} class="redStonesCSS stone{{stone}}" *ngIf="i > 8">
<div id={{stone}} class="stone stone{{stone}}" *ngIf="i > 8">
<div
id=blue{{stone}}
class="red"
Expand Down
7 changes: 0 additions & 7 deletions src/app/main/main.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@ export class MainComponent implements OnInit {
selectedStoneForDelete: Colour = Colour.WHITE;
totalBlueStones: number = 9;
totalRedStones: number = 9;
animX: number = 0;
animY: number = 0;
isDragComleted: boolean = true;
preventDrag = false;
moves = ['Moves'];
@Output() changeMoves = new EventEmitter();
Expand Down Expand Up @@ -75,10 +72,6 @@ export class MainComponent implements OnInit {
ev.preventDefault();
const data = ev.dataTransfer.getData('text');
const stone = document.getElementById(data);
if (this.draggedTitle > 23) {
stone.classList.remove('blueStonesCSS');
stone.classList.remove('redStonesCSS');
}
ev.target.appendChild(stone);
this.tileColours.set(
this.droppedTitle,
Expand Down

0 comments on commit dd3cb67

Please sign in to comment.