Author Topic: [VX/VX Ace] Chess Engine v2  (Read 6461 times)

Offline Abigail

  • Trained Member
  • *
  • Posts: 14
  • LV: 8
    • View Profile
[VX/VX Ace] Chess Engine v2
« on: May 19, 2014, 02:27:45 AM »
Chess Engine
For RPG Maker VX
by Abigaila

Download Chess.dll



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:

(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)
« Last Edit: June 04, 2014, 01:03:14 AM by Abigail »

Offline Zexion

  • Addicted to LoL
  • Chaos User
  • ******
  • Posts: 1519
  • LV: 69
  • Gender: Male
  • My anaconda don't...jk it does
    • View Profile
Re: [VX/VX Ace] Chess Engine
« Reply #1 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

Offline G_G

  • Green Gmod Game_Guy AKA G4 AKA hyper-G AKA G-force
  • Global Moderator
  • Chaos Ultimate
  • ****
  • Posts: 6591
  • LV: 407
  • Gender: Male
    • View Profile
Re: [VX/VX Ace] Chess Engine
« Reply #2 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, we can move it to the database.

This is a pretty cool idea, definitely going to have to play around with it. :3

Offline Abigail

  • Trained Member
  • *
  • Posts: 14
  • LV: 8
    • View Profile
Re: [VX/VX Ace] Chess Engine
« Reply #3 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 :)

Offline PhoenixFire

  • Moderator
  • Astral Trancist
  • ***
  • Posts: 918
  • LV: 6
  • Gender: Female
  • ~That's an interesting notion, in it's own way~
    • View Profile
Re: [VX/VX Ace] Chess Engine
« Reply #4 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.
Next off, how to create a first person shooter using microsoft excel.

<Remember when computers had turbo buttons?

Offline ShadowSaber

  • Trained Member
  • *
  • Posts: 35
  • LV: 7
    • View Profile
Re: [VX/VX Ace] Chess Engine
« Reply #5 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

Offline Blizzard

  • This sexy
  • Administrator
  • has over 9000 posts
  • *****
  • Posts: 20016
  • LV: 651
  • Gender: Male
  • Magic midgets.
    • View Profile
    • You're already on it. (-_-')
Re: [VX/VX Ace] Chess Engine
« Reply #6 on: May 21, 2014, 09:29:45 PM »
The VX or VXA one?
Check out Daygames and our games:

King of Booze      King of Booze: Never Ever      Pet Bots
Drinking Game for Android      Never have I ever for Android      Pet Bots for Android
Drinking Game for iOS      Never have I ever for iOS      Pet Bots for iOS
Drinking Game on Steam


Quote from: winkio
I do not speak to bricks, either as individuals or in wall form.

Quote from: Barney Stinson
When I get sad, I stop being sad and be awesome instead. True story.

Offline ShadowSaber

  • Trained Member
  • *
  • Posts: 35
  • LV: 7
    • View Profile
Re: [VX/VX Ace] Chess Engine
« Reply #7 on: May 23, 2014, 06:02:58 AM »
VXA one, please  :shy:

Offline orochii

  • Transcended Spirit
  • ***
  • Posts: 148
  • LV: 15
  • Rhapsody of the Warrior of Ice
    • View Profile
Re: [VX/VX Ace] Chess Engine
« Reply #8 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.

Offline Blizzard

  • This sexy
  • Administrator
  • has over 9000 posts
  • *****
  • Posts: 20016
  • LV: 651
  • Gender: Male
  • Magic midgets.
    • View Profile
    • You're already on it. (-_-')
Re: [VX/VX Ace] Chess Engine
« Reply #9 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.
« Last Edit: May 23, 2014, 07:46:42 AM by Blizzard »
Check out Daygames and our games:

King of Booze      King of Booze: Never Ever      Pet Bots
Drinking Game for Android      Never have I ever for Android      Pet Bots for Android
Drinking Game for iOS      Never have I ever for iOS      Pet Bots for iOS
Drinking Game on Steam


Quote from: winkio
I do not speak to bricks, either as individuals or in wall form.

Quote from: Barney Stinson
When I get sad, I stop being sad and be awesome instead. True story.

Offline Abigail

  • Trained Member
  • *
  • Posts: 14
  • LV: 8
    • View Profile
Re: [VX/VX Ace] Chess Engine
« Reply #10 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.

Offline Heretic86

  • Astral Trancist
  • *****
  • Posts: 776
  • LV: 33
    • View Profile
Re: [VX/VX Ace] Chess Engine
« Reply #11 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.
Current Scripts:
Heretic's Moving Platforms

Current Demos:
Collection of Art and 100% Compatible Scripts

(Script Demos are all still available in the Collection link above.  I lost some individual demos due to a server crash.)

Offline Abigail

  • Trained Member
  • *
  • Posts: 14
  • LV: 8
    • View Profile
Re: [VX/VX Ace] Chess Engine v2
« Reply #12 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.

:)

Offline Blizzard

  • This sexy
  • Administrator
  • has over 9000 posts
  • *****
  • Posts: 20016
  • LV: 651
  • Gender: Male
  • Magic midgets.
    • View Profile
    • You're already on it. (-_-')
Re: [VX/VX Ace] Chess Engine v2
« Reply #13 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?
Check out Daygames and our games:

King of Booze      King of Booze: Never Ever      Pet Bots
Drinking Game for Android      Never have I ever for Android      Pet Bots for Android
Drinking Game for iOS      Never have I ever for iOS      Pet Bots for iOS
Drinking Game on Steam


Quote from: winkio
I do not speak to bricks, either as individuals or in wall form.

Quote from: Barney Stinson
When I get sad, I stop being sad and be awesome instead. True story.

Offline Abigail

  • Trained Member
  • *
  • Posts: 14
  • LV: 8
    • View Profile
Re: [VX/VX Ace] Chess Engine v2
« Reply #14 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

Offline G_G

  • Green Gmod Game_Guy AKA G4 AKA hyper-G AKA G-force
  • Global Moderator
  • Chaos Ultimate
  • ****
  • Posts: 6591
  • LV: 407
  • Gender: Male
    • View Profile
Re: [VX/VX Ace] Chess Engine v2
« Reply #15 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.

Offline WhiteRose

  • Trying to code in Ruby
  • Moderator
  • Lexima Warrior
  • ***
  • Posts: 2339
  • LV: 127
  • Gender: Female
  • <3
    • View Profile
Re: [VX/VX Ace] Chess Engine v2
« Reply #16 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. :)

Offline Blizzard

  • This sexy
  • Administrator
  • has over 9000 posts
  • *****
  • Posts: 20016
  • LV: 651
  • Gender: Male
  • Magic midgets.
    • View Profile
    • You're already on it. (-_-')
Re: [VX/VX Ace] Chess Engine v2
« Reply #17 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
Check out Daygames and our games:

King of Booze      King of Booze: Never Ever      Pet Bots
Drinking Game for Android      Never have I ever for Android      Pet Bots for Android
Drinking Game for iOS      Never have I ever for iOS      Pet Bots for iOS
Drinking Game on Steam


Quote from: winkio
I do not speak to bricks, either as individuals or in wall form.

Quote from: Barney Stinson
When I get sad, I stop being sad and be awesome instead. True story.

Offline Abigail

  • Trained Member
  • *
  • Posts: 14
  • LV: 8
    • View Profile
Re: [VX/VX Ace] Chess Engine v2
« Reply #18 on: May 31, 2014, 09:39:19 AM »
Sure I can put that up :) I'll do it when I get home

Offline orochii

  • Transcended Spirit
  • ***
  • Posts: 148
  • LV: 15
  • Rhapsody of the Warrior of Ice
    • View Profile
Re: [VX/VX Ace] Chess Engine v2
« Reply #19 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.