Hi Makers,
I'm thinking of writing a chess-like, turn-based strategy minigame into my next project.
I'm very keen for your recommendations about which existing plugins might be useful when I do this, to avoid having to reinvent the wheel.
I've used a lot of Yanfly's plugins before and found them very helpful.
Thanks for any ideas or comments you can offer. Hopefully I've posted this in the right place!
I did some thinking around, conditionalBranch+ plugin is helpfull.
a fully AI is probably the hardest part which both should check
for variable XY for each piece, and when to set is able to make.
a couple of pieces like teh image above is the best way, otherwise
a plugin with parameters to make it work.
but it aint easy to do and require some JS knowledge if you want
something to play fully.
specially while for the horse part that need a home position and check
for an L move, or the walker for the the diagonal path.
I dont see a easy way to do it though, but good luck anyway 🙂
you might be able to make teh field with regionID , but a full chess board
require a plugin, event it out would be nearly impossible.
I have created board games and card games, text adventures and scoreboard games with RPG maker... But a chess system? Now that is a challenge. (To be honest... I thought the other systems I made were a challenge too, until I made them. Then I thought them to be easy. Hahaha.)
I have thought about a full on chess system before, but that is like 999 steps further than a simple around the board dice game... Anyhow, how I would go about it with only use of yanfly plugins. (Since I have no knowledge of an existing chess plugin)
I've been thinking about a chess system before, and the best way I could think of, is for each piece-type × each square on the board, you have to pre-program all possible moves. Then, once you have done that (and probably are weeks or even months ahead) you could should add conditions to rule out moves when other pieces are in the way.
That part, that is by far the most work intensive part... By far! It is not hard, but it is a lot of work. Literally 100's of entrees per chess piece. However... You only have to do the bishops once, the rooks once etc. You do not have to do this for each rook on the board, since they all move the same way.
Once you've done that, need to add a bunch of more conditions (again for each piece on the board, this time all 32 of them) to see if they check the opponent king. This is less work, since you've don't most of it already in the previous steps.
When that is done, you basically have yourself a PvP chess game. From here on, making an AI is not that hard, depending on your own chess skills. What you can do is give all different types of move a score (exposing one of your pieces is a lower score, threatening your opponents pieces is a higher score) and then have the AI make the move with the highest score.
It really is not too difficult once you know what to do... It is just so much work. If you start today and work 10 hours a day, you might be done before summer vacation starts. 😛
(I am fully aware there might be simpeler ways, for those who know javascript or any other programming language... But I don't have that. So I would have to take to long way.)
Good luck... And if you happen to find a complete chess plugin after all, even if it is just PvP, then I would just love to hear about it. I wouldn't mind making an awesome chess game.
Thanks for the suggestions everybody, this definitely gives me enough confidence to make a start and see how far I get!
Your topic got me started on a chess engine myself. 😛 I just want to see if I can do it. 😛
Yes, that is how all my projects start off: I just want to see if I can do it. 😛 Haha. I did a lot of research on the topic in the past few weeks, and not I think I am ready to actually do it.