Wednesday 28 January 2015

...and this is where it ends.

BLOG CLOSED

You may have already realised this with it being over a year since I last posted but I am no longer maintaining this blog.

My work has moved on from computer vision related projects and as a result my hobbies have too.

I will leave it up in the hope it is still relevant but it has been so long since I was in the OpenCV game I can't guarantee it.

I wish you all the best with your own endeavours!

Ryan

Game Player - Step 2 - Calculate the Best Move

This is an unfinished article posted to save it sitting in Draft limbo forever.

Now that we have our game state we can move on to working out what move we should make. We could, if we wanted, just click randomly on the game board and hope for results but that wouldn't really be in keeping with the project's aim, we want the system to actually play the game.

Deciding what the best move is depends on what we feel best means. Imagine a shoot'em up game where we are flying through space blasting aliens. We might decide it is best to go for the power up first and then dispatch the enemies or we might decide it is better to clear the screen of enemies and think of power-ups as a secondary objective. If we really wanted we could create a machine leaning algorithm that decides itself what is best based on experience, but that is for another day! For now we will stick to deciding ourselves what our goal is and that will help us decide what the best way to achieve it is.