Friday, April 16, 2010

Knights and Knaves

A very special island is inhabited only by knights and knaves. Knights always tell the truth, and knaves always lie. You meet four inhabitants: Sue, Alice, Homer and Ted. Sue tells you that Alice is a knave. Alice tells you that Ted is a knave. Homer claims, `Alice is a knight and Ted is a knave.' Ted tells you,... `I and Homer are different.'

So who is a knight and who is a knave?

-----------------------------------------------------------

Assumption 1:

We assume Sue is a knave. This means Alice is a knight because the statement 'Alice is a knave' is definitely wrong. Therefore the statement 'Ted is a knave' is right because Alice is a knight. Then, Homer can also be assumed as a knight because the statement `Alice is a knight and Ted is a knave' is right. The problem is with the fourth statement. If Ted is a knave, the statement `I and Homer are different' is wrong, and the correct statement is `I and Homer are not different' or 'I and Homer are the same'. And this means, if Ted is a knave, Homer must also be a knave, thus the statement `Alice is a knight and Ted is a knave' is wrong, rendering the fist and second statement invalid. The conclusion is assumption 1 cannot be accepted.

Assumption 2:

We assume Sue is a knight. This means Alice is a knave because the statement 'Alice is a knave' is definitely right. Therefore the statement 'Ted is a knave' is wrong because Alice is a knave, thus Ted is a knight. Then, Homer can also be assumed as a knave because the statement `Alice is a knight and Ted is a knave' is wrong. The fourth statement, `I and Homer are different' is right if Ted is a knight, and it conforms to the situation if Ted is a knight dan Homer is a knave. The conclusion is assumption 2 can be accepted.

Therefore the answer is:

Sue and Ted are knights
Alice and Homer are knaves

Right?

readmore »»
Thursday, January 28, 2010

More Scrabble...

 

I occassionally play Scrabble at Facebook. This is one of my most interesting games..... which starts with a bingo (no. 1) and ends with a bingo (no. 4) with a total of 4 bingos in one game. The last move also got me the red square (triple word!) totalling 86 points... not bad for a finishing move. It's a great game. You can choose to make a move in either 5 minutes, 1 day or 1 week, depending on your free time. Just make sure to avoid clicking the 'Force Forfeit' button unless you really need to....

readmore »»
Wednesday, January 27, 2010

Robot Sketches


 

Some of what I made during classes to keep myself from dozing off......


readmore »»

After applying animations on objects as explained in tutorial part 3, the next step is to insert hyperlinks and export the movie.


 
Notice that one of the text objects in the signature is a link. A hyperlink can be put on the object to enable it to be clicked and it will open the link in a browser window.

  
Click on Script as highlighted in the yellow rectangle to open the Script panel. Make sure the object you want the link to be append to is selected, then click on Add Script, and select Browser/Network. Choose getURL(...).

  
Put the hyperlink in the URL box. Then select the target window. _blank is recommended as this will open the link in a new browser window. The resulting script will be shown in the Script panel. The link can now be clicked.


Click on the Play Movie button to preview the whole movie from the beginning to the end. This is how the animated signature will appear. 


You can also insert some shapes in the signature by using the Tools available in the left side of the Layout panel. Change the orders by moving them either upwards or downwards in the Outline panel. Now it is the time to export the movie.


Click on File,  and select Export. There are many formats available for exporting the movie. Choose either you want the signature in swf or gif format. What is the difference between swf and gif signature? Well, swf or flash signature enables you to put multiple links in one signature, plus other functions such as stop and replay. While animated gif does not provide these functions. You can only put one link with animated gifs. However, not all forums provide the support to put flash signature for the users.

The Export Settings window will appear after choosing the preferred format. Click on OK to export the movie. The animated signature is now finished. Click on the links to view the results:


readmore »»




LinkBucks