JustinTimeCuber
Legend
Okay, terribly un-descriptive title, but anyway...
This afternoon I started working on this project, and it is finished enough that it works. (For other mediocre programmers, you know what I'm talking about
) There are still some things to work out, but what does it do, and why did I spend (more like waste) a whole afternoon on it?
First, the why. I am going to Nationals soon, and I wanted an efficient way for my mom (my dad is taking me) to see my times. To make this idea become a reality, I didn't start with the code; instead, I started with creating an XML file, so I had an idea how my data would be organized. So, how does it work? In the XML file, you set it up with opening and closing <display> tags, and within that, 3 more: <rounds>, <messages>, and <countdown>. In the <rounds> tag, you add one or more <round> tag(s), each with certain attributes. The <messages> tag contains messages, and the <countdown> tag contains data about the countdown display, that shows how long until whatever it is I want to count down to. Here is an example of what my file looks like:
This file is uploaded on Google Drive, and I can access it in my program using a direct link. My program has a simplistic GUI. Here are some images:
Tomorrow evening, I plan to release my program and give details on how to use it. You probably will need some knowledge of computer stuff in order for it to make much sense.
This afternoon I started working on this project, and it is finished enough that it works. (For other mediocre programmers, you know what I'm talking about
First, the why. I am going to Nationals soon, and I wanted an efficient way for my mom (my dad is taking me) to see my times. To make this idea become a reality, I didn't start with the code; instead, I started with creating an XML file, so I had an idea how my data would be organized. So, how does it work? In the XML file, you set it up with opening and closing <display> tags, and within that, 3 more: <rounds>, <messages>, and <countdown>. In the <rounds> tag, you add one or more <round> tag(s), each with certain attributes. The <messages> tag contains messages, and the <countdown> tag contains data about the countdown display, that shows how long until whatever it is I want to count down to. Here is an example of what my file looks like:
<display>
<rounds>
<round name="6x6x6 Round 1" date="29" hour="9" minute="00" heat="1" advance="n" times="4:27.09" average=" " place="109"></round>
<round name="Megaminx Round 1" date="29" hour="9" minute="00" heat="1" advance="#" times="#" average="#" place="#"></round>
<round name="Square-1 Round 1" date="29" hour="10" minute="30" heat="1" advance="#" times="#" average="#" place="#"></round>
<round name="7x7x7 Round 1" date="29" hour="10" minute="30" heat="1" advance="#" times="#" average="#" place="#"></round>
<round name="Clock Round 1" date="29" hour="13" minute="00" heat="1" advance="#" times="#" average="#" place="#"></round>
<round name="5x5x5 Round 1" date="29" hour="13" minute="00" heat="1" advance="#" times="#" average="#" place="#"></round>
<round name="3x3 OH Round 1" date="29" hour="15" minute="00" heat="1" advance="#" times="#" average="#" place="#"></round>
<round name="Skewb Round 1" date="29" hour="15" minute="00" heat="1" advance="#" times="#" average="#" place="#"></round>
<round name="FMC Atmpt. 1" date="29" hour="19" minute="00" heat="1" times="#" average="N/A" place="N/A"></round>
<round name="FMC Atmpt. 2" date="30" hour="9" minute="00" heat="1" times="#" average="N/A" place="N/A"></round>
<round name="4x4x4 Round 1" date="30" hour="9" minute="30" heat="1" advance="#" times="#" average="#" place="#"></round>
<round name="Pyraminx Round 1" date="30" hour="9" minute="30" heat="1" advance="#" times="#" average="#" place="#"></round>
<round name="2x2x2 Round 1" date="30" hour="13" minute="30" heat="1" advance="#" times="#" average="#" place="#"></round>
<round name="3x3x3 Round 1" date="30" hour="13" minute="30" heat="1" advance="#" times="#" average="#" place="#"></round>
<round name="FMC Atmpt. 3" date="30" hour="19" minute="00" heat="1" times="#" average="#" place="#"></round>
</rounds>
<countdown year="2016" month="7" date="29" hour="8" minute="0">Beginning of Nationals</countdown>
<messages>
<message time="17:00 CDT; Dec 31, 1969">This is Justin's online Nationals stats program. Messages sent from Justin will appear here </message>
</messages>
</display>
<rounds>
<round name="6x6x6 Round 1" date="29" hour="9" minute="00" heat="1" advance="n" times="4:27.09" average=" " place="109"></round>
<round name="Megaminx Round 1" date="29" hour="9" minute="00" heat="1" advance="#" times="#" average="#" place="#"></round>
<round name="Square-1 Round 1" date="29" hour="10" minute="30" heat="1" advance="#" times="#" average="#" place="#"></round>
<round name="7x7x7 Round 1" date="29" hour="10" minute="30" heat="1" advance="#" times="#" average="#" place="#"></round>
<round name="Clock Round 1" date="29" hour="13" minute="00" heat="1" advance="#" times="#" average="#" place="#"></round>
<round name="5x5x5 Round 1" date="29" hour="13" minute="00" heat="1" advance="#" times="#" average="#" place="#"></round>
<round name="3x3 OH Round 1" date="29" hour="15" minute="00" heat="1" advance="#" times="#" average="#" place="#"></round>
<round name="Skewb Round 1" date="29" hour="15" minute="00" heat="1" advance="#" times="#" average="#" place="#"></round>
<round name="FMC Atmpt. 1" date="29" hour="19" minute="00" heat="1" times="#" average="N/A" place="N/A"></round>
<round name="FMC Atmpt. 2" date="30" hour="9" minute="00" heat="1" times="#" average="N/A" place="N/A"></round>
<round name="4x4x4 Round 1" date="30" hour="9" minute="30" heat="1" advance="#" times="#" average="#" place="#"></round>
<round name="Pyraminx Round 1" date="30" hour="9" minute="30" heat="1" advance="#" times="#" average="#" place="#"></round>
<round name="2x2x2 Round 1" date="30" hour="13" minute="30" heat="1" advance="#" times="#" average="#" place="#"></round>
<round name="3x3x3 Round 1" date="30" hour="13" minute="30" heat="1" advance="#" times="#" average="#" place="#"></round>
<round name="FMC Atmpt. 3" date="30" hour="19" minute="00" heat="1" times="#" average="#" place="#"></round>
</rounds>
<countdown year="2016" month="7" date="29" hour="8" minute="0">Beginning of Nationals</countdown>
<messages>
<message time="17:00 CDT; Dec 31, 1969">This is Justin's online Nationals stats program. Messages sent from Justin will appear here </message>
</messages>
</display>
This file is uploaded on Google Drive, and I can access it in my program using a direct link. My program has a simplistic GUI. Here are some images:
Tomorrow evening, I plan to release my program and give details on how to use it. You probably will need some knowledge of computer stuff in order for it to make much sense.