Pretwa Game Board Using Perl to Create SVG

Pretwa is similar to checkers in that you jump and capture pieces. That is where the similarity ends. This article shows how I created a Pretwa board in SVG using Perl, and explains the rules of the game.

What is Pretwa?

Pretwa is a game from the state of Bihar, India for two players using 9 white and 9 black tokens.

Pretwa Game Board

You may download and use this board for your own personal use or to teach someone pretwa.

Pretwa Game Piece Setup

  • 9 pieces are setup for the white on the 9, 11 and 1 o’clock positions lines.
  • 9 pieces are setup for the black on the 3, 5 and 7 o’clock position lines.
  • The center position is left open.

Objective of Pretwa

The objective of Pretwa is to capture all of your opponents pieces (except 3). Once they get down to 3 pieces, you are winner.

Pretwa Game Play

  • Players take turns either sliding 1 segment or jumping opponents
  • Jumps are compulsory. If you can jump, you must. You must land in an empty spot.
  • Multiple jumps and directions are permitted.
  • If you do not notice a jump, your opponent can take your piece as penalty.
  • You may also win by blocking all of your opponents moves.

Pretwa SVG Game Board Code

Perl Script to Generate Pretwa Board in SVG

The hardest part was figuring out the positions of the dots and the lines. It took me a bit to brush up on my trig. Enjoy.

Leave a Reply

Your email address will not be published. Required fields are marked *