Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

I wanna play a game...

I've noticed that there are chess pieces in RMXP, but...How do you program a chess game?  It's not THAT improtant to my game, but it would really help.  Can anyone show me how?

Also, I would like to do this by using events only...but if scripting is required (which I doubt, since they give you the char-set) then I'll use any script you can give me.  Please respond.

FanDoSheckle~
 
I don't think you really know what scripting is, as you think that scripting gets you the graphics, but anywho...
you can make a chess game using events, but it would be awfully hard and take awfully long, especially as, well...

so a script would be needed. But to be honest, I dont think anyone has made it.

I have however easily made a tic tac toe game using events, if it helps.
 
"How do you program a chess game"...  I'm assuming, in this case, that you can handle the basic mechanics of moving the chess pieces around.  That part's not too complicated, except for details like capturing pawns en passant.

Yes, that's the easy part.

Since you didn't say that it was a two-player game, presumably, you'd be playing the computer.  So you'd want an AI for the chess playing of the computer.

A good start here is to try to write it out on paper first-- work out what process the computer will use to decide which moves to make, and how it will respond to any given move in any given situation that will come up in the game.


...


I realize that's mean of me, but that's what's involved in "making a chess game."  It can be done, but it's not simple, not quick, and not easy.  (I use the chess pieces occasionally, when I need something different for an arbitrary blocking obstacle, for example.)  But making a chess playing program is, by itself, a major operation, and not something to undertake lightly.
 
Bradleydfc - What I meant was that it's implied you wouldn't need a script, since RMXP is supposed to let you make a game without making your own script, so since they give you the graphics for chess, I figured maybe it would be easy to create a game with events.  I know what scripting is.  On a side note, the tic tac toe thing could work too, instead of chess!  Really, all I wanted was a minigame of some kind.  Could you teach me how to do that?

Unka Josh - Sounds complicated...I'll abandon the chess idea.  The Tic Tac Toe thing sounds a lot easier...
 
To play games against the computer, it needs to have somekind of intelligence.

The easiest way is to base it on yourself. How do you think?

If that piece is there and that one there, but that one isn't there and blabla.

It's just a bunch of If and If.
 
One conventional way of making chess AI is the Game Tree. If you are not at least somewhat knowledgeable at scripting/programming, chances are that it is next to impossible. I had an assignment to do a tic tac toe AI once, being a nub it gave me quite a headache.
 
I actually took my hand at this once.  I kind of made it work but the AI was horrible and the special moves like en passant and where you switch the rook and king or whatever it is (havent played chess in like two years) didn't work.  Basically the computer's pieces were just 16 conditional branches with 64 separate conditional branches in them.  Obviously, CRAPLOAD of work.  Took about 3 months to make.  Basically in the conditional branches if said piece (one of the original 16) is on said square (the 64 branches) then that piece would make a certain move.


It didn't work well and sometimes the computer would like move a queen right where a pawn could take it so it seriously didnt work well enough to release.



There HAS to be an easier way to do it, but i couldnt figure it out, so....=/
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top