Chaos Project

RPG Maker => RPG Maker Scripts => Topic started by: Abigail on May 19, 2014, 02:27:45 AM

Title: [VX/VX Ace] Chess Engine v2
Post by: Abigail on May 19, 2014, 02:27:45 AM
Chess Engine
For RPG Maker VX
by Abigaila

Download Chess.dll (http://www.sendspace.com/file/yq80j5)



What is this?
(click to show/hide)



How to use? IMPORTANT
(click to show/hide)




Script (graphical interface)

Put this image in your game folder, name it pieces.png:
(http://.png)
(click to show/hide)




DLL-free version (V1):
This version is made entirely with RPG Maker scripts and doesn't rely on a dll. It is much weaker as a player though.
(click to show/hide)
Title: Re: [VX/VX Ace] Chess Engine
Post by: Zexion on May 19, 2014, 04:26:35 AM
Great first impression on this forum Abigail. I know you from Rmrk, sooo I know of the way you came to the scene lol!
Seems cool, I'll check this out in a little while when im not as distracted :b
Title: Re: [VX/VX Ace] Chess Engine
Post by: G_G on May 19, 2014, 05:02:54 AM
I'm going to move this to RGSS forums. Since this is a script and it's RPG Maker. If you'd like to apply the template (http://forum.chaos-project.com/index.php/topic,17.0.html), we can move it to the database.

This is a pretty cool idea, definitely going to have to play around with it. :3
Title: Re: [VX/VX Ace] Chess Engine
Post by: Abigail on May 19, 2014, 10:50:18 AM
Great first impression on this forum Abigail. I know you from Rmrk, sooo I know of the way you came to the scene lol!
Seems cool, I'll check this out in a little while when im not as distracted :b

Thanks, hoping to not do the same mistakes :)
Title: Re: [VX/VX Ace] Chess Engine
Post by: PhoenixFire on May 20, 2014, 12:34:05 AM
Did you find the link I sent you to on here helpful? Hopefully it gave you an idea where to start with removing the dependencies.
Title: Re: [VX/VX Ace] Chess Engine
Post by: ShadowSaber on May 21, 2014, 09:15:55 PM
can someone upload the file to other filehosting?
it seems my isp won't allow download from speedyshare
Title: Re: [VX/VX Ace] Chess Engine
Post by: Blizzard on May 21, 2014, 09:29:45 PM
The VX or VXA one?
Title: Re: [VX/VX Ace] Chess Engine
Post by: ShadowSaber on May 23, 2014, 06:02:58 AM
VXA one, please  :shy:
Title: Re: [VX/VX Ace] Chess Engine
Post by: orochii on May 23, 2014, 07:32:37 AM
Just wanted to pass and congratulate you, because making a real AI is one of those things that I fear the most. xD.
Title: Re: [VX/VX Ace] Chess Engine
Post by: Blizzard on May 23, 2014, 07:45:31 AM
Here you go. http://www.sendspace.com/file/q5gca4

EDIT: How did I not see this.

Great first impression on this forum Abigail. I know you from Rmrk, sooo I know of the way you came to the scene lol!
Seems cool, I'll check this out in a little while when im not as distracted :b

Thanks, hoping to not do the same mistakes :)

I started out at RMRK as well.
Title: Re: [VX/VX Ace] Chess Engine
Post by: Abigail on May 23, 2014, 05:00:17 PM
Just wanted to pass and congratulate you, because making a real AI is one of those things that I fear the most. xD.

Thanks :) I'm working on a new version that will be much stronger and C++ powered via Win32API.

Here you go. http://www.sendspace.com/file/q5gca4

EDIT: How did I not see this.

Great first impression on this forum Abigail. I know you from Rmrk, sooo I know of the way you came to the scene lol!
Seems cool, I'll check this out in a little while when im not as distracted :b

Thanks, hoping to not do the same mistakes :)

I started out at RMRK as well.

:D

Sorry for being lazy and not fixing the thread up with template and downloads and whatnot, but It'll all be much prettier when I put up the new version in a few days.
Title: Re: [VX/VX Ace] Chess Engine
Post by: Heretic86 on May 24, 2014, 02:26:16 AM
I know you had Finals recently, which are far more important.  Just take your time and do it right.  That also means dont edit the post for proper Template Formatting at the expense of your Finals.
Title: Re: [VX/VX Ace] Chess Engine v2
Post by: Abigail on May 31, 2014, 12:50:20 AM
I updated this. It now uses C++ for all of the calculations and does the interface in RGSS. This not only makes the engine much stronger, it also makes the scripts cleaner in my opinion.

:)
Title: Re: [VX/VX Ace] Chess Engine v2
Post by: Blizzard on May 31, 2014, 02:52:42 AM
Nice work. Did you use some simple look-ahead algorithm with a certain number of turns to check or did you implement some more advanced heuristics for the AI?
Title: Re: [VX/VX Ace] Chess Engine v2
Post by: Abigail on May 31, 2014, 03:06:38 AM
Nice work. Did you use some simple look-ahead algorithm with a certain number of turns to check or did you implement some more advanced heuristics for the AI?

Thanks :)

The heart of it is a simple negamax algorithm. It uses iterative deepening and stops after time runs out. I tried implementing a principal variation heuristic but I am unsure whether it worked or not. Any and all tips are very appreciated :D
Title: Re: [VX/VX Ace] Chess Engine v2
Post by: G_G on May 31, 2014, 03:45:55 AM
It'd be kind of cool to release the source code for the C++ too. It might help/inspire some people.
Title: Re: [VX/VX Ace] Chess Engine v2
Post by: WhiteRose on May 31, 2014, 03:54:03 AM
It'd be kind of cool to release the source code for the C++ too. It might help/inspire some people.

Unless you're opposed to it, I also think this is a good idea. I'm no C++ expert, but I'd love to look over your code and see what I can learn. :)
Title: Re: [VX/VX Ace] Chess Engine v2
Post by: Blizzard on May 31, 2014, 08:50:22 AM
In this case you probably want to put the entire setup for compilation in a rar file or something as well. xD
Title: Re: [VX/VX Ace] Chess Engine v2
Post by: Abigail on May 31, 2014, 09:39:19 AM
Sure I can put that up :) I'll do it when I get home
Title: Re: [VX/VX Ace] Chess Engine v2
Post by: orochii on May 31, 2014, 06:01:28 PM
Heheh, excuse me but, what is the format for the pieces.png, a.k.a. the image with the piece graphics? I think it's missing at the main post. :P.
Title: Re: [VX/VX Ace] Chess Engine v2
Post by: Abigail on May 31, 2014, 07:16:48 PM
Heheh, excuse me but, what is the format for the pieces.png, a.k.a. the image with the piece graphics? I think it's missing at the main post. :P.

Oops sorry :) Added it
Title: Re: [VX/VX Ace] Chess Engine v2
Post by: LiTTleDRAgo on July 15, 2014, 10:57:35 PM
it seems the dll can't be used in Windows XP

(http://i.imgur.com/Rwy8Rxk.jpg)
Title: Re: [VX/VX Ace] Chess Engine v2
Post by: Blizzard on July 16, 2014, 07:26:40 AM
Yeah, Windows XP's kernel doesn't have this function. You have to use GetTickCount().