Help?? How to draw chessboard on a form?
-
Hi guys i want to know how to draw a chessboard on a form. any idea?
-
Hi guys i want to know how to draw a chessboard on a form. any idea?
I think the best way to do that is to make your own custom control (derived from CWnd). Look at the section in the MFC for miscellaneous controls to get some examples of custom controls.
-
I think the best way to do that is to make your own custom control (derived from CWnd). Look at the section in the MFC for miscellaneous controls to get some examples of custom controls.
well thanks for reply. i am trying to create sudoku solver and needs some grid kind of control. Opps! it looks like i have to pull nights again.right!
-
well thanks for reply. i am trying to create sudoku solver and needs some grid kind of control. Opps! it looks like i have to pull nights again.right!
:) That's funny because some weeks ago I started to make a Sudoku game and I made already a small control for the grid. There is not a lot of things in it and it is still a little bit uggly but if you are interested, I can send you the code (not now because it is at home). But I stopped the project because I couldn't find a good way to hide some specific cells in order to have a specific solution grid (generating the grid was ok). But don't expect a control with excellent graphics ;)
-
:) That's funny because some weeks ago I started to make a Sudoku game and I made already a small control for the grid. There is not a lot of things in it and it is still a little bit uggly but if you are interested, I can send you the code (not now because it is at home). But I stopped the project because I couldn't find a good way to hide some specific cells in order to have a specific solution grid (generating the grid was ok). But don't expect a control with excellent graphics ;)
i am happy to know you too are intrested in sudoku. well i'll be glad to have a look at your grid control. pl. send it to this email add(vikramsharma @ gawab.com) thanks again for help
-
Hi guys i want to know how to draw a chessboard on a form. any idea?
Why don't you maintain a matrix to draw the Chess board. All blacks are 0's and all whites are 1's.
Jesus Loves:rose:
--Owner Drawn:rose: --Nothing special --Defeat is temporary but surrender is permanent --Never say quits --Jesus is Lord:rose:
-
well thanks for reply. i am trying to create sudoku solver and needs some grid kind of control. Opps! it looks like i have to pull nights again.right!
-
Why don't you maintain a matrix to draw the Chess board. All blacks are 0's and all whites are 1's.
Jesus Loves:rose:
--Owner Drawn:rose: --Nothing special --Defeat is temporary but surrender is permanent --Never say quits --Jesus is Lord:rose:
maintain a matrix to draw the Chess board i see! nice idea. can you let me know how to drow this way. I guess : -create 2D array. -fill it -create rect, do maths, then create rectangles. but is this ok for sudoku like game where i have to insert numbers in the rectangles. pl. let me know. thanks for idea and reply
-
maintain a matrix to draw the Chess board i see! nice idea. can you let me know how to drow this way. I guess : -create 2D array. -fill it -create rect, do maths, then create rectangles. but is this ok for sudoku like game where i have to insert numbers in the rectangles. pl. let me know. thanks for idea and reply
Look at the link Rage submitted you. It seems that this control is far more better and complete than the one I made. I suggest that you download the source code and have a look at it.
-
Have you seen that : http://www.codeproject.com/useritems/XSudokuWnd.asp[^] ~RaGE();
opps! you are really good at information providing. good man. you are mind blowing dude. you redirected me to heaven. thanks a lot.
-
Look at the link Rage submitted you. It seems that this control is far more better and complete than the one I made. I suggest that you download the source code and have a look at it.
ok. well thanks for your reply and advice. you guys are really angels. you helped me a lot.:)
-
Have you seen that : http://www.codeproject.com/useritems/XSudokuWnd.asp[^] ~RaGE();
Cheers hans...
Jesus Loves:rose:
--Owner Drawn:rose: --Nothing special --Defeat is temporary but surrender is permanent --Never say quits --Jesus is Lord:rose:
-
:) That's funny because some weeks ago I started to make a Sudoku game and I made already a small control for the grid. There is not a lot of things in it and it is still a little bit uggly but if you are interested, I can send you the code (not now because it is at home). But I stopped the project because I couldn't find a good way to hide some specific cells in order to have a specific solution grid (generating the grid was ok). But don't expect a control with excellent graphics ;)
Cedric Moonen wrote:
That's funny because some weeks ago I started to make a Sudoku game...
I love that game, and play it every chance I get. I even suggested to our local newspaper to start running it. The editor said I was the first to suggest it, which is a polite way of saying, "Snce the interest is so low, probably not." About a month or so later, I saw the first puzzle! Whether I had anything to do with it or not, I'll never truly know.
"The words of God are not like the oak leaf which dies and falls to the earth, but like the pine tree which stays green forever." - Native American Proverb