PDA

View Full Version : Check out my new CHESS game with AI(Artificial Intelligence)



vasanth
05-22-2003, 10:00 AM
Hi all,
I have been working on a DOS (BGI graphics) based chess game with 1 (AI) and 2 player mode for my college project.. You can download the instalation from the below link.. Please try it and post your review here.. particularly about the AI.. if you face any problems post it here...


The game starts default at 1 player mode.. to toggle between 1 and 2 player mode use the number 2 key on the keyboard.... You are incharge of the white pieces.. to move a piece use your moue to drag and drop the chess piece....

http://www20.brinkster.com/izer/chess.htm
size 532 kb

When the program in installed a desktop shortcut in installed which can be used to start the game..

The instalation requires you to enter a serial key (:D:D:D:D:D).. the serial key is
JSSIIPS-BTEC-MYSORE-9999


waiting for your review....

bye
Vasanth

vasanth
05-22-2003, 12:57 PM
No reviews yet :(:(

kermi3
05-22-2003, 01:00 PM
Don't bump and it wouldn't run for me in XP.

vasanth
05-22-2003, 01:11 PM
what was the error... I run XP.. and some how runs perfect here......

It opens a DOS console and runs...

Coule you please elobrate what the error is...

ygfperson
05-22-2003, 01:13 PM
I'm running win98se, and it runs fine for me. It's actually a pretty good game. The AI made decisions instantly, and it takes good moves when they appear. The AI isn't perfect, but it's intelligent.

My complaints:
- white and black pieces are the same color
- it doesn't interact well with windows' multimedia

XSquared
05-22-2003, 01:26 PM
>>white and black pieces are the same color
Actually, white pieces are lighter than black pieces.

>> it doesn't interact well with windows' multimedia
Huh?

ygfperson
05-22-2003, 01:27 PM
after playing another game:
- The AI isn't too intelligent... it's fairly shallow
- when I checkmated the computer, it didn't acknowledge it; it just stalled (not mouse or keyboard, but just the game itself)

XSquared
05-22-2003, 01:31 PM
>> when I checkmated the computer, it didn't acknowledge it
Wow! It must be a male AI!

adrianxw
05-22-2003, 02:25 PM
First time I ran it, it errored out. Second time it ran.

Would not acknowledge that I had won, insisted on making a move when horribly checkmated. Changed pieces, i.e. what was a Queen, it suddenly announced was a bishop. When castling, not all of the rook picture was detroyed leaving a weird smudge in the corner. Undoing a move seemed to remove several "thought moves" before removing the actual, then seemed to get in a mess when repeatedly trying, move count seemed to increment by large numbers. Was not an obvious way to quit, had to Ctrl-Alt-Del and kill it.

Way to go yet matey, but keep at it. Look forward to the next version.

confuted
05-22-2003, 03:14 PM
Mouse movement created errors with the graphics for me, and the AI didn't recognized that it was checkmated after approx. 8 moves. That was luck, of course, but I did notice that sometimes the AI will make a move, and then move the piece back to the original spot on the next move...it needs to look far enough ahead that it doesn't do that. If you need a screen shot, I can probably get you one. WinXP

vasanth
05-22-2003, 10:29 PM
Than you guys...
for you review... I still need to improve some aspects of the game.... I agree that the AI is still not good enough but OK.. working on it.. Keep it comming...

And the problem with it accepting a check mate seems to happen here too.. but only at some times.. i think there is a problem... any way...

and quit the game press esc key twice.....

anything else you think needs improvement....... please post a message

vasanth
05-22-2003, 10:31 PM
Originally posted by ygfperson
I'm running win98se, and it runs fine for me. It's actually a pretty good game. The AI made decisions instantly, and it takes good moves when they appear. The AI isn't perfect, but it's intelligent.

My complaints:
- white and black pieces are the same color
- it doesn't interact well with windows' multimedia


Hi ygf... how come you lost man... I though the AI was not good enough for a human to lose :D:D:D:D:D:D:D

vasanth
05-22-2003, 10:35 PM
Originally posted by adrianxw
First time I ran it, it errored out. Second time it ran.

Would not acknowledge that I had won, insisted on making a move when horribly checkmated. Changed pieces, i.e. what was a Queen, it suddenly announced was a bishop. When castling, not all of the rook picture was detroyed leaving a weird smudge in the corner. Undoing a move seemed to remove several "thought moves" before removing the actual, then seemed to get in a mess when repeatedly trying, move count seemed to increment by large numbers. Was not an obvious way to quit, had to Ctrl-Alt-Del and kill it.

Way to go yet matey, but keep at it. Look forward to the next version.

thanx for the review.. The undo has some big bugs... I think using it creates a lot more problems in single player mode.. but undo works fine in 2 player mode.. thanx anyway

Brian
05-24-2003, 10:47 AM
Why would your installer program want to do this?

vasanth
05-24-2003, 11:05 AM
Originally posted by Brian
Why would your installer program want to do this?

irsetup.exe was not my program was it :D:D Even if it is.. dont suspect me.. i used the Setup Factory 6 version to create my setup... Please check wheather it was my setup..

itld
05-24-2003, 10:24 PM
howdy,
Runs just fine on Win2K pro. it beat me but then i'm not a chess player.

M.R.

vasanth
05-24-2003, 10:47 PM
Originally posted by itld
howdy,
Runs just fine on Win2K pro. it beat me but then i'm not a chess player.

M.R.

if you could can you post a screen shot.. want to see how it displays on win 2k..

AProg
05-25-2003, 12:27 AM
I what language did you program A1, and how long did it take you to create it?

vasanth
05-25-2003, 03:03 AM
Originally posted by AProg
I what language did you program A1, and how long did it take you to create it?

well i used C++ to do everything.. the AI, graphics, game etc.. but i used an obsolete compiler called Turbo C v 3.0 which no one uses now execpt people like me wh are intrested in concepts rather than tha actual progream...


The entire chess game was a project for college done with my three friends.. it took us 3 months but if we worked on it every day. we would have finished it in10 days... The AI took us 3 days... so now you know why the AI is not that good...

AProg
05-25-2003, 05:46 AM
Can you put images on a C++ progect? And how does the compiler know the input by moving a unit?

vasanth
05-25-2003, 09:23 AM
Originally posted by AProg
Can you put images on a C++ progect? And how does the compiler know the input by moving a unit?



Ok looks like you need to do some studying.. C++ is a very power full language.. you can write the Windows operating system you are using using C++.. It looks like you are a VB programmer.. Unline VB which is drang and drop C++ is code based and more powerfull and gives you full control...



Believe me.. with C++ you can do very complex things... you can even build photoshop etc etc...

vasanth
05-25-2003, 09:27 AM
and if you want to have a look at my C++ source code.. i have attached it.. have a look how the program is able to detect the movments etc.. But forgive me for my sloppy style of coding which even my teachers hate.... Improving on my style day by day :D:D:D

AProg
05-25-2003, 10:40 AM
Sorry pal but i can't download your zip file.
Anyway.
Can i post images and do things like these using C ( and do my one operating system if possible )?
And:
Can A1 be programmed using C?
Also:
What was the most difficult thing to do about this program?

codingmaster
05-25-2003, 01:10 PM
Good game

The AI could be better (but you worked at the AI just 3 days...)

Works well on WindowsME

@AProg the source download works

ygfperson
05-25-2003, 01:55 PM
Originally posted by vasanth
Hi ygf... how come you lost man... I though the AI was not good enough for a human to lose :D:D:D:D:D:D:D
You've just never seen me play chess... :eek:
I'm terrible at it.

Me: "Haha, you're in checkmate"
(King captures my queen)
Me: "dang"

MethodMan
05-25-2003, 01:59 PM
>>I'm terrible at it.

When you were asking people to play at FD, I thought it was because you wanted to mop the floor with them.

I guess I was wrong. :D

vasanth
05-26-2003, 03:53 AM
Originally posted by AProg
Sorry pal but i can't download your zip file.
Anyway.
Can i post images and do things like these using C ( and do my one operating system if possible )?
And:
Can A1 be programmed using C?
Also:
What was the most difficult thing to do about this program?


Well building your OS is not a simple task.. Windows XP might have taken years of development with thousands of developers.. First start by learning concepts. and C++ is not as easy as you think.. (pasting images).. it is much complex than that..

vasanth
05-26-2003, 03:53 AM
Originally posted by AProg
Sorry pal but i can't download your zip file.
Anyway.
Can i post images and do things like these using C ( and do my one operating system if possible )?
And:
Can A1 be programmed using C?
Also:
What was the most difficult thing to do about this program?


Well building your OS is not a simple task.. Windows XP might have taken years of development with thousands of developers.. First start by learning concepts. and C++ is not as easy as you think.. (pasting images).. it is much complex than that..

Nothing was that tuff in the project i did.. It just required some time and logic..

AProg
05-26-2003, 03:59 AM
I know that C++ isn't so simple, and i know that i can't do my own operating system - ofcourse.
But i asked you if someone using C could do tha same game ( or operating system ). Can he?

vasanth
05-26-2003, 05:08 AM
Originally posted by AProg
I know that C++ isn't so simple, and i know that i can't do my own operating system - ofcourse.
But i asked you if someone using C could do tha same game ( or operating system ). Can he?


Yes some one could why not...

AProg
05-26-2003, 10:12 AM
>Nothing was that tuff in the project i did.. It just required some time and logic..

I believe, that the tufffer thing to do while doing such a progect, is to make the compiler choose between movements, and make the best one at the end, yet i haven't tried to do it on my own.
What do you believe( generally talking )?
And:
To make a good compiler, you have to be very good at chess, isn't it?