jocly
Version:
Board games 3D/2D UI and AI web library
31 lines • 1.48 kB
HTML
<style>
.rules-h2{
font-size:2em;
}
img.imgfit {
width: auto ;
width: 100%;
max-width: 100%;
display: block;
margin-left: auto;
margin-right: auto;
}
</style>
<p class='rules-h2'><img src="{GAME}/res/rules/rulesbuttons-win.png" class="rules-but">To win</p>
<p>If the King reaches any board edge, the whites win.</p>
<p>If the King is captured, the blacks win.</p>
<p class='rules-h2'><img src="{GAME}/res/rules/rulesbuttons-play.png" class="rules-but">To play</p>
<p>Move one piece in a horizontal or vertical direction to an available square.</p>
<p>If a piece is bracketed by 2 opponent's pieces (top+bottom or left+right), it is removed.</p>
<p align="center"><img src="{GAME}/res/rules/capture2.gif" class="rules-but"></p>
<p>If the King is surrounded by 4 blacks, it is captured.</p>
<p>If you are surrounded or bracketed as a result of your move, you are not taken.</p>
<p class='rules-h2'><img src="{GAME}/res/rules/rulesbuttons-exc.png" class="rules-but">Exceptions</p>
<p>1- There is a "King's square" in the middle of the board. Only the king can land on it.</p>
<p>2- The "King's square" is considered as a surrounding piece by everyone.</p>
<p>3- A draw occurs if the same sequence is played three times.</p>
<p class='rules-h2'>Start positions</p>
<p>3D view</p>
<p align="center"><img src="{GAME}/res/rules/3d/tafl-hnefatafl.jpg" class="imgfit"></p>
<p>2D view</p>
<p align="center"><img src="{GAME}/res/rules/2d/tafl-hnefatafl.jpg" class="imgfit"></p>