CHESSBOARD using JAVA graphics
By
codiction on
Aug 4th, 2008 1:29 am This particular snippet will display a chessboard in a new frame. Needless to say save it in a file named "chessboard.java".
Related Article: Java Graphics Rotation
is a solved Java discussion thread by gunjannigam that has 7 replies and was last updated 2 years ago.
I don't get it, its pretty pointless, but does show how to draw things.
I'm building a 3D chessboard which should be useful, but its too big to fit as a code snippet.
cms271828
Junior Poster
124 posts since Oct 2006
Reputation Points: 20
Solved Threads: 4
Skill Endorsements: 0
the code is pretty useful for knowing how to draw frames e.tc
srvstv.prnc
Newbie Poster
16 posts since Jun 2009
Reputation Points: 10
Solved Threads: 1
Skill Endorsements: 0
Nice code.
Small point: a 'real' chess board needs orientating with a light square in the bottom right hand corner
(so just swop around the colour values in the code will display a properly orientated chessboard-perhaps programmers are not chess players!
Also use different colour keywords for the squares as b & w are a bit dull!
Now all it needs are coordinates adding around the board edge and some draggable pieces graphics and it can become a GUI to add a chess engine to-easy really LOL!)
Thanks
rpdDW
Newbie Poster
1 post since May 2009
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0
any1 plz help me........
where i can find the code of complete simple* chess game.........
*only two player can play the game...no AI....
thnk you
mundvawala
Newbie Poster
14 posts since Apr 2010
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0
© 2013 DaniWeb® LLC
Page rendered in 0.0712 seconds
using 2.65MB