RMRK is retiring.
Registration is disabled. The site will remain online, but eventually become a read-only archive. More information.

RMRK.net has nothing to do with Blockchains, Cryptocurrency or NFTs. We have been around since the early 2000s, but there is a new group using the RMRK name that deals with those things. We have nothing to do with them.
NFTs are a scam, and if somebody is trying to persuade you to buy or invest in crypto/blockchain/NFT content, please turn them down and save your money. See this video for more information.
Chess

0 Members and 1 Guest are viewing this topic.

**
Rep: +0/-0Level 90
Ok, this may seem like an odd request, but I want a Chess Script. I'm making a game called Chess Wars, where basically you play chess against many people. The only problem is, I can't figure out how to make it so that each chess chess figure obly moves in the pattern it's supposed to. This is a really complex script, but if anyone could help I'd be very thankfull.

****
Rep:
Level 91
Wow...that u need is not so simple.
(and your signature is so strange...)
Btw for the chess script we must try to find something or try to make it
I'm the Alpha and the Omega, the First and the Last, the Beginning and the End.

http://qualquek.miniville.fr/
http://www.dailymotion.com/bookmarks/ojah/video/x27l78_jake-simpson-stevie-wonder-isnt-she_music

My padawan (Tsunokiette) and me :p
http://www.team-aaa.com/root/profile.php?enter_id=614556
http://www.esl.eu/fr/player/2609080/
I'm French so forgive my bad english!

pokeball zxmOfflineMale
*
Astronaut Raticate Banana
Rep:
Level 92
Pineapple Line Colour
If were going to, wouldn't you have to have A.I.?

****
Rep:
Level 91
i've posted a script for A.I. fo ennemy maybe we can use this for chess
I'm the Alpha and the Omega, the First and the Last, the Beginning and the End.

http://qualquek.miniville.fr/
http://www.dailymotion.com/bookmarks/ojah/video/x27l78_jake-simpson-stevie-wonder-isnt-she_music

My padawan (Tsunokiette) and me :p
http://www.team-aaa.com/root/profile.php?enter_id=614556
http://www.esl.eu/fr/player/2609080/
I'm French so forgive my bad english!

**
Rep: +0/-0Level 90
Yes, that might work, but we'd still have to have the peices move correctly ex: knight move in the shape of an "L"

****
Rep:
Level 91
Yep it's true...that's will be a little more difficult but possible
I'm the Alpha and the Omega, the First and the Last, the Beginning and the End.

http://qualquek.miniville.fr/
http://www.dailymotion.com/bookmarks/ojah/video/x27l78_jake-simpson-stevie-wonder-isnt-she_music

My padawan (Tsunokiette) and me :p
http://www.team-aaa.com/root/profile.php?enter_id=614556
http://www.esl.eu/fr/player/2609080/
I'm French so forgive my bad english!

**
Rep: +0/-0Level 90
Please, if anyone can help me with this, I'd be extremely grateful.

******
Rep:
Level 91
you can do it using events, giving moving options so on, using move events.
not allowing to choose spots that another tool event of your side is in (by conditional branches) and make a conditional branch of if opponent event is on a square you walk on then opponent event is erased.

the main problems are:
defining king's lock (checkmate)
but possible i think

making the "computer" act like he knows the game
the easy solution is to randomize his moves and try to move the king when another tool got aim on it, but that will make him easy and i doubt he can really save himself under that condition for more than 1-2 turns

basicly for the a.i you need loads of hours and you need to be a good chess player seeing as only a good chess player can tell you what's best to do in what situation ,and then you need to condition every move possible

in total..
hours over hours of work, no matter if you use events or a script since each case have to be setted on it's own.

(so that's hours of work.. as for tool moving.. that's easy.. give the player his legal options each time... need to move 2 up 1 right or 2 up and then 1 left , give him 3 options like:
move to F5
move to F7
Choose another tool )
holy shit my sig was big!

***
Rep:
Level 90
man sounds hard but im a good chess player so if u need any help with the situation things im your man.
Yay i got a zoo sort of
 


*
Resident Cloud
Rep:
Level 91
ive never lost a game of chess so again if you need any help with the rules like wildrj i can also help :)

*
? ? ? ? ? ? ? ? ? The nice kind of alien~
Rep:
Level 92
Martian - Occasionally kind
I would say you should script it. It seems easier that way.
If you choose to script it I would suggest this immediate approach:

A ChessBoard-class

A Piece-class that should ave a child for each type of piece (knight, king, e.g.)

So the class-hierarchy would look somewhat like:

Bishop -->
King -->
Knight --> Piece --> ChessBoard
Pawn -->
Queen -->
Rook    -->

Where Piece don't extends ChessBoard, but is only used by it.
This of course, would only be the start. The model.

*
I love Firerain
Rep:
Level 97
=D
Instead of a script make a real long event page.
I made a chess game with that.
Make a hero touch and many move options.
It worked for me!
Arlen is hot.

***
Rep:
Level 90
YEAH BUT A REALLY LONG EVENT PAGE GETS CONFUSING AFTER A WHILE LETS SAY U MAKE AN MISTAKE IN THE EVENT SOPMEWHERE IT WILL BE KINDA HARD TO FIND SRRY OF ALL CAPS IN A HURRY.
Yay i got a zoo sort of