Chess minigame

Tuomo L

Oldbie
Veteran
Joined
Aug 6, 2012
Messages
2,326
Reaction score
1,286
First Language
Finnish
Primarily Uses
RMMV
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. 
 

nio kasgami

VampCat
Veteran
Joined
May 21, 2013
Messages
8,949
Reaction score
3,042
First Language
French
Primarily Uses
RMMV
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?
 

Kyuukon

主人公
Veteran
Joined
Aug 22, 2013
Messages
2,216
Reaction score
1,078
First Language
Spanish
Primarily Uses
RMMV
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.
 

Tuomo L

Oldbie
Veteran
Joined
Aug 6, 2012
Messages
2,326
Reaction score
1,286
First Language
Finnish
Primarily Uses
RMMV
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)
 
Last edited by a moderator:

Marsigne

Veteran
Veteran
Joined
Sep 7, 2013
Messages
1,834
Reaction score
4,642
First Language
No
Primarily Uses
N/A
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
 

estriole

Veteran
Veteran
Joined
Jun 27, 2012
Messages
1,309
Reaction score
531
First Language
indonesian
the most difficult is the AI. :D . 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. :D .

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 :D .

edit: the dll download link is missing. but there's a no dll version. hope it works :D
 
Last edited by a moderator:

_Shadow_

Tech Magician Level:
Moderator
Joined
Mar 2, 2014
Messages
4,078
Reaction score
2,654
First Language
Greek
Primarily Uses
RMMZ
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. :p

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! :D

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/
 

Tuomo L

Oldbie
Veteran
Joined
Aug 6, 2012
Messages
2,326
Reaction score
1,286
First Language
Finnish
Primarily Uses
RMMV
the most difficult is the AI. :D . 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. :D .

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 :D .

edit: the dll download link is missing. but there's a no dll version. hope it works :D
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. 
 

Raizen

Veteran
Veteran
Joined
Oct 24, 2012
Messages
381
Reaction score
660
First Language
Portuguese
Primarily Uses
RMMV
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.
 
Last edited by a moderator:

Tuomo L

Oldbie
Veteran
Joined
Aug 6, 2012
Messages
2,326
Reaction score
1,286
First Language
Finnish
Primarily Uses
RMMV
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.
 

Tuomo L

Oldbie
Veteran
Joined
Aug 6, 2012
Messages
2,326
Reaction score
1,286
First Language
Finnish
Primarily Uses
RMMV
Still would need this.  :)
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,862
Messages
1,017,050
Members
137,571
Latest member
grr
Top