Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

need script for chess

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
please help on a script for chess or blackjack or both thanks
 
do we look like santa claus ?
keep dreaming someone knowledge ends where
someone else knowledge starts
 
At least the visitor didn't ask for peace in the Middle East or a cure for cancer. My manager thinks that JavaScript can do that, if he just asks.
[peace] Einstein47
(Love is like PI - natural, irrational, endless, and very important.)
 
"do we look like santa claus?"
"At least the visitor didn't ask for peace in the Middle East or a cure for cancer."
[rofl]

serverpimp, why don't you goto and look for an example of this. It is possible and not too hard, my friend made blackjack, and it was not too bad.

However, chess. HA! Ya right, that would take a long time and alot of effort to program.
colorado.gif
"Quest for the Cup - 2002!"​
 
Hi all,

I started on a chess script in JS a while ago. The script involved a LOT of objects, which each had their own methods for movement. (Each piece, the board, preferably a clock and a system to keep track of the game are some of the objects required)

It all worked great. I was able to make the pieces move as they should, I could use a piece to take another, ...

But, after a while, when I wanted to add opponent AI, it became WAY to complex and demanding for JS to handle.
It seems to me that JS simply isn't designed for such heavy processing. (I wrote the script about 2 years ago, so things might have changed by now, but I doubt it).

Possibly, you could add server scripting and make it into a multiplayer game. (which wouldn't also be easy to do)

So basically, if you want Chess, don't use JS, maybe Java would be a sollution. Otherwise, stick to BlackJack, which is much easier to do. :p

Gtz,

Kristof
 
just to u guy's know
they is 2.5e+117 posible move in a 40 move game
so they no time in a life time to do such task with js
so went i said "do we look like santa"
i was asuming the visitor wanted the AI
sorry if i was rude... someone knowledge ends where
someone else knowledge starts
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top