Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

2D All the way! / Chess game

Author
Message
whipped6
19
Years of Service
User Offline
Joined: 31st Aug 2006
Location:
Posted: 21st Sep 2006 05:10
Hello im new here but i also know the basics i just need some help i also have some questions can u build lobbies in DBC if you dont know what a lobby is it is a chat with the game inside it type thing also i really need help from you guys i hate to ask this but will someone be kind enough to guide me through making a basic chess game

you dont know how much that will improve my programming skills... i hope you can help

game creator
DarkMasta
20
Years of Service
User Offline
Joined: 21st Apr 2006
Location: Typed on your screen.
Posted: 21st Sep 2006 09:16 Edited at: 21st Sep 2006 09:17
First of all, write in sentences. (Nice avatar.) And please, I still don't get what a lobby is: A chat during a game, a game chat, a... chatroom?

That chess game you want to make will need a quite elaborate A.I., which I find is the most difficult aspect of programming, since you need to give the computer an answer to each situation...

How about beginning with designing figures and the board?

Wherever you plan to go,
it's the next step you never know.
Van B
Moderator
23
Years of Service
User Offline
Joined: 8th Oct 2002
Location: Sunnyvale
Posted: 21st Sep 2006 11:36
Chess AI is not the be-all, end-all or anything at all.

That's why such low performance processors can run it, like those little chess computers.

Consider this, each piece has a value, and that value is ascertained by putting a piece in one of the middle squares (there's 4) - then count how many moves each piece can make starting from there.

A knight is 8, a pawn is 1, and the king should be 1000, because it should be more powerfull than the whole board put together so it's an ultimate goal.

Now, imagine you have a big list of every possible move you can make - it's fairly easy to do this, say an array of moves - by buffering the current board, then performing each move and calculating the board score, you can check a big list of moves, and select the highest scoring move. Things get more complicated when you look into opposing moves, but that's chess AI in a nutshell.

I'm working on a chess game part time, on my laptop - well I should say it's the 3rd chess game I've started, but within 2 days I had it playing chess with itself, not smart - just the most obvious moves, but for 2 days work you can't ask for more.

Best bet is to just get stuck in - but don't expect a major lesson in anything except data management.

''Stick that in your text and scroll it!.''
whipped6
19
Years of Service
User Offline
Joined: 31st Aug 2006
Location:
Posted: 22nd Sep 2006 02:30
i really just need help moving sprites with the mouse thats all i need help with...

game creator
indi
23
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 18th Oct 2006 19:32
the sprite command has two variables to manage the position, one for the x and one for the y
the mouse x() and mouse y() commands take the mouse co-ordinates from the screen.
you could combine the two by applying the mouse commands inside the variables of the sprite command.
this is a very basic approach to get you thinking.

2D Analyst
AGK Developer
22
Years of Service
User Offline
Joined: 2nd May 2004
Location:
Posted: 19th Oct 2006 03:33 Edited at: 23rd Oct 2006 22:08
bring it to the next level by incorporating online play...

www.simpoware.com

Login to post a reply

Server time is: 2026-07-08 01:53:52
Your offset time is: 2026-07-08 01:53:52