[skip all navigation]

Apos's Chess (ChApos), I am working on a Chess engine.

Creator: Apos
Time: Sep 2 2010, 5:49 pm

Post #1     Apos Sep 2 2010, 5:49 pm

[Avatar]
Today is the tomorrow you worried about yesterday.
offlinecontact
Rank: Regular
I am currently writing a chess engine that will work under the UCI protocol; it means that it can work under a UCI chess interface therefore I don't need to write my own. At this point, almost everything is done (Move generation, checkmate and stalemate, ply and so on), all what is left is to make an analysis that will tell the engine if it should play a certain move more than an other one. This is how I think I will do it:

In order to make it stronger, I will have to experiment. My first idea is to give a value for each move. The move with the highest value is then played.
To calculate the move value, I will add all of whites's pieces (Positive numbers) with black's pieces (negative numbers) and if the result is positive, white is winning. The value each piece will have will change during the game.

At the start of the game, pieces in the middle will have a bigger value. Therefore, if a move brings a piece in the middle, and an other brings it to the side, the one in the middle will be chosen. (Of course, there will be more criteria, but that's the basic.)

Cool facts I found about chess using my chess engine:

At move 0, there are 20 possible moves.
After move 1, there are 400 possible moves.
After move 2, there are 8902 possible moves.
After move 3, there are 197281 possible moves.

I will probably post then engine when it starts playing move that are fairly good.

How to Ask Questions the Smart Way --- This is my website
(user posted image)(user posted image)
"A designer knows he has achieved perfection not when there is nothing left to add, but when there is nothing left to take away." - Antoine de Saint-Exupéry
Ever wondered how to pronounce my usernames? Wonder no more!
Top

Post #2     rockz Sep 2 2010, 7:55 pm

[Avatar]
お や す み
offlinecontact
Rank: Veteran
(user posted image)
Make sure you add animations, and have the queen shake her butt when she walks.

I know the number of moves eventually hits a low point, but you can't just go by the best value, since you also have to think 3-4 moves ahead. I can't help with the theory at all, though I would expect things like deep blue run on pretty sophisticated software.

This is a great wallpaper to use if you want to go into an epileptic fit every time you sit down in front of your laptop, which I guess is a better option than watching Naruto.
Top

Post #3     NudeRaider Sep 2 2010, 8:06 pm

[Avatar]
You're not old until the past seems more fun than the future.
offlinecontact
Rank: Veteran
Battle Chess! <3

(user posted image)
Devilesk: "AND OUT OF THE GOODNESS OF MY HEART [...]" - wait what??
Top

Post #4     Apos Sep 5 2010, 5:08 am

[Avatar]
Today is the tomorrow you worried about yesterday.
offlinecontact
Rank: Regular
I'll have to rethink what I've been working on, it can now play, but it does it way too slow.

How to Ask Questions the Smart Way --- This is my website
(user posted image)(user posted image)
"A designer knows he has achieved perfection not when there is nothing left to add, but when there is nothing left to take away." - Antoine de Saint-Exupéry
Ever wondered how to pronounce my usernames? Wonder no more!
Top
0 members in this topic (italic members are currently writing a reply): None
+ guest(s)


[03:28 pm]
Roy -- That "Still" was so powerful it capitalized the first letter of the proceeding word.
[03:13 pm]
SmE(Raitaki -- Wondering if I have gone to the correct period or not :/
[03:12 pm]
SmE(Raitaki -- I STILL Spend half of my school periods walking to class and wn
[02:29 pm]
Roy -- I've seen replays of Temple Siege with that guy in it.
[12:38 pm]
Azrael.Wrath -- Just throwing that out there.
[12:38 pm]
Azrael.Wrath -- Also, Herbalogist is about the biggest degenerate I've had the displeasure of encountering in a long time, online or otherwise.
[12:36 pm]
Azrael.Wrath -- Back to doing turns.
Please log in to shout.