Schachmattt
Aus ZUM Projektwiki
Schachmatt:HAG-S13
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
<!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>