Advertisement

How to program a chess: a forum based tutorial

Started by December 23, 2004 11:09 PM
276 comments, last by da_grat1 19 years, 8 months ago
Quote:
I'm currently setting up some more ui stuff to make our lives a bit easier.

lol.. :) ..great.. I am glad that you worried about our lives aswell..:)

Quote: By the end of today I should have the main game screen and the main game menu done.

wow... we are going really fast this time.. I thought the game menu was supposed to be done on the 23th "23rd - Game menu is complete"
but you said it can be done by today... this is super... that means we could finish this game before 27th.. is that possible to happen llvllatrix? :)
Hey guys,

I'm kinda burnt out right now but I got a lot of progress done on the game. I have the game's state machine setup and it's functioning nicely. I also have some button classes, which I'm currently using to quit the application as well as a nifty loading screen.

I could so a release now but I'm going to hold off until tomorrow. I can get both the main and sub menus out of the way. The main reason I dont want to release now is because its not excatly visually stunning. I know with a bit more work I can get something running that will drop your jaw ;)

Till then,
- llvllatrix
Advertisement
Quote: I know with a bit more work I can get something running that will drop your jaw ;)


lol.. I better prepare myself before I run the application.. I really scared that I might drop my jaw.. lol... :) ..that means the main menu almost done.. after that, what is next.. are we going to make the pieces move, I think need to verify the move aswell, eg something like knight can only move in 'L' shape if wrong move is made..error will occur..
llvllatrix.. anything for today... can this game really be completed within the time schedule... :)
Hey guys,

Servers went down at waterloo yesterday so I couldnt get this up until just now:
http://www.eng.uwaterloo.ca/~rramraj/Gamedev/chess_tutorial/src_tree/chess_src.zip

Have fun, and more importantly, ask questions :),
- llvllatrix
lol... great... the first thing I saw your logo.. :) you appear in the game..

static void draw_new_button_up(const float & left, const float & right, 					    const float & bottom, const float & top){	// Add the caption	game_res_draw_button_text(new_game, left, right, bottom, top);	// Draw the button using standard drawing methods	game_res_draw_button_up(left, right, bottom, top);}static void draw_new_button_over(const float & left, const float & right, 						  const float & bottom, const float & top){	// Add the caption	game_res_draw_button_text(new_game, left, right, bottom, top);	// Draw the button using standard drawing methods	game_res_draw_button_over(left, right, bottom, top);}

I just want to know where did you learn how to create the button or from the above code.. is it everything inside the SDL tutorial... ?

I thought this game can be played already.. lol.. can it be finished before 27... I really want to play it... my hand is itchy already.. :) this game can play with player 2 also right...?
Advertisement
The place where most of the excitement happens is in the context processing code (ctx). This is the place you should look to figure out how to use the engine.

Quote:
I just want to know where did you learn how to create the button or from the above code.. is it everything inside the SDL tutorial... ?


The ui system is a combination of several systems mostly loaded in the resources part of the engine. The resource system has three components. res_ui_controls sets up the drawing area so that we can draw ui to it. res_ui_draw_controls wraps the "current" functions that are used to draw the controls. This way, you can switch between ui drawing routines and still have a fully set of automated classes. res_ui_classes implements the logic behind the button.

Quote:
this game can play with player 2 also right...?


I'm going to leave that up to you guys :) (its not that hard).

Cheers,
- llvllatrix
Quote: I'm going to leave that up to you guys :) (its not that hard).

llvllatrix... do mean that there is no functions for player vs player? so that means this game only can play with computer... is it..?
Quote:
llvllatrix... do mean that there is no functions for player vs player? so that means this game only can play with computer... is it..?


lol, it may look that way, but the beowulf chess wrapper is very powerful. It knows who's turn it is. So all you have to do for player vs player is just not call the ai routine to calculate the next move. It should take you about 5 mins to make the beowulf engine do player vs player. You can also do ai vs ai :).

Cheers,
- llvllatrix
It knows who's turn it is. So all you have to do for player vs player is just not call the ai routine to calculate the next move. It should take you about 5 mins to make the beowulf engine do player vs player. You can also do ai vs ai :).


in beowulf folder, there is a book.dat.. is that the AI engine.. how did he create the book.. wat is inside the book..
and there is also beowulf.dll..in order to play the game we must include the beowulf.dll.. is that so?
if we want to play player vs player, do we need to use the beowulf.dll aswell?
can't we create our own move..

there is another thing i want to know :) ..when is the game available to play... :) it's on the 27th right? right? :)

[Edited by - da_grat1 on March 24, 2005 11:54:24 PM]

This topic is closed to new replies.

Advertisement