Chess minigame

I am a chess nut and love it a lot. I want to share my love of the sport with others and see the cool side of the chess. Can any scripter help me create a Chess minigame where you play as white against black (ai)? The AI does not have to be tournament level but I'd prefer it not be ed either. 
could you provide further information on own you want to make this ?

example like do you want this to be played on the map or such?
There has to be an algorithm out there for system AI (actually, they are pretty hard to beat). I'm curious how this can be applied to RMaker :3 But 2 Players chess shouldn't be hard to event.
could you provide further information on own you want to make this ?

example like do you want this to be played on the map or such?
What ever would make a most authentic looking chess game on Ace. 

 

There has to be an algorithm out there for system AI (actually, they are pretty hard to beat). I'm curious how this can be applied to RMaker :3 But 2 Players chess shouldn't be hard to event.
 

I do not care for 2 player mode, this is not going to be a complex chess game. It's a minigame to beat a computer opponent. However, I want it to have all the regular chess rules

 

 

- Towering

- En Passant

- Promotion

- Draw from repeating same move too many times, inability to make a move or not enough pieces for checkmate.

- Pieces acting like they should (King's have to be 1 away from each other, etc)
I'd like to see that mini-game, as I play chess too xD I have an account on chess.com with the username M_Marsigne xD what's your rating by the way? xD
the most difficult is the AI. 😀 . i've seen some people write chess script in ACE before. just forgot where i found it. but it's not completed yet with lots of bugs on the movement. and NO AI. 😀 .

just now i google and found this:

http://forum.chaos-project.com/index.php/topic,14158.0.html

maybe it's good enough (it have AI and use dll). i'll try it too btw 😀 .

edit: the dll download link is missing. but there's a no dll version. hope it works 😀
AI for chess is called a "chess engine".

There are some open source out there, I am not sure if there is also one for Ruby though.

Most of them are in DLL format so there might be a way Ruby can collaborate with them.

But make sure you can handle exceptions using code. 😛

Chess is really math. How good the math that the engine does is, makes the engine better.

An engine usually makes infinite recursive updates on evaluation of the available moves.

This infinity is stopped by a trigger.

The trigger could be an equation (scores of possible moves don't change anymore) or a time limit (after 3 minutes max) whatever comes first.

You know that what you ask is really complex, right! 😀

Finding an open source engine is vital to make your life easier.

For your reference:

https://chessprogramming.wikispaces.com/Open+Source+Engines

http://www.craftychess.com/
the most difficult is the AI. 😀 . i've seen some people write chess script in ACE before. just forgot where i found it. but it's not completed yet with lots of bugs on the movement. and NO AI. 😀 .

just now i google and found this:

http://forum.chaos-project.com/index.php/topic,14158.0.html

maybe it's good enough (it have AI and use dll). i'll try it too btw 😀 .

edit: the dll download link is missing. but there's a no dll version. hope it works 😀
If that's the one that I saw posted on RPG Maker VX Ace, it lacks towering and many other functionality. It's really ghetto version of chess. 
Chess AI is really, really hard to do. Good luck to anyone who will attempt it. I know I stopped when I tried. :u
This would be a LOT of fun to script xD, but since I lose to easy mode chess games, I would probably do a terrible AI xD.


It has been mentioned, but I'll say it again, you could use already made A.I from DLLs to script, there might be a lot of DLLs which where made to put in a chess game.


The fun thing here is, the better you play chess and if your a good coder, the better will be the AI, some friends on brazilian community were doing a chess game, I'll check them ou t to see if they are close to finishing it.
This would be a LOT of fun to script xD, but since I lose to easy mode chess games, I would probably do a terrible AI xD.
I could help make a good AI myself if there's way to add formulas and strategies for it. For instance, I'd make it so that the AI tries to go into Towering before turn 10 always when possible.
This would be a LOT of fun to script xD
 If you try coding such a thing, you will regret saying that, trust me. 😛
Still would need this.  🙂

Original thread: https://forums.rpgmakerweb.com/threads/chess-minigame.37713/