11-20-2005, 08:36 AM
greetings,
i needed to write some sort of sample for drv and my gamelib ( basically fbgfxlib rip of + homebrew networklibrary ) so i thought a networked chess would be nice
http://ratatoskr.dragonhill.cc/temp/chess.rar
that's what i got after 2 nights of coding. it's missing the check for the check mate condition ( but it has a check for the check condition, if a move of you would put your king in check it's not allowed -> you can't move ). it also misses rochad and the "get your pawn at the end of the board and win a free queen" thingy.
other than that it has local player mode ( 2 ppl on one pc ) and multiplayer mode, where one has to be the server and the other one the client.
you will get prompted at the beginning what mode you want to play int
+ l for local mode ( 2 players on the same pc )
+ s for server mode ( will wait until a client connects )
+ c for client mode ( will try to connect to a server at the ip you pass it )
the server is always white, the client black. you can see who's turn it is in the bottom left corner. to move your pieces click on it and it well get marked red. next click where you want to move your unit. drag and drop is NOT implemented ( might be in the next version due to popular demand... )
any bug reports appreciated
i needed to write some sort of sample for drv and my gamelib ( basically fbgfxlib rip of + homebrew networklibrary ) so i thought a networked chess would be nice
http://ratatoskr.dragonhill.cc/temp/chess.rar
that's what i got after 2 nights of coding. it's missing the check for the check mate condition ( but it has a check for the check condition, if a move of you would put your king in check it's not allowed -> you can't move ). it also misses rochad and the "get your pawn at the end of the board and win a free queen" thingy.
other than that it has local player mode ( 2 ppl on one pc ) and multiplayer mode, where one has to be the server and the other one the client.
you will get prompted at the beginning what mode you want to play int
+ l for local mode ( 2 players on the same pc )
+ s for server mode ( will wait until a client connects )
+ c for client mode ( will try to connect to a server at the ip you pass it )
the server is always white, the client black. you can see who's turn it is in the bottom left corner. to move your pieces click on it and it well get marked red. next click where you want to move your unit. drag and drop is NOT implemented ( might be in the next version due to popular demand... )
any bug reports appreciated