<?xml version="1.0"?>
<!DOCTYPE tablebase SYSTEM "tablebase.dtd">

<!-- if white takes black's queen -->
<!-- now the restriction comes off white's rook, but stays on the king and pawns -->

<tablebase index="simple">
   <move-restriction color="white" type="discard"/>
   <move-restriction color="black" type="concede"/>
   <pieces>
      <mobile color="white" type="king" location="e1 f1 g1 h1 e2 f2 g2 h2 e3 f3 g3 h3"/>
      <mobile color="black" type="king"/>
      <mobile color="white" type="rook"/>
      <mobile color="white" type="pawn" location="f2"/>
      <mobile color="black" type="pawn" location="g6 g5 g4 g3"/>
   </pieces>
   <!-- black takes white's pawn -->
   <futurebase filename="krkp.htb" type="capture"/>
   <!-- white takes black's pawn -->
   <futurebase filename="krpk.htb" type="capture"/>
   <!-- black takes white's rook -->
   <futurebase filename="kpkp.htb" type="capture"/>

   <prune color="white" move="Kany" type="discard"/>
   <prune color="white" move="Pany" type="discard"/>
   <prune color="black" move="Pg2" type="concede"/>
</tablebase>
