Schachmatt:HAG-S13: Unterschied zwischen den Versionen
Aus ZUM Projektwiki
Schachmatt:HAG-S13
Keine Bearbeitungszusammenfassung Markierung: 2017-Quelltext-Bearbeitung |
Keine Bearbeitungszusammenfassung Markierung: 2017-Quelltext-Bearbeitung |
||
Zeile 1: | Zeile 1: | ||
{{DISPLAYTITLE:Schachmattt}} | {{DISPLAYTITLE:Schachmattt}} | ||
[[Schach-Lernen:HAG-S13|Zurück]] | [[Schach-Lernen:HAG-S13|Zurück]]<br /><br /> | ||
'''Was ist ein Schachmatt?'''<br /><br /> | |||
Wenn man seinen Gegner Schachmatt setzt, hat man prinzipiell das Spiel gewonnen. Schachmatt heißt:<br /><br /> | |||
*Der König steht im Schach<br /><br /> | |||
*Der König kann sich nicht mehr bewegen, da er sonst im Schach stehen würde<br /><br /> | |||
html | |||
<!DOCTYPE html> | |||
<html> | |||
<head> | |||
<style> | |||
.square { | |||
width: 50px; | |||
height: 50px; | |||
float: left; | |||
} | |||
.white { | |||
background-color: #fff; | |||
} | |||
.black { | |||
background-color: #000; | |||
} | |||
.piece { | |||
width: 100%; | |||
height: 100%; | |||
background-size: contain; | |||
background-repeat: no-repeat; | |||
background-position: center; | |||
} | |||
</style> | |||
</head> | |||
<body> | |||
<div id="chessboard"> | |||
<div class="square white"></div> | |||
<div class="square black"></div> | |||
<!-- Repeat the above two lines to create the entire chessboard --> | |||
</div> | |||
<script> | |||
// JavaScript code to handle piece movement goes here | |||
</script> | |||
</body> | |||
</html> |
Version vom 10. November 2023, 10:28 Uhr
Zurück
Was ist ein Schachmatt?
Wenn man seinen Gegner Schachmatt setzt, hat man prinzipiell das Spiel gewonnen. Schachmatt heißt:
- Der König steht im Schach
- Der König kann sich nicht mehr bewegen, da er sonst im Schach stehen würde
html
<!DOCTYPE html>
<html>
<head>
<style>
.square {
width: 50px;
height: 50px;
float: left;
}
.white { background-color: #fff;
}
.black {
background-color: #000;
}
.piece {
width: 100%;
height: 100%;
background-size: contain;
background-repeat: no-repeat;
background-position: center;
}
</style>
</head>
<body>
<script>
// JavaScript code to handle piece movement goes here
</script>
</body>
</html>