Widescreen Gaming Forum

[-noun] Web community dedicated to ensuring PC games run properly on your tablet, netbook, personal computer, HDTV and multi-monitor gaming rig.
It is currently 14 Dec 2024, 14:11

All times are UTC [ DST ]




Post new topic Reply to topic  [ 14 posts ]  Go to page Previous  1, 2
Author Message
 Post subject: PHP Game Grader...
PostPosted: 24 Aug 2006, 01:33 
Offline

Joined: 17 Aug 2006, 06:32
Posts: 17
I love the idea. Make sure you get with Cranky so that your grading system matches the one in place. I checked the board config and registered users should be able to post here. You just can't make a sticky or announcement (here, or anywhere).


yeah i pmed him i will start programing the back end calc once i get the math formual from him.


Top
 Profile  
 


 Post subject: PHP Game Grader...
PostPosted: 24 Aug 2006, 01:53 
Offline
Insiders
Insiders

Joined: 07 Nov 2005, 04:16
Posts: 3010
I misunderstood the intent of the PM at first. I thought he was just trying to *use* the rubrick. Not implement it in php.

I don't know php, but I do know c/c++. I'll write the outline of a simple console program. It should be fairly simple to understand and translate into php. Anyone who wants it is welcome to it.


Top
 Profile  
 
 Post subject: PHP Game Grader...
PostPosted: 24 Aug 2006, 15:51 
Offline

Joined: 17 Aug 2006, 06:32
Posts: 17
I misunderstood the intent of the PM at first. I thought he was just trying to *use* the rubrick. Not implement it in php.

I don't know php, but I do know c/c++. I'll write the outline of a simple console program. It should be fairly simple to understand and translate into php. Anyone who wants it is welcome to it.


no problem dude i was not vary clear. Thanks for the help! :D


Top
 Profile  
 
 Post subject: PHP Game Grader...
PostPosted: 24 Aug 2006, 22:36 
Offline
Insiders
Insiders

Joined: 07 Nov 2005, 04:16
Posts: 3010
I've finished the program. Anyone who wants it, please read the info below, then PM me with the request.

First thing, this program is incomplete. The logic functions are all there, but there are no input/output functions (I figure those would be need to be re-written from scratch in order to be done in php). There is also no main function. There is a struct called wsgame, which represents columns C-J for any given row in the spreadsheet. The important logical function is called "getGrade," which takes two inputs; a wsgame, and a boolean 'generous.' The output is the letter grade. If 'generous' is false, then optional unknowns will get filled in with the most common values. If 'generous' is true, the optional unknowns get filled in with the best possible values. The program also uses a TON of constants, in order to make it maintainable (should the requirements for getting a C grade change, one only has to redefine C_GRADE).

Anyway, in order to complete this, you would have to write the input and output functions yourself. The input function would take the user input to determine all of wsgame's values plus the generous value, and the output function would take the string produced by getGrade and display it on the screen. The basic program layout would look like this:

Code:

   init(/*OUTPUT*/ &wsgame)
   input(/*OUTPUT*/ &wsgame, &generous);
   getGrade(/*INPUT*/ wsgame, generous, /*OUTPUT*/ &grade);
   output(/*INPUT*/ grade);
   


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 14 posts ]  Go to page Previous  1, 2

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  




Powered by phpBB® Forum Software © phpBB Group