Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Oct 29th, 2006, 1:35 PM   #1
ZeeMan
Newbie
 
Join Date: Oct 2004
Posts: 10
Rep Power: 0 ZeeMan is on a distinguished road
Computer Based Chess Timer

I am an ameture chess player and I like to play chess with my fiends. However, one thing we are lacking is a chess timer. I do not want to go out and buy a chess timer and since I like to program, I decided I wanted to program one. I do not need any help with code just yet. However, what I do need help with is knowing the features a good, quality chess timer would have.
For example:
  • Does the timer need to display halves/quarters/tenths/hundreths/thoundandths/etc. of a second?
  • Does it need to have a log that keeps track of how much time each move took?
  • Does it need to display how many moves have taken place?
  • Does it need to have per-move time limits (e.g. can only take 30 seconds per move and only 10 minutes overall?)
I don't know much about timed chess and so all of this I would like to find out. The language I am programming this in is fairly simple and will not stop me from doing any of this I think. Any help is appreciated!

(BTW, I am not writing a chess game. I don't need help with how to program the chess board to have squares or how to let the knight move or how to program all the rules. None of this is neccessary as my program is only a timer.)
ZeeMan is offline   Reply With Quote
Old Oct 29th, 2006, 2:27 PM   #2
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
Have you considered checking into what various chess timers do? As in Google chess timers.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Old Oct 29th, 2006, 3:21 PM   #3
ZeeMan
Newbie
 
Join Date: Oct 2004
Posts: 10
Rep Power: 0 ZeeMan is on a distinguished road
Yes, but so far, this has only yielded sites that sell chess timers. I have looked at them I understand their basic functionality (it's pretty straightforward, each player has an allotted amount of time with which to play and to finish his turn). What I want to know is what other things these timers do. I've seen some of the more expensive timers on the market and noticed how they have tons of features that can all be manipulated with only three buttons.

My eventual goal is to release this as freeware or shareware for people who cannot afford a regular timer.

I also have a new question. How can I differentiate between the different shift/control/alt buttons?
I want the interface to be the keyboard where when you are done with your move, you press the shift key and it goes to the other player. Does each key have a different keycode or will both shift keys produce the same result?
ZeeMan is offline   Reply With Quote
Old Oct 29th, 2006, 3:33 PM   #4
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
Funny; I went to that link, picked a site, clicked for more info, and downloaded a complete user's manual. I have the feeling that you're trying to get your work done for you (including defining what your clock should do), as some basic research would reveal what keyboards for different platforms and OSes do. Programming is more than coding.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Old Oct 29th, 2006, 5:15 PM   #5
pal
Programmer
 
pal's Avatar
 
Join Date: Mar 2005
Location: Washington
Posts: 90
Rep Power: 4 pal is on a distinguished road
check out wikipedia, they have good resources on many things, such as "game clock" you're trying to research.
pal is offline   Reply With Quote
Old Oct 29th, 2006, 8:27 PM   #6
bl00dninja
Programming Guru
 
bl00dninja's Avatar
 
Join Date: Oct 2004
Location: namespace std
Posts: 1,246
Rep Power: 5 bl00dninja is on a distinguished road
these things do their thing modulo (whatever was defined). every 30 secs or every 45 secs...whatever. learn about modulus, (repeating orders), or just move your fucking queen and hope to get lucky.
__________________
i put on my robe and wizard hat...

Have you ever heard of Plato, Aristotle, Socrates?...Morons.
bl00dninja is offline   Reply With Quote
Old Oct 29th, 2006, 9:43 PM   #7
titaniumdecoy
Expert Programmer
 
titaniumdecoy's Avatar
 
Join Date: Nov 2005
Posts: 855
Rep Power: 3 titaniumdecoy is on a distinguished road
Send a message via AIM to titaniumdecoy
Why don't you pretend you're going to buy a chess timer, and see what's out there?
titaniumdecoy is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
test lostcauz Coder's Corner Lounge 9 Jul 18th, 2006 3:20 PM
what is computer programming? pal Coder's Corner Lounge 14 Dec 9th, 2005 10:22 AM
.NET Timer Form closing issue MBirchmeier C# 4 Nov 21st, 2005 10:00 AM
How to program a timer? linuxpimp20 Other Programming Languages 9 Jul 5th, 2005 4:32 AM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 4:20 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC