How to develop a chess program from scratch (for total beginners) Ep. 2

Huo Chess (console edition)

Interested in chess programming? You are interested in philosophy too! What is thinking? Can AI be conscious? What does it mean to do something? Can the AI understand that it does play chess? Explore the AI related articles in Harmonia Philosophica and understand why you are already a philosopher!

FROM AFFILIATED PORTAL Chess-Programming.com

[Previous episode]

Overview

In the previous episode we set the foundations for starting a chess program. In summary we…

  • Discussed the pre-requisites for the tutorial
  • Created the chessboard
  • Got the first input from the user

Now it is time to start the design of the chess thinking algorithm.

Step 0: Design the main steps on paper

Before making any serious programming attempt, one has to leave the computer and get a piece of paper. There, he can design the algorithm of the program. A good design is invaluable for a good program. There is no need to start writing code without having that design first!

Chess program algorithm outline

One can find above a rough outline of the major steps involved in a chess program algorithm.

Note that this algorithm is an over-simplification, but it will do for now. For example, the algorithm above does not take into account the fact that the thinking of the computer must be conducted in various depths and not only in the initial position. We will elaborate on that in next episodes; for now let us just try to analyze all possible moves in a position and choose the one that leads to the best score.

[Next episode: Scanning the chessboard for moves]

[Previous episode]

Free Blogging Advice (FBA) – Episode 4: From whom are you writing?

Free Blogging Advice: Writing is hard. And easy. The goal of the Free Blogging Advice (FBA) series of short articles is to provide some free advice on… blogging! All you have to add is some time and effort. And love. Lots of love.

FBA Episodes

Photo by Spiros Kakos @ Pexels

There comes a time where any blogger wonders…

“Why am I doing this?”

This question can arise more than once in the beginning of your blogging endeavor and it will also come up later in time after you have established yourself as a known blogger. (or I would better say it SHOULD come up again after you have succeeded as a blogger – more on that later on)

Not being able to answer that simple question usually ends up in full demotivation and eventually to the end of your dream to become a blogger and share your ideas with the world.

But is there a right answer for that question?

Truth be told, there is not.

But there are many wrong ones.

Aristotle once very intuitively said that “the question contains the answer”…

This couldn’t be more applicable here.

Some say they are blogging for their followers…

That is so nice. Except that if you are writing for the ones who read you, then you will inevitably become just a puppet belonging fully to them. A writer does not care about who reads him. He (or she) simply writes whatever is in his head just… because! Creativity is a deeply irrational urge, not a calculative urge to gain more followers or retain the ones you have. Van Gogh only sold one painting while he was alive.

Some say that they are blogging to share knowledge…

Some say they are blogging because of other reasons…

That is the great trap though. That you need a reason to blog.

If blogging does not come from deep inside you, there is no reason you should be doing it in the first place. If you need a reason to blog, then you should stop right now. Because the moment that reason seizes to exist, that will be the moment when everything will look useless and futile. And a true writer never sees his (or her) work as futile or useless! Pure creation is never done under special conditions or within specific context. It just flows out from you.

Search within you.

Imagine yourself after many years blogging.

Having written thousands of posts.

With zero followers.

Zero page views.

Will you be happy?

Will you feel full?

Only you can answer that.

And when you answer this question you will understand.

Why everyone asking “Whom am I writing for?” is simply trying to find a reason not to…

Free Blogging Advice: Embrace imperfection!

Free Blogging Advice: Embrace imperfection!

Free Blogging Advice: Writing is hard. And easy. The goal of the Free Blogging Advice (FBA) series of short articles is to provide some free advice on… blogging! All you have to add is some time and effort. And love. Lots of love.

FBA Episodes

Photo by Spiros Kakos @ Pexels

One of the things bloggers find difficult to cope with, is the fact that their site is not perfect.

Most of us are perfectionists, especially when it comes to the child of our creativity. Our site should be flawless, full of perfect articles, with embedded perfect pictures, saying perfect things.

The truth is much more different than that though.

Every human is imperfect. We constantly change and grow, we learn and forget, we are literally a new person every passing second as Harmonia Philosophica has explained more than once in various philosophical contexts.

How do you expect your blog to be perfect?

Being perfect was never the goal in the first place.

The goal is to expose your thoughts to the cosmos. To let out your thoughts and give others the opportunity to get to know them. Perhaps even reply back and establish a community wandering about the same things.

A blog is a window that exposes your soul to the world.

Trying to believe that what others see through that window needs to be perfect is simply a denial of your very nature. No matter how much you try to make things perfect, there will always be things that could be done better, small spelling mistakes, broken links or missing images.

Don’t get me wrong. I am not saying that you must not do your best to have a perfect site. I am just emphasizing the fact that if this is the first and only thing you care about you will indeed have a perfect unpublished site…

Blogging is about letting go.

Blogging is about having fun.

And who can have fun while trying to play everything to perfection?

Experiment!

Write!

Love what you do!

Your blog will ALWAYS be imperfect!

That is what makes is so perfect…

Harmonia Philosophical is dead. Long live Harmonia Philosophica!

Photo by Spiros Kakos (Kakia Lagada, Kythera)

Harmonia Philosophica exists for more than a decade now. There has been many years since it had a major revamp, but the time had finally come.

And just like that, everything changed.

New template that is more lean and modern. The old template was an old favourite one, but all things die at some point.

(And that adds more to the love we have for them)

New type of posts. From now on the articles will be of a more poetic type without any specific link to a news or scientific discovery article that they comments on. Anyway we had always been advocates of the irrational, so why stick to writing articles about something in such an ordinary way? (Of course posts already scheduled will be posted as scheduled)

(What is the point of writing with logic if you are to sound logical?)

Every moment all things change.

Every moment we change.

And yet, we stay the same.

There is nothing closer to eternity than the ephemeral…

Harmonia Philosophica is dead!

Long live Harmonia Philosophica!

Programming and Philosophy: Not so much different as they seem…

Huo Philosopher by Spiros Kakos (Huo)

What is common between programming and philosophy?

Well, at first glance… nothing!

Yet, if one scratches below the surface he or she may find some peculiar correlations.

People like philosophy.

Because they like to ask questions and seek their answers. Because they are interested in the major questions of humankind and would like to reach that holy grail we seek since we were born: Truth.

People like programming.

Because they like to create things that work. They like it because it enables them to bring life to their ideas and to an extent, even touch the idea of life itself via artificial intelligence and neural networks.

In both cases the most primitive of instincts are the cause of our actions.

Instincts that make us “do things”.

Instincts that make us “create things”.

Instincts that make us ask and then answer. And with every knew answer, seek ways to ask new questions and improve the answers even more.

That was since the dawn of civilization our best quality.

And our tragic fate.

Always on a quest.

Creating things.

Destroyers of the worlds.

Perhaps we were programmed to be like this.

And that is why we constantly try to be free…

Exit mobile version
%%footer%%