Research Log of Web Science Students

Computer Science is not simply programming

XML draft and Sending of Scores

with 2 comments

MyMathventures, WEdGE, Pitch Paradise, KineSpell2 and I discussed what we should do with our XML. We’ve decided to separate the necessary game info as needed by the PSPortal group from the game data. We’ve commented all optional tags so that PSPortal can distinguish the differences between games. MyMathVentures also finished the sending of xml data to the portal, thus, we can reuse this module for all our games.

* Note that all optional tags can be omitted by other games.

<WSG_EDUGAME name=" " version = " ">
        <GAME_NAME> gameName </GAME_NAME>
        <VERSION> game_version </VERSION>
	<PLAYER>
                <USERNAME> userName </USERNAME>
                <FULL_NAME> name </FULL_NAME> // optional tag
                <SCHOOL> playerSchool </SCHOOL> // optional tag
                <EMAIL_ADDRESS> emailAddress </EMAIL_ADDRESS> // optional tag
	</PLAYER>
	<ASSESSMENT>
		<GAME_INFO>
			<DATE_PLAYED>
				<DATE>month/day/year</DATE>
				<TIME_PLAYED>hh:mm:ss</TIME_PLAYED>
			</DATE_PLAYED>
			<CATEGORY>category</CATEGORY>
			<TIME>
				<TOTAL_GAME_TIME> hh:mm:ss </TOTAL_GAME_TIME>
				<AVERAGE_TIME_PER_LEVEL> hh:mm:ss </AVERAGE_TIME_PER_LEVEL> // optional tag
 			        <AVERAGE_TIME_PER_QUESTION> hh:mm:ss </AVERAGE_TIME_PER_QUESTION>	// optional tag
			</TIME>

                        <GAME_LEVEL name="easy"> // if there are no levels, we can use the tag <GAME_LEVEL>
                                              // which automatically sets the name="default"
			          <NO_OF_CORRECT_ITEMS> numCorrectItems </NO_OF_CORRECT_ITEMS>
		 	          <TOTAL_GAME_SCORE> gameScore </TOTAL_GAME_SCORE>
                        </GAME_LEVEL>
		</GAME_INFO>
		<GAME_DATA>
			<GAME_LEVEL name="easy"> //default tag means "default"
				<CORRECT_ITEMS>
					<ITEM>
						<QUESTION_ID> qId </QUESTION_ID>
						<ANSWER> answer </ANSWER>
						<TOTAL_TIME_ANSWERED> hh:mm:ss <TOTAL_TIME_ANSWERED>  // optional tag
						<NUMBER_OF_TRIES> numTries </NUMBER_OF_TRIES> // optional tag
					</ITEM>
				</CORRECT_ITEMS>
				<INCORRECT_ITEMS>
					<ITEM>
						<QUESTION_ID> qId </QUESTION_ID>
						<C_ANSWER> corAnswer </C_ANSWER>
						<P_ANSWER> playerAnswer </P_ANSWER> // optional tag
						<TOTAL_TIME_ANSWERED> hh:mm:ss <TOTAL_TIME_ANSWERED>  // optional tag
						<NUMBER_OF_TRIES> numTries </NUMBER_OF_TRIES> // optional tag
					</ITEM>
				</INCORRECT_ITEMS>
			</GAME_LEVEL>
		</GAME_DATA>
	</ASSESSMENT>
</WSG_EDUGAME></code>

Advertisements

Written by rururu

March 11, 2010 at 10:52 pm

Posted in Augmented Reality

Tagged with

2 Responses

Subscribe to comments with RSS.

  1. Ate Ru, bakit nasa loob ng tag ‘yung ?

    Angelica Gomez

    March 13, 2010 at 5:07 am

  2. Ate Ru, bakit nasa loob ng GAME_LEVEL tag ‘yung TOTAL_GAME_SCORE?

    Angelica Gomez

    March 13, 2010 at 5:09 am


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: