Thoughts From My Life

February 2008 Archives - Page 2

Feb
26
Written by Neil Galloway
 

I have been messing around with my Nintendo DS again and trying to write some simple programs. Hello World that can be dragged and dropped on the screen somewhere is as far as I have advanced.

I have been learning the A* algorithm however. I have implemented it in Java and now I am working on C/C++ versions. I think I will also try to do a demo version in javascript to what how it works visually.

What Is A*

It is a shortest path algorithm. It tries to find the shortest path it will take for something to go from point A to point B while taking into consideration obstacles and such.

It takes a little bit to wrap your head around the first time and then it makes perfect sense how it is working.

I won't try to explain it myself, since there are a few sites that already do it well enough. My main reference was A* Pathfinding for Beginners. I read on another site that they criticize this tutorial because it says you have to use a closed list and you don't. I still found it to be one of the easier descriptions though.

I recommend implementing it in the language of your choice once and then tweaking it after that. I also recommend reading the A* Search Algorithm Wikipedia article.

I hope to post some more examples in the near future.

Post a Comment ... (2 Comments)

Feb
27
Written by Neil Galloway

My wife and I went to see Enchanted April last night. It is a theatre performance put on by Theatre Calgary at the Epcor Centre for Performing Arts.

The play started out a bit slow for the first few minutes, but was thoroughly enjoyable after that. Very funny and the the actors did a very good job.

The Story

Enchanted April is about 2 women from England who have drifting apart from the husbands of late. They decide to rent a small castle in Italy for the month of April as a getaway. To help with the costs they take out an advertisement in the paper for 2 more women to join them. Each one has a very unique personality of course and it doesn't take long for a bit of friction to ensue.

Their experience at the castle is rather funny. There is the non-English speaking Italian maid, the landlord of the castle (a young English gentleman), and the husbands eventually show up themselves.

All in all, it is an excellent play and I would definitely recommend. Check out the Enchanted April - Theatre Calgary info page.

Enchanted April

Post a Comment ... (0 Comments)

Page 2