Important alert: (current site time 7/16/2013 2:56:45 AM EDT)
 

winzip icon

Complete Chess Game (With DLL Engine)

Email
Submitted on: 12/1/2003 12:26:30 PM
By: Elias Barbosa  
Level: Advanced
User Rating: By 42 Users
Compatibility: VB 6.0
Views: 32175
author picture
(About the author)
 
     This Chess Game is unlike any other here on PSC. The main difference is that it has a DLL Chess Engine. Before I continue, I have to explain that this project was not created by me. It was originally submitted by Marjan Mrak. I only painstakingly translated it from Slovenian to English. You will really admire my effort when you learn that I don't know a single word in Slovenian!! I only translated the Game project form Slovenian to English. The DLL project is still in Slovenian. However, you can, now, understand how to utilize the DLL. I am planning on translating the Chess Engine DLL, too. However, it is gonna take a while and I am planning to rewrite most of it... The great advantage of a DLL is that it will greatly facilitate the transportation of the Chess Engine form this project into your Chess Game project. I saw many Chess Game projects here on PSC that allow you to play against another human opponent on your computer or even play against an opponent via the internet. However, I hardly ever have seen a Project where you can play against your own computer. If you have programmed a Chess game that does not have the capability of playing with you, you can, now, add this feature to it. The Chess Engine is not brilliant but it is a start... ======================================================== Update 12-02-03 at 9:25 AM ======================================================== I have updated the DLL, as suggested by Norm Cook.

 
winzip iconDownload code

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. Afterdownloading it, you will need a program like Winzip to decompress it.Virus note:All files are scanned once-a-day by Planet Source Code for viruses, but new viruses come out every day, so no prevention program can catch 100% of them. For your own safety, please:
  1. Re-scan downloaded files using your personal virus checker before using it.
  2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.
  3. Scan the source code with Minnow's Project Scanner

If you don't have a virus scanner, you can get one at many places on the net including:McAfee.com

 
Terms of Agreement:   
By using this code, you agree to the following terms...   
  1. You may use this code in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.
  2. You MAY NOT redistribute this code (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
  3. You may link to this code from another website, but ONLY if it is not wrapped in a frame. 
  4. You will abide by any additional copyright restrictions which the author may have placed in the code or code's description.


Other 8 submission(s) by this author

 


Report Bad Submission
Use this form to tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:

Your Vote

What do you think of this code (in the Advanced category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor (See voting log ...)
 

Other User Comments

12/1/2003 1:34:46 PMElias Barbosa

If you wanna vote, it is up to you...

I would really appreciate some comments, though...
(If this comment was disrespectful, please report it.)

 
12/1/2003 6:38:37 PMH3X

This is brilliant, 5* from me.
(If this comment was disrespectful, please report it.)

 
12/1/2003 8:49:44 PM

very nice indeed 5 from me
(If this comment was disrespectful, please report it.)

 
12/2/2003 6:52:10 AMM.C

I must correct you - the language is absolutely not russian. It is Slovenian - I know that for sure.
Look on the map beetween italy,austria,hungary and croatia.
Have a nice day.
(If this comment was disrespectful, please report it.)

 
12/2/2003 7:04:48 AMM.C

so now jou know which dictionary to look at - will take less time from now on.
(If this comment was disrespectful, please report it.)

 
12/2/2003 7:43:51 AMNorm Cook

DLL won't compile:
Global polozaji As String
Then in Module Splosno:
reference to polozaji(x, y)

(If this comment was disrespectful, please report it.)

 
12/2/2003 7:59:29 AMNorm Cook

Got it to compile, just comment out this entire function in Splosno
Function sestavipolozaje() As String
(If this comment was disrespectful, please report it.)

 
12/2/2003 9:14:03 AMElias Barbosa

I am sorry for the language mistake! No offence, but, it could have been Greek, it would not haven made any difference to me... :)

I don't have a Slovenian dictionary, neither a Russian Dictionary nor a Greek dictionary for that matter...

By the way, it would have been much easier if every one would post their projects in English, in the first place!!

Thanks for the information, though. I will try to find a free online Slovenian Dictionary... If anyone knows of a good online Slovenian Dictionary, feel free to tell us!

PS.: I might not have a dictionary but I have an Atlas!! I know where Slovenia is!! :)
(If this comment was disrespectful, please report it.)

 
12/2/2003 9:37:38 AMAlbertCoder

Thanks for sharing, 5 globes from me
(If this comment was disrespectful, please report it.)

 
12/2/2003 12:44:30 PMPietro ing. Cecchi

thanks for sharing,
5 candies from me... :)
(If this comment was disrespectful, please report it.)

 
12/3/2003 6:32:11 AMManimaran

Good work by Marjan Mrak. and excellent job by Elias Barbosa. I could able to understand the pain of Elias Barbosa. 5***** from me.
(If this comment was disrespectful, please report it.)

 
12/3/2003 12:53:17 PMCereal

verry good ting, nice job

5* from me to :)
(If this comment was disrespectful, please report it.)

 
12/3/2003 2:21:38 PMRobert Rayment

I played one game at highest level and won easily! It would be nice to be able to move the pieces with the mouse. But excellent start so 5 from me,
(If this comment was disrespectful, please report it.)

 
12/3/2003 8:03:49 PMCodeClub

i do not know how to play this kind of game but it looks good:)
(If this comment was disrespectful, please report it.)

 
12/4/2003 7:08:52 AMDraggonLord

Sweet Thanks for writing letting me know you fixed it mouse use would have been pretty kewl but this is KEWL I give you 5 for translating i looked at the dll part your right it's all Greek sorry Slovanian(hope that's right)
(If this comment was disrespectful, please report it.)

 
12/5/2003 6:22:06 AMNick Ridley

forgive me if i am wrong but didnt you ONLY translate this? if you didnt write ANY of the code then why is this winning the coding contest? sometimes i think people dont even bother to read and automatically give 5 globes.
(If this comment was disrespectful, please report it.)

 
12/5/2003 8:11:50 AMElias Barbosa

You are right! I don't care about winning any contest. My only objective was to share the result of my hard work "translating" this submission so every one could take advantage of the DLL engine.

In the other hand, if I am receiving that many votes, it means that the PSC community is trying to say something.

If you, my fellow programmer, submit a code that is created in a language other then English, you should expect rejection! Portuguese is my native language but I didn't translate this project from Slovenian to Portuguese. I translated it to English!! It doesn't matter whether you have good English or not. There are many English dictionaries around the world. Just pick one and make this extra effort. The PSC community will thank you with many votes!!
(If this comment was disrespectful, please report it.)

 
12/5/2003 8:19:47 AMElias Barbosa

I think that the PSC community is trying to make a statement that they would appreciate if everyone made their submissions in English!

So, if you want to vote just to make a statement, be my guest!! :)
(If this comment was disrespectful, please report it.)

 
12/6/2003 11:44:02 AMNuria Inacio

Obrigado pelo trabalho bem feito!
(If this comment was disrespectful, please report it.)

 
12/7/2003 1:09:44 AMElias Barbosa

De nada!! :)
(If this comment was disrespectful, please report it.)

 
12/7/2003 6:42:44 AMadsf

boring.. its to slow..
i had the difficulti=max
and this is the result= the computer wont let me win.. :-p

1. A2-A4 ... F7-F6
2. B2-B3 ... E7-E6
3. E2-E4 ... C7-C5
4. F1-C4 ... A7-A6
5. D2-D4 ... C5-D4X
6. D1-D4X ... D7-D6
7. C1-E3 ... B7-B6
8. G1-E2 ... E6-E5
9. D4-D5 ... G7-G6
10. B1-C3 ... G6-G5
11. A4-A5 ... B6-A5X
12. A1-A5X ... D8-A5X
13. D5-A5X ... F6-F5
14. A5-D5 ... A6-A5
15. D5-A8X ... H7-H6
16. A8-B8X ... H6-H5
17. B8-C8X+


it have stopped..
(If this comment was disrespectful, please report it.)

 
12/13/2003 9:18:44 AMElias Barbosa

I just found out a nice free online Slovenian dictionary. By the way, it also translates from Russian and Greek!!! :)

The address is:
http://intertran1.tranexp.com/Translate/result.shtml

It is pretty cool...

Just so everybody know it...

(If this comment was disrespectful, please report it.)

 
12/16/2003 6:33:13 AM

Nice program!
(If this comment was disrespectful, please report it.)

 
12/18/2003 6:16:43 PMCesare Imperiali

5 from me too.
Have a nice day,
Cesare
(If this comment was disrespectful, please report it.)

 
12/28/2003 4:36:25 PMFred.cpp

Hi Elias, I must to say this is even better than I thought. I know how difficult can be translate a project from a language that is not your fist language to other, and I'll rate you with a five. Keep up man!
(If this comment was disrespectful, please report it.)

 
1/13/2004 7:15:18 PM

Nice translation and am looking forward to the DLL code being translated to English too. Two must-haves for me though - using the mouse for movement of pieces and game history in Portable Game Notation (http://www.tim-mann.org/Standard). Also ability to save and load games using this would be needed.
(If this comment was disrespectful, please report it.)

 
1/15/2004 12:43:40 AMNice coder

good program 5* also would it be possible to build it with an adaptive search (speaking from a little tic-tack-toe program which only had an adaptive search from all the users input-beat me in about 20-30 games :(
(If this comment was disrespectful, please report it.)

 
1/16/2004 6:29:41 AMAlpha Binary

great! congratulation for winning the coding contest!
(If this comment was disrespectful, please report it.)

 
1/25/2004 8:15:26 PM

hello!
great program... 5 start by me.
First I want to ask some thing. How should I learn to make a chessprogram? A very very simple one...

I only want to write a very simple code how to evulate the position and then have the rest of the code from start. Where can i find it?

And I too ask how the formula for the evulvation of the position works. Where can I, for example, find it in this program?

Many thanks for answers.
(If this comment was disrespectful, please report it.)

 
1/26/2004 5:21:49 PM

Here's a big problem. It can't figure out that the piece right next to the king is defended, so it freezes. For those that ask, no, it was not in checkmate. Does anyone know how to fix that problem. It would be greatly appreciated.
(If this comment was disrespectful, please report it.)

 
1/27/2004 1:08:36 PMManq_ Systems

Excellent game, congratulations!!!!
(If this comment was disrespectful, please report it.)

 
2/2/2004 4:31:37 AM

codeing is usefull
(If this comment was disrespectful, please report it.)

 
2/4/2004 12:25:05 AM

Genial, excelentisimo, es de 5 estrellas
(If this comment was disrespectful, please report it.)

 
2/4/2004 2:27:03 PMElias Barbosa

I would like to ask a favor from the PSC community.

If you speak Slovenian, please, contact me. I need some help to translate the DLL engine.

Thanks...
(If this comment was disrespectful, please report it.)

 
2/9/2004 3:23:28 AMEdin Omeragic

Here is another chess, size 5k, writen in java, very nice cool
http://entries.the5k.org/352/index.htm
(If this comment was disrespectful, please report it.)

 
2/12/2004 11:34:04 PM

Very nice program, you got 5 from me!!
(If this comment was disrespectful, please report it.)

 
3/4/2004 9:56:27 AMLASTOUN

Very nice program, you got 5 from me!!

(If this comment was disrespectful, please report it.)

 
3/4/2004 6:16:12 PMFred.cpp

congratulations, yor code habe veen the code of the day! keep up man!
kind regards
(If this comment was disrespectful, please report it.)

 
12/21/2004 3:34:27 AM

it doesnt compile to me, problems in sestavipolozaje function of chess.vbp and in mot variable in project.vbp
(If this comment was disrespectful, please report it.)

 
4/1/2005 5:20:19 AMbammylove

THIS CODE IS GREART AND I REALLY LIKE IT.I GIVE YOU 5 GLOBES FOR THIS.MY NAME IS VICTORIA AND I AM A FEMALE PROGRAMMER,I WILL WANT YOU TO SEND ME THE COMPILED VERSION OF THIS PROGRAM,PLS .I WANT TO HAVE IT TO ALWAYS REMEBER YOU OF YOUR GOOD WORKS.ONCE AGAIN,KEEP IT UP.Pls dont forget me
(If this comment was disrespectful, please report it.)

 
4/1/2005 9:08:44 AMOricron

Well, I speak it...Slovenian that is:p - sory for the huge delay...if still needed, contact me...
(If this comment was disrespectful, please report it.)

 
8/28/2007 12:22:27 AMKDCCO

Thanks for your effort. I love chess and to see the detail you put into this gave me the warm fuzzies. note email is now kdcco916@gmail.com. If you can put in mouse interaction let me know...
(If this comment was disrespectful, please report it.)

 
2/3/2009 11:30:59 AMadel elkabany

nice program , very familiar coding , good stuff.
(If this comment was disrespectful, please report it.)

 

Add Your Feedback
Your feedback will be posted below and an email sent to the author. Please remember that the author was kind enough to share this with you, so any criticisms must be stated politely, or they will be deleted. (For feedback not related to this particular code, please click here instead.)
 

To post feedback, first please login.