The Daily Click ::. Forums ::. Klik Coding Help ::. CHESS...
 

Post Reply  Post Oekaki 
 

Posted By Message

KevinHaag



Registered
  28/01/2005
Points
  266

VIP Member
3rd May, 2005 at 12:19:00 -

Is chess possible in click? Ive been workin on it but id like to know if anyone has attempted this before and if so how far they got.

 
Image
http://www.kevinhaag.ca

Zi-Xiao



Registered
  29/07/2002
Points
  537

VIP Member
3rd May, 2005 at 12:27:37 -

Its very possible.
I dunno if a chess game has been made but I know theres checkers and some other boards games. Chess shouldn't be too much harder than checkers.

The only problem I could think of when doing a chess game would be the AI: Maybe you could store a database of possible situations and how the computer would react to it. These reactions would be ranked in terms of their effectiveness. Then on the computers turn get it to scan each of the computer's piece for different situations and possible moves it could make, and execute the best ranking move. This solution is far from perfect but I suppose its worth a shot.

Making a chess game would be alot easier/practical to do in a scripting language thou. Especially since mmf doesn't support (as far as I know) basic data structures like trees, stacks, queues etc etc....

 
n/a

David Newton (DavidN)

Invisible

Registered
  27/10/2002
Points
  8322

Honored Admin Alumnus
3rd May, 2005 at 12:30:42 -

It's possible to simulate stacks and queues using a List item, but iterating through them is difficult.

Chess is possible in Click, but is a very complex game for a computer to play (or adjudicate) no matter what the language.

 
http://www.davidn.co.nr - Games, music, living in America

ChrisB

Crazy?

Registered
  16/08/2002
Points
  5457
3rd May, 2005 at 12:46:56 -

Chess has been done but only in 2-player.


(n.b. MMF supports double ended queues (which takes care of stacks as well) but trees would introduce complexity it probably can't handle.)

 
n/a

Zi-Xiao



Registered
  29/07/2002
Points
  537

VIP Member
3rd May, 2005 at 12:50:46 -

Well if you could use trees, AI at least using the method I mentioned would be alot easier if not more efficient. Although I have no idea how the list object works (guessing its like a list in any programming language) but 'simulating' it in mmf would probably be horribly inefficient unless the list object actually has functions to read the top/bottom item. But yeah, chess isn't easy though it IS possible. Maybe u should just make a 2 player chess .

*edit*
how does mmf support double ended queues? Care to elaborate? Could be useful in my next game.

Image Edited by the Author.

 
n/a

KevinHaag



Registered
  28/01/2005
Points
  266

VIP Member
3rd May, 2005 at 14:31:24 -

I wanna know where i can play that two player click chess.


 
Image
http://www.kevinhaag.ca

ChrisB

Crazy?

Registered
  16/08/2002
Points
  5457
3rd May, 2005 at 15:24:42 -

http://www.clickteam.info/extensions/extview.php?id=13

 
n/a

KevinHaag



Registered
  28/01/2005
Points
  266

VIP Member
3rd May, 2005 at 15:35:39 -

Thats not two player chess!!

 
Image
http://www.kevinhaag.ca

Zi-Xiao



Registered
  29/07/2002
Points
  537

VIP Member
3rd May, 2005 at 16:05:20 -

he was responding to my request for info on queues

*edit*
thanks for the link

I'm just looking at the description now. At a library computer so I can't really try it. *sigh* exam weeks dictate that I must live in the library . Anyways I'll have to experiment with the plugin later.

Image Edited by the Author.

 
n/a

Crystal Clear (H.E.S)

Possibly Insane

Registered
  06/10/2002
Points
  2548
4th May, 2005 at 02:49:22 -

Chess is VERY possible, an Online chess game was made awhile ago and a fellow clicking firend of mine i recall him once telling me how he did an Isometric chess game and it was pretty damn hard, but it worked great, but i dont think he ever released it but i do have a screenie of it he sent me awhile ago.

 
HES homepage:
http://www.distinctiv-efair.com/heretic/studios
Crystal Clear Productions: http://www.distinctiv-efair.com/heretic/crystalclear

Muz



Registered
  14/02/2002
Points
  6499

VIP MemberI'm on a BoatI am an April FoolHonored Admin Alumnus
4th May, 2005 at 03:52:30 -

Yeah, I remember putting one of them online chess games on the fun page. 'Twas fun and very professsional, even if I always lost.

 
Disclaimer: Any sarcasm in my posts will not be mentioned as that would ruin the purpose. It is assumed that the reader is intelligent enough to tell the difference between what is sarcasm and what is not.

Image

KevinHaag



Registered
  28/01/2005
Points
  266

VIP Member
4th May, 2005 at 09:11:19 -

But where can i play it!!!???

 
Image
http://www.kevinhaag.ca

axel

Crazy?

Registered
  05/02/2005
Points
  4766

Game of the Week WinnerYou've Been Circy'd!
4th May, 2005 at 09:49:49 -

i searched DC and couldn't find that chess game you're talking about. Has it been deleted?

 
n/a

Cybermaze



Registered
  03/04/2003
Points
  853
6th May, 2005 at 04:37:25 -

Well ... I cannot bring much new to the scene, as others have allready explained it is of course possible to do a chess game in click TGF/MMF. Just like you can do a card game or other board game.

The real challenge about chess is the AI (if you want that). That is extremely difficult to do. The trouble about chess is the limitless combinations that are way too many to record.

Instead you should go with a kind of "rating system" and some generel guidelines that detect what state the game is in.

The should generally be 3 states the game can be in:

1. Opening: This is when the game begins. You could code the AI to know the most wellknown openings and variants. As long as the game follows a known opening, the moveorder is dictated by the opening.

2. Middle: When the game position falls outside a known opening, the AI moves on to the middle of the game. Here the AI should first of all try to develop its remaining officers (if any). And now follows the hard part.

In the middle of the game is where the real action takes place. Overall the AI have to try and defend itself as well as attack the opponent. Depending on wether the AI is black or white and the playstyle of the opponent (agressive/defensive), the AI should try to play clever.

A few rules here is:
1. Dont "sell" yout pieces (place them where they will be taken for free).
2. Try to plan ahead (only analyzing one move ahead is often too little).
3. And a lot thumb rules any decent chess players knows.

This is really to hard part to do.

3. End: Which consists of two things:

1. The AI should try to find check mate solutions (when in middle mode).
2. The AI should detect "end" conditions. The game is in end mode, for instance if the AI has a queen and king left and the opponent a king. In this situation, the AI should know how to do check mate. There are more combinations that should be known of course, but Im sure you can figure it out.

All in all it is going to be one hell of a coding

 
If you knew, I would have to kill you...

axel

Crazy?

Registered
  05/02/2005
Points
  4766

Game of the Week WinnerYou've Been Circy'd!
6th May, 2005 at 05:19:20 -

No offence, kevin, but making a chess game is pretty damn hard and complicated. Unless you make it 2 player online/LAN.

 
n/a

Assault Andy

Administrator
I make other people create vaporware

Registered
  29/07/2002
Points
  5686

Game of the Week WinnerVIP Member360 OwnerGOTM JUNE - 2009 - WINNER!GOTM FEB - 2010 - WINNER!	I donated an open source project
6th May, 2005 at 16:52:49 -

Even if you make it 2 Player, it's still a challenge to make your game check every piece for things like checkmates.

 
Creator of Faerie Solitaire:
http://www.create-games.com/download.asp?id=7792
Also creator of ZDay20 and Dungeon Dash.
http://www.Jigxor.com
http://twitter.com/JigxorAndy

Arf :: FPP Games



Registered
  15/05/2002
Points
  1364
9th May, 2005 at 18:49:59 -

I made a working engine once using just active objects that could correctly look for checkmates and stuff. What's much harder is to look for potential checkmates, ie not letting the player move his pawn because then the other player's bishop would put him in check, that sort of thing. I did work out ways of doing most of it though, but the engine just got too comlex and confusing so it eventually ground to a halt. I'm sure it's possible.

 
n/a
   

Post Reply



 



Advertisement

Worth A Click