بسم الله الرحمن الرحيم

January 28, 2015

Fixes coming

It has been a long time since I touched Pasang Emas. After all, it has been a rather stable product with no urgent defect to attend to. I was aware of changes in GTK+ (a toolkit that Pasang Emas uses), but I did not think that they would significantly affect Pasang Emas.

The situation changed when I received the following announcement on a mailing list:

    Since glib 2.41.2, the mutex/cond implementation on Linux has changed. The
    code compiled with Vala < 0.26 which targets at least glib 2.32 with
    --target-glib 2.32 will suffer from deadlocks.

That message means Pasang Emas may fail to run on newer GNU/Linux systems.

So, I hastily took action and fixed this. I also discovered that some changes in GTK+ cause some parts of Pasang Emas to fail. This has been fixed too.

However, I'm not ready to make a release yet. I want to do some code cleanup. If you are impatient for the next release of Pasang Emas, you can get the latest development version from its git repository. The latest development version is usually usable.

May 6, 2014

Get it from 1Mobile

Pasang Emas for Android is now also available from 1Mobile.

April 5, 2014

What do you call those mobile pieces?

In pasang, each player has only one mobile piece. This piece is called a "kas". A "kas". Singular, despite the 's' at the end.

"Kas" is a Malay word. What to call it in English? "Kas" is the most obvious choice. Pasang Emas uses "kas" in its help document.

The word "ka" (plural "kas") is used in the Wikipedia entry for pasang (en.wikipedia.org/wiki/Pasang). This was picked up by The Brunei Times.

So, what is it? "Ka" or "kas"? Just accept both. No war!

August 8, 2013

Hari Raya gift to pasang fans

Version 4 of Pasang Emas has been recently released. There has been a major overhaul to the theme engine to allow more customization. In particular, the score board is now also themeable. The built-in themes have been considerably improved.

As always, Pasang Emas is a free software. Consider this new version as my Hari Raya gift to pasang fans (even if you don't celebrate Hari Raya, and even if you stumble upon this new version after the festive season is over).

You are welcome to contribute your own themes. The best way to start making your own theme is to look at the "Wooden" theme which is bundled with Pasang Emas.

May 22, 2013

Pasang Emas for Android

Please help spread the word. Pasang Emas is now available for Android from http://pasang-android.sourceforge.net. As always, Pasang Emas is a free software. That means you are free to use it, to modify it and to distribute it.

Pasang Emas for Android provides human-versus-human and human-versus-machine mode.

Enjoy!

February 12, 2013

Cygwin package for Pasang Emas

People have been asking me about Pasang Emas for Windows. My usual response has been that I've no resources to support a Windows package, but any programmer should be able to build one.

Now I have a more helpful answer. Cygwin Ports has a Cygwin package for Pasang Emas. Get it there.

July 11, 2012

Pasang Emas vs traditional pasang

The game rules implemented in Pasang Emas are based on two major sources. The first source is a book named "Mari Bermain Pasang" published by the Brunei Museum. The book is unfortunately very vague about the rules and cannot really be used as a definitive reference. The second source is an actual human expert whose authority in pasang is unquestionable.

Pasang Emas truly implements the rules of pasang, except for a few harmless deviations. These includes the following non-enforcements of traditional rules:
  • Traditionally, in the opening move the second player must choose a passage from a diagonally opposite quarter of the board. This is to allow quiet development. In Pasang Emas, the second player may select a passage near the first player's, thus allowing immediate open confrontation.
  • Traditionally, the player who captures the last piece will be the first player to move in the next round. In Pasang Emas, there is no such rule.
  • The kas can either be selected by sliding a piece adjacent to the empty passage, or by jumping over such a piece. Traditionally, both player must agree to select by jumping only or by sliding only. Pasang Emas does not include this restriction.
By not enforcing these rules, Pasang Emas is actually enriching the game without spoiling its flavour. In a networked human-vs-human game, the players may still follow the traditional restrictions.

The most significant deviation is the following:
  • Traditionally, a player may partially capture a capturable line of tokens. For example, if a player can capture a line of 5 tokens, she may choose to capture just 3 of them. In Pasang Emas, the player must capture the entire line.
I suspect partial captures are mostly used as a handicap against temperamental losers. By not allowing this flexibility, Pasang Emas has changed the game somewhat. It is conceivable that sometimes a partial capture is indeed the best move. But, it is not clear whether the game is better with or without it. In any case, I don't think this is a severe deviation as partial captures are rarely used. I personally hasn't witnessed any.

There is another deviation which I don't consider a deviation at all:
  • Traditionally, a player cannot interfere with the opponent’s development. In particular, a player cannot "steal" tokens that are opened up and claimed by the opponent, unless such a move is necessary to avoid suntuk (running out of moves). Pasang Emas cannot implement this imprecise rule.
The no-stealing rule is really vague that it has no place in a serious game. It forbids players from interfering with each other’s development. How, while the battle is fought over a common field? I would see no validity in my opponent’s advanced claim over a territory because any given position arises out of a duel rather than a single-handed manoeuvre.

Like any traditional games, there must be several folk versions of pasang out there, possibly with incompatible rules. (I have even heard of pasang for four players). The rules implemented by Pasang Emas are the "standard", the same ones taught in schools for their extra-curricular activities.