![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Programmer
Join Date: Mar 2006
Posts: 60
Rep Power: 3
![]() |
Chess board interface
I'm coding a chess computer and I need some pointers on how to create a decent board interface. What I have right now is 64 labels with numbers to represent pieces (1 for a white pawn, 2 for a white knight, and so on). I want real looking pieces with drag'n'drop to move them. (This is purely a question about graphics, the internal stuff and how the board communicates with the internal is no problem.)
(edit: actually, just reading about dragging and dropping may give me what I need. Maybe not, just thought I'd mention that.) Last edited by Xyhm; May 4th, 2007 at 9:41 PM. |
|
|
|
|
|
#2 |
|
Hobbyist Programmer
Join Date: Oct 2006
Posts: 146
Rep Power: 3
![]() |
well, if delphi is anything like VB.net (which i think it is, you talk about labels and stuff) just use pictureboxes....
|
|
|
|
|
|
#3 |
|
Programmer
Join Date: Mar 2006
Posts: 60
Rep Power: 3
![]() |
That's the solution I've chosen for the moment. I have one picture for each possible combination (every white and black piece against a background of either white or black), and simply display pictures in accordance with the internal board. That's good enough, though it isn't drag'n'drop (I create the moves by clicking on the move-from and move-to square), and the pieces aren't separate from the background. But it'll do for now.
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Computer Based Chess Timer | ZeeMan | Other Programming Languages | 6 | Oct 29th, 2006 9:43 PM |
| test | lostcauz | Coder's Corner Lounge | 9 | Jul 18th, 2006 3:20 PM |
| Help. Sudoku Board Generation Algorithm | Manan | C++ | 32 | Jun 30th, 2006 5:33 AM |
| cool interface looks in VB | gpreetsingh | Visual Basic .NET | 2 | Feb 8th, 2006 9:02 AM |
| Interface design? | AusTex | Java | 2 | Jul 4th, 2005 1:46 AM |