Desmanz WebBlog

Thursday, June 30, 2005

What A Beautiful Attitude That shoud be Life!

The 92-year-old, petite, well-poised and proud lady, who is fullydressed each morning by eight o'clock, with her hair fashionablycoifed and makeup perfectly applied, even though she is legally blind,moved to a nursing home today. Her husband of 70 years recently passedaway, making the move necessary.

After many hours of waiting patiently in the lobby of the nursinghome, she smiled sweetly when told her room was ready. As shemaneuvered her walker to the elevator, I provided a visualdescription of her tiny room, including the eyelet sheets that hadbeen hung on her window.

"I love it," she stated with the enthusiasm of an eight-year-oldhaving just been presented with a new puppy. 'Mrs. Jones, you haven'tseen the room ... just wait.""That doesn't have anything to do with it," she replied.

"Happiness is something you decide on ahead of time. Whether I Likemy room or not doesn't depend on how the furniture is arranged...it'show I arrange my mind. I already decided to love it.

"It's a decision I make every morning when I wake up. I have a choice;I can spend the day in bed recounting the difficulty I have with theparts of my body that no longer work, or get out of bed and bethankful for the ones that do.

Each day is a gift, and as long as my eyes open I'll focus on the newday and all the happy memories I've stored away... just for this timein my life.

Old age is like a bank account ... you withdraw from what you've put in. So, my advice to you would be to deposit a lot of happiness inthe bank account of memories.

Thank you for your part in filling my memory bank. I am stilldepositing.
Remember the five simple rules to be happy:
1. Free your heart from hatred.
2. Free your mind from worries.
3. Live simply.
4. Give more.
5. Expect less.

Wednesday, June 22, 2005

Eventually

Finally the proposal is done and submited to my supervisor

My project title is about the flash board game in Mobile

Have u ever heard that playing flash game in ur cell phone?

Definitely, the macromedia develope a flash lite 1.1 and is used for running the flash contents in mobile.
Thus, my project is to create checkers that will review literacture reviews and one of the algorithms will be chosen to implement in the game using Flash Mx 2004 instead of J2ME.

As we known that now the technology is keep enchancing it is possible that we now can play flash game!!. Since the Flash allow the efficient of graphic used e.g. graphic vector if compare with the GIFs and bimaps etc. Besides, with the flash lite, the designers ease to develope more UIs applications and builds the application for flash lite is simple and fast.

For more information about the flash lite pls take a view at this article
http://www.macromedia.com/cfusion/showcase/index.cfm?event=casestudydetail&casestudyid=76849&loc=en_us

Saturday, June 04, 2005

How Does the AI Work?

How Does the AI Work?The first thing one must do when composing a gaming AI is to ask himself what thinking process a human player would go through when playing the game. Normally, we come up with several strategies for any game. The next step would be to express these strategies into subprograms (functions) The scores in 3-Dimensional Tic-Tac-Toe are the number of lines achieved. Thus, the strategies of the game would be to make as many lines as possible while preventing the opponent from making lines. So the kind of spots best for the next move would be spots making a line or adding up the potential of making a line and spots blocking the opponent's (potential) line. When a human player is playing the game, he/she would be trying to compare different spots and choose the best one to play. This is like an evaluation process on the priority of different spots. To simulate such thinking process in AI, we give priority score to each spot and let AI play the spot receiving the highest score. So how do we give the scores? According to the strategies we mentioned above, a spot that helps making lines or preventing opponent from making lines should receive a high priority score. To express it more specifically, let's look at the following example:
Assume it's black's move:
An empty spot on a line where other two spots (notice that a line is composed of three spots) are both occupied by white's stones would be a block. Such empty spot should receive points for blocking.
If it's also on a line (notice that a spot can be on many lines) where other two spots are already occupied by black stones, this empty spot should also receive points for making a line.
If it's also on a line where one of the other two spots is also empty and the other spot is occupied by a white stone, this empty spot should also receive points for blocking a white's potential line. Obviously, the damage done by this block is not as great as the block in the first case. Thus, the points given here should be less than the points given in the first case.
If it's also on a line where one of the other two spots is also empty and the other spot is occupied by a black stone, this empty spot should also receive points for increasing the potential for black to make a line here. Obviously, the number of points given here should be lower than the number of points given in the second case where an actual line is made.
If it's also on a line where both of the other two spots are also empty (this empty spot is on an empty line), this empty spot should also receive points for increasing the potential for black to make a line here. Obviously, the number of points given here should be lower than the number of points given in the fourth case. The example above shows all the 5 possibilities for an empty spot to receive priority points. The AI will reconfigure the priority score for each empty spot each round and make the move on the spot receiving the highest score.