Programming Forums
User Name Password Register
 

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

Reply
 
Thread Tools Display Modes
Old Nov 2nd, 2006, 1:17 AM   #1
physicist
Hobbyist Programmer
 
Join Date: Oct 2006
Posts: 146
Rep Power: 3 physicist is on a distinguished road
Chess rating organizer

My second real program (BTW first one was a test creator taker and can be found at: www.sreenathpillai.frih.net/TestApp0.1a.rar)
is a chess rating organizer made for our school chess team (which i am the leader of). the rar archive contains the exe, instructions, and a whole ton of text files for different players. The instructions are simple so just use that as a reference to edit players names and add or take away players
works really well
comments go to sreenathpillai@gmail.com
program is at www.sreenathpillai.frih.net/simplechessprog.rar
physicist is offline   Reply With Quote
Old Nov 2nd, 2006, 9:22 PM   #2
physicist
Hobbyist Programmer
 
Join Date: Oct 2006
Posts: 146
Rep Power: 3 physicist is on a distinguished road
i guess no one has any use of this....
physicist is offline   Reply With Quote
Old Nov 2nd, 2006, 10:14 PM   #3
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
When I extracted it, I got nada, although the archive says the file inside has a whole 4 bytes. Super compression. Are you implementing the ELO rating system, or what?
__________________
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 Nov 2nd, 2006, 11:17 PM   #4
The Dark
Expert Programmer
 
Join Date: Jun 2005
Posts: 894
Rep Power: 4 The Dark is on a distinguished road
I had a quick look at the code, but I don't have any need for a chess organizer.
However, it did seem odd that it reads the data for each person out of a file and displays it on the screen, then asks the user to type the same information back in again. It even asks the user to look at the extracted info first. Why wouldn't the program just read the rating in and leave it at that?
The Dark is offline   Reply With Quote
Old Nov 3rd, 2006, 7:59 PM   #5
physicist
Hobbyist Programmer
 
Join Date: Oct 2006
Posts: 146
Rep Power: 3 physicist is on a distinguished road
Quote:
Originally Posted by DaWei View Post
When I extracted it, I got nada, although the archive says the file inside has a whole 4 bytes. Super compression. Are you implementing the ELO rating system, or what?
i dunno what you are talkin about...the file itself is 100KB and the files are about 500KB extracted
it looks like the dark got it so i dunno if you got the wrong file or what
its at this link: http://www.sreenathpillai.frih.net/simplechessprog.rar
physicist is offline   Reply With Quote
Old Nov 3rd, 2006, 8:02 PM   #6
physicist
Hobbyist Programmer
 
Join Date: Oct 2006
Posts: 146
Rep Power: 3 physicist is on a distinguished road
Quote:
Originally Posted by The Dark View Post
I had a quick look at the code, but I don't have any need for a chess organizer.
However, it did seem odd that it reads the data for each person out of a file and displays it on the screen, then asks the user to type the same information back in again. It even asks the user to look at the extracted info first. Why wouldn't the program just read the rating in and leave it at that?
because i dont know how to make it store the contents of the file (string) as an integer. can i ofstream and make it read the contents and store it to an int? i mean as of now the program treats it like a string.
it still works the way it is now, but i guess that would reduce the file size by 200kb and speed up execution a bit. Thanks for the input
physicist is offline   Reply With Quote
Old Nov 3rd, 2006, 9:50 PM   #7
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
My PowerArchiver must be corrupted. I tried again, no joy. You can convert file text to numbers in the same way you can input from stdin. You can also use string streams.
__________________
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 Nov 4th, 2006, 11:12 PM   #8
physicist
Hobbyist Programmer
 
Join Date: Oct 2006
Posts: 146
Rep Power: 3 physicist is on a distinguished road
use winRAR
physicist 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
Computer Based Chess Timer ZeeMan Other Programming Languages 6 Oct 29th, 2006 10:43 PM
chess algorithm n00b Software Design and Algorithms 6 Oct 17th, 2006 8:19 PM
Chess function Cabochon C 16 Apr 26th, 2006 10:20 AM
Rating system is kinda obsolete... Broax Community Announcements and Feedback 9 Feb 16th, 2005 8:34 PM




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

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