Shop Mobile More Submit  Join Login
A new chess AI, much harder than my first one.
The en passiant rule is added in this game.

To move a piece, simply click it, drag and drop it at a red tile

Update: NO LAG ANYMORE! :D
Add a Comment:
 
:iconraventhedoll:
raventhedoll Featured By Owner Dec 1, 2014  Professional Digital Artist
good game al
Reply
:iconravennyxrayn:
ravennyxrayn Featured By Owner Sep 13, 2013
I won, playing black, first try!!!! ^.^ Mated with a queen and knight. Outsmarted the Flash using simple tactics. Interesting flash game, thanks for creating. And you're right, I experienced no lag. Cool.
Reply
:iconliquid-grievous:
Liquid-Grievous Featured By Owner Feb 15, 2012  Professional Digital Artist
great work..could i ask you some questions about this? program,ming i mean
Reply
:iconstephenkingftw:
StephenKingFTW Featured By Owner Jan 3, 2012  Hobbyist General Artist
How long did it take you to make this?! @_@ It's a great program~!
Reply
:iconriman:
riman Featured By Owner Jun 8, 2011  Hobbyist Digital Artist
Yeeesssss!!! Finally I could win after being defeated twice. Hahahahahaaa!!!!!! It was really FUN! Just for my curiosity, can you recommend me a book or website about writing a chess engine for beginners, please?
Reply
:iconiamtherealsuperman:
IamTheRealSuperman Featured By Owner May 16, 2011  Hobbyist General Artist
This is just awesome!! Playing my favorite game on deviant art!!
Reply
:iconxtremenginer:
Xtremenginer Featured By Owner May 16, 2011  Hobbyist Interface Designer
Great programming man!!!!I once tried to make a C program for chess at school but it never worked out error free so u must be a really good programmer to pull it off so well.But if u ask me the AI is very easy which I defeated with my queen,2 rooks and one bishop still remaining.It would be some where around 1300 USCF.
Reply
:icontahupon:
Tahupon Featured By Owner Mar 31, 2011  Student Digital Artist
I hate losing to AI! ^^'
Reply
:iconhadamo:
Hadamo Featured By Owner Apr 30, 2010
Wow, this is a very nice one. I underrestimated him on the first run.
Say, May we use this for a chess-club homepage for a school project?
Reply
:iconsatanasko:
Satanasko Featured By Owner Apr 15, 2010
Awesome :3
I played as black. That AI is pretty much about my current skill level. It was fun defeating it. :)
Reply
:icond-arius:
D-aRiuS Featured By Owner Feb 28, 2010
Fantastic job. As an AS3 programmer and a chess player i really appreciate what you've done here but just a couple of issues: The lack of any sound effects and also the computer made some really obvious mistakes. I played as white twice and beat it both times. But great job nonetheless :+fav:
Reply
:iconveclock:
veclock Featured By Owner Feb 28, 2010  Student Digital Artist
Thanks for the comment :)
Yup, it does mistakes, but I guess I'll make a 3rd version sometime :)
Reply
:icond-arius:
D-aRiuS Featured By Owner Mar 1, 2010
Great, i can't wait
Reply
:iconyadu:
yadu Featured By Owner Feb 9, 2010  Hobbyist Digital Artist
very awesome! ^_^
Reply
:icongamesfuhrer:
GamesFuhrer Featured By Owner Feb 1, 2010
This is cool. I'd like to make a chess game of my own, but I haven't found any tutorials.
Reply
:iconveclock:
veclock Featured By Owner Feb 1, 2010  Student Digital Artist
I've only found 2-3 other flash chess games :o so I would be surprised to find any tutorials
Reply
:icongamesfuhrer:
GamesFuhrer Featured By Owner Feb 1, 2010
You should make a tutorial. You could probably get paid for it.
Reply
:iconveclock:
veclock Featured By Owner Feb 2, 2010  Student Digital Artist
Yes, I guess I could. I can give you a short one here:
1. Make movable pieces which follows the rules
2. In every turn, make an array of all possible moves
3. When the computer is about to make a move, decide which one by looking at them all:
- count safe pieces
- count unsafe pieces
- check which one you captured
- check which of yours could be captured
- ect ect
and then pick the move which seems to be the best!
Reply
:iconl3pra:
L3pra Featured By Owner Feb 1, 2010  Student Filmographer
LoL powned xD
Reply
:iconwhirlwind93:
Whirlwind93 Featured By Owner Feb 1, 2010  Hobbyist General Artist
um... the ai got a pawn to my side and got 2 fucking queens.... glitche?
Reply
:iconveclock:
veclock Featured By Owner Feb 1, 2010  Student Digital Artist
Did the pawn turn into two queens? :o
Reply
:iconwhirlwind93:
Whirlwind93 Featured By Owner Feb 1, 2010  Hobbyist General Artist
lol no. i just didnt know you could get a unit from that that you already have on the field.. i thought you could only get units back that have already died (his queen was still alive when he got it over)
Reply
:iconveclock:
veclock Featured By Owner Feb 1, 2010  Student Digital Artist
oh, alright :) yes, you get a new piece when you get a pawn to the other side. You should be able to chose which you want, but since you'd like a queen in 99% of all cases, I made it turn to a queen automatically ^^
Reply
:iconage2003:
Age2003 Featured By Owner Feb 1, 2010
Getting my arse kicked :(
Reply
:iconveclock:
veclock Featured By Owner Feb 1, 2010  Student Digital Artist
=) yay, keep trying
Reply
:iconzegman:
ZEGMAN Featured By Owner Jan 30, 2010  Student Artist
That's amazing! Great programming. :D
Reply
:iconveclock:
veclock Featured By Owner Jan 30, 2010  Student Digital Artist
^^
Reply
:iconnpcrebelion:
NpcRebelion Featured By Owner Jan 29, 2010
This is frickin' HARD.

I'm going to find an easier version of chess before I try this guy :P
Reply
:iconveclock:
veclock Featured By Owner Jan 29, 2010  Student Digital Artist
I have an easier, go to "Chess AI Game" in my gallery :)
Reply
:iconturbocharge0:
Turbocharge0 Featured By Owner Jan 27, 2010
want*
Reply
:iconturbocharge0:
Turbocharge0 Featured By Owner Jan 27, 2010
here's a game my freind laughed at ^^:


===ME====IT===
(white) ~> (Black)
1. e2-e4 ~> Nb8-c6
2. Ng1-f3 ~> Ng8-f6
3. e4-e5 ~> Nf6-g8
4. Nb1-c3 ~> d7-d6
5. Bf1-b5 ~> d6xe5
6. Nf3xe5 ~> Qd8-d6
7. d2-d4 ~> Bc8-f5
8. Bc1-f4 ~> g7-g6
9. d4-d5 ~> Qd6xb4
10. d5xc6 ~> Qb4xf4
11. c6xb7+ ~> c7-c6
12. b7xa6=Q+ ~> bF5-C8
13. b5xc6# ~> XD

==============

Sorry if you don't games posting (they are quite big) please feel free to hide this ^^
Reply
:iconveclock:
veclock Featured By Owner Jan 29, 2010  Student Digital Artist
you won? :)
Reply
:iconturbocharge0:
Turbocharge0 Featured By Owner Jan 29, 2010
Yuh ha XD
Reply
:icondragon0693:
dragon0693 Featured By Owner Jan 27, 2010  Hobbyist Artist
This is awesome. not only a simple art but can be playable as well. your AI is really smart and beat me
Reply
:iconveclock:
veclock Featured By Owner Jan 27, 2010  Student Digital Artist
Thanks :) hope you win sometime!
Reply
:icondragon0693:
dragon0693 Featured By Owner Jan 27, 2010  Hobbyist Artist
OK thanks i felt better
Reply
:iconturbocharge0:
Turbocharge0 Featured By Owner Jan 21, 2010
Cool bot ^^

How many moves ahead does it calculate or does it just brute force for the current position?

Either way great job... im currently making my own chess bot in flash but I havnt got round to the programing part yet...

Keep this up!
Reply
:iconveclock:
veclock Featured By Owner Jan 22, 2010  Student Digital Artist
thanks! It varies, usually it looks 3 moves ahead, but it can always check how many guards a piece has ect, so for some moves it look >3 moves ahead :)

I've made a java chess which beats this one. How's it going with yours? :) please tell me when you release it!
Reply
:iconturbocharge0:
Turbocharge0 Featured By Owner Jan 22, 2010
Well i'm not sure whether i'll ever get round to finishing it... I have like a million unfinish projects and i'm currently working on [link] but yeah if I ever get it finished we should make them play each other ^^

But now you've said you have a java based one i'm gonna have to see if I can beat that too ^^
Reply
:iconveclock:
veclock Featured By Owner Jan 22, 2010  Student Digital Artist
Yes, I also have a million unfinished projects. ^^ And a million ideas which I haven't tryed out yet
But it would be great to let them play each other if you finnish your chess engine :)
Reply
:iconturbocharge0:
Turbocharge0 Featured By Owner Jan 23, 2010
Such is the way of the programmer...

You say you have a java base chess game... I would very much like to play it but can't seem to find it ;)
Reply
:iconveclock:
veclock Featured By Owner Jan 23, 2010  Student Digital Artist
Oh I don't have it uploaded anywhere, I don't even know if it's possible to upload applets here on dA,
but if I make it good enough it would be possible to port it to flash :)
Reply
:iconturbocharge0:
Turbocharge0 Featured By Owner Jan 23, 2010
Ah right no probs ;)
Reply
:iconhehastacoes:
HeHasTacoes Featured By Owner Oct 22, 2009
AW I WON !


After 10 mins.
Reply
:iconveclock:
veclock Featured By Owner Oct 22, 2009  Student Digital Artist
nice! :D was it hard/easy?
Reply
:iconhehastacoes:
HeHasTacoes Featured By Owner Oct 22, 2009
Lol, no, its a 'technique' called: Sheepherding Check Mate (that's the name that my friend told me :D), basically, you win in 5 moves, google for it :D !


P.S. if you want to pwn normal persons on Chess, use it.
Reply
:iconveclock:
veclock Featured By Owner Oct 23, 2009  Student Digital Artist
You mean scholar's mate?
Didn't find anything on the other name
Reply
:iconhehastacoes:
HeHasTacoes Featured By Owner Oct 23, 2009
Nuh, know wut imma teach u, but not now, im @ school :B
Reply
:iconveclock:
veclock Featured By Owner Oct 23, 2009  Student Digital Artist
ok :) do it when u have time
Reply
:iconhehastacoes:
HeHasTacoes Featured By Owner Oct 23, 2009
Kay !
Reply
Add a Comment:
 
×




Details

Submitted on
September 21, 2009
Image Size
101 KB
Resolution
420×520
Link
Thumb
Embed

Stats

Views
9,031
Favourites
50 (who?)
Comments
86
Downloads
340
×