I am not sure what issue you are referring to. I fear some communication issues are due to translation issues.

maybe....

I am wondering if there is a way to force settlement all asset imediately.

if we don't have this function, how to finish this prediction game?

can anybody give a guide what's the right way of implement the predition market?

I can't give you a guide. I've thought about it a bit, but there are a couple of things I am not sure of.

If for example you started out with an asset and defined it as a yes/no on a future event. For this example we will use something simple like a coin flip. We will call our asset heads, and set a feed of 1heads/1bts with a forced settle at 1.99 and 0 sqp. If I am willing to bet on heads then I will borrow 1 heads at a collateral rate of 200% thus putting up 2bts, and getting 1 heads. I would then place this 1 heads for sale at 1bts. Someone willing to bet on tails would purchase that 1 heads. At this point I would be short 1 heads with a collateral position of 2, and would have the 1 bts I sold my heads for. My counterparty would have spent 1 bts and have 1 heads. Now we would flip the coin.

If the coin is tails then the settlement is easy. we simply move the feed up to 1heads/2bts. The short would force settle at the feed price, and the long would be able to sell to double their money. Even if the short added funds to increase collateral, they could still be force settled.

If the result is heads then its a little harder. You would need a way to force settle the longs. At worst the asset issuer could recall the asset from the longs and place for sale as close to 0 as possible. Thus the shorts could purchase the asset, close their shorts and keep the collateral.

One of the great unknowns is fees. Particularly what fees are paid for recalling all assets to the issuer?

Also It seems as if by adjusting collateral requirements and starting feed price you could change the odds, but I haven't reasoned all the way through that yet.

***edit***

After thinking about it a little bit more. I think for a 1 to 1 odds bet, a starting feed of 1 with a sqp of 1.333 would probably be a better idea. Then to close out, you would set the feed to 1.5.