Author Topic: Flag Database CSE  (Read 6427 times)

0 Members and 2 Guests are viewing this topic.

Offline tifreak

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2708
  • Rating: +82/-3
  • My Kung Fu IS strong...
    • View Profile
    • TI-Freakware
Flag Database CSE
« on: June 20, 2014, 07:15:20 am »
I started working on this after looking through some of the comics done by Scandinavia and the World, and couldn't figure out what flags went for which country. Here are some screenshots of testing a few of the flags as I was converting them to hex:





Once I got all the flags converted over to hex (206 of them, took a while) I started in on the actual program and got the quiz portion working now:





When you get an answer correct, it says so in green lettering and highlights the answer in green as well. If you get it wrong, the answer you chose is highlighted in red, and the correct answer is highlighted in green.


So, for the time being, I'm dealing with the 206 country flags I found at http://en.wikipedia.org/wiki/Gallery_of_sovereign_state_flags and later down the road I'll see about adding in the 50 state flags and any historical flags I can find. I am hoping to find time to set up some form of database like setup to be able to pick from a name, or maybe choose a number, to see what flags go with which country.
Projects: AOD Series: 75% | FFME: 80% | Pokemon: 18% | RPGSK: 60% | Star Trek: 70% | Star Trek 83+: 40% | TI-City: 5%

Offline Eiyeron

  • Urist McEiyolobster
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1430
  • Rating: +130/-10
  • (-_(//));
    • View Profile
    • Rétro-Actif : Rétro/Prog/Blog
Re: Flag Database CSE
« Reply #1 on: June 20, 2014, 07:54:27 am »
Nice work! Nice flags!

Offline Sorunome

  • Fox Fox Fox Fox Fox Fox Fox!
  • Support Staff
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 7920
  • Rating: +374/-13
  • Derpy Hooves
    • View Profile
    • My website! (You might lose the game)
Re: Flag Database CSE
« Reply #2 on: June 20, 2014, 07:57:38 am »
Haha, that's pretty awesome! Nice flags indeed :P

THE GAME
Also, check out my website
If OmnomIRC is screwed up, blame me!
Click here to give me an internet!

Offline tifreak

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2708
  • Rating: +82/-3
  • My Kung Fu IS strong...
    • View Profile
    • TI-Freakware
Re: Flag Database CSE
« Reply #3 on: June 20, 2014, 08:23:51 am »
Thanks guys :) I think that most of the flags look pretty awesome, there are a few that didn't come out so well because of the high level of detail in them. Hopefully people find this program useful. :)
Projects: AOD Series: 75% | FFME: 80% | Pokemon: 18% | RPGSK: 60% | Star Trek: 70% | Star Trek 83+: 40% | TI-City: 5%

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55942
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Flag Database CSE
« Reply #4 on: June 20, 2014, 12:09:06 pm »
They look nice so far. Just make sure that it's the case for Canada's flag too if you haven't done so already (some gifs above won't show up in Tapatalk so my apologies if you posted it) :P
Now active at https://discord.gg/cuZcfcF (CodeWalrus server)

Offline Streetwalrus

  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3821
  • Rating: +80/-8
    • View Profile
Re: Flag Database CSE
« Reply #5 on: June 20, 2014, 12:54:10 pm »
Looking good so far. ;)

Offline chickendude

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 817
  • Rating: +90/-1
  • Pro-Riot Squad
    • View Profile
Re: Flag Database CSE
« Reply #6 on: June 20, 2014, 01:29:21 pm »
The flags look nice! I'm not sure if this is what you were talking about or not, but were you planning on having a place where you could scroll through the flags with the name of the country displayed underneath/be able to choose a country and see its flag? Currently it just quizzes you on the flag, right? I really like the use of color in the quiz part, too :)

Offline tifreak

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2708
  • Rating: +82/-3
  • My Kung Fu IS strong...
    • View Profile
    • TI-Freakware
Re: Flag Database CSE
« Reply #7 on: June 20, 2014, 01:42:45 pm »
They look nice so far. Just make sure that it's the case for Canada's flag too if you haven't done so already (some gifs above won't show up in Tapatalk so my apologies if you posted it) :P

Thanks :) Once I get it to where I can scroll through them and check them out, I'll be making sure they all resemble what they are supposed to. :)

The flags look nice! I'm not sure if this is what you were talking about or not, but were you planning on having a place where you could scroll through the flags with the name of the country displayed underneath/be able to choose a country and see its flag? Currently it just quizzes you on the flag, right? I really like the use of color in the quiz part, too :)

Yeah, I'm going to make it so you can look at them in a variety of ways, coding them all into one bit though will be a little difficult in terms of being able to switch between text and imagery and keep the same place of it all. Only issue is, it takes it a few seconds to recall the hex string and then display it to the screen. So, we'll see how this all works out.

Looking good so far. ;)

Thanks! :D
Projects: AOD Series: 75% | FFME: 80% | Pokemon: 18% | RPGSK: 60% | Star Trek: 70% | Star Trek 83+: 40% | TI-City: 5%

Offline tifreak

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2708
  • Rating: +82/-3
  • My Kung Fu IS strong...
    • View Profile
    • TI-Freakware
Re: Flag Database CSE
« Reply #8 on: June 22, 2014, 10:20:44 pm »
Update for the day



Shows off the scoring, high score display, getting correct and wrong answers, and what the main menu looks like at present. Not sure if I need a 'Wrong!' message or not for when the answer is incorrect. Or if I even really need the 'Correct!' message :p What do you all think?
Projects: AOD Series: 75% | FFME: 80% | Pokemon: 18% | RPGSK: 60% | Star Trek: 70% | Star Trek 83+: 40% | TI-City: 5%

Offline Streetwalrus

  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3821
  • Rating: +80/-8
    • View Profile
Re: Flag Database CSE
« Reply #9 on: June 23, 2014, 04:07:07 am »
IMO the messages are unneeded because of the colors.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55942
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Flag Database CSE
« Reply #10 on: June 23, 2014, 02:35:01 pm »
Yeah I agree, although it might be good to make sure the user knows this, either in the readme or by making wrong answers so that they get a strike-through bar.
Now active at https://discord.gg/cuZcfcF (CodeWalrus server)

Offline Sorunome

  • Fox Fox Fox Fox Fox Fox Fox!
  • Support Staff
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 7920
  • Rating: +374/-13
  • Derpy Hooves
    • View Profile
    • My website! (You might lose the game)
Re: Flag Database CSE
« Reply #11 on: June 23, 2014, 03:07:02 pm »
I agree, colors are enough IMO ;)

THE GAME
Also, check out my website
If OmnomIRC is screwed up, blame me!
Click here to give me an internet!

Offline tifreak

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2708
  • Rating: +82/-3
  • My Kung Fu IS strong...
    • View Profile
    • TI-Freakware
Re: Flag Database CSE
« Reply #12 on: June 23, 2014, 03:41:50 pm »
Yeah I agree, although it might be good to make sure the user knows this, either in the readme or by making wrong answers so that they get a strike-through bar.

When one gets a wrong answer, the answer they selected turns red, the correct answer turns green. I'm thinking that announcing Correct and Incorrect might be important, so it's very clear what's going on. Still collecting opinions on this matter, though :)
Projects: AOD Series: 75% | FFME: 80% | Pokemon: 18% | RPGSK: 60% | Star Trek: 70% | Star Trek 83+: 40% | TI-City: 5%

Offline chickendude

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 817
  • Rating: +90/-1
  • Pro-Riot Squad
    • View Profile
Re: Flag Database CSE
« Reply #13 on: June 23, 2014, 07:17:47 pm »
At least in the English-speaking world, i think red and green have pretty strong connotations that people aren't likely to mix up. Personally i think the colors are enough, though displaying correct/wrong (or incorrect ;)) doesn't take anything away, so if you like it i'd just do it that way.

Also, i feel like the "Round" thing isn't really needed (or is a bit misleading). I think if you had "rounds" of, say, 10 questions, where you needed to answer at least 7 to advance to the next round (and perhaps get a bonus based on the percentage correct), it'd make more sense. As it is, it might be nice to change it to a "% Correct" which would show you your score out of a 100. In any case, it's looking nice :)

Btw, what is "Exuador"? :P

Offline tifreak

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2708
  • Rating: +82/-3
  • My Kung Fu IS strong...
    • View Profile
    • TI-Freakware
Re: Flag Database CSE
« Reply #14 on: June 23, 2014, 09:24:18 pm »
I know, I know, I need to go through and check my list. >.> lol

And the rounds are there just to show how many flags a person has gone through more quickly than trying to add the values together. I'm not really setting it up to have a specific amount asked before you can advance, it just cycles through the flags, and you have to try to get the right name for it. You simply press MODE or CLEAR when you're ready to exit the quiz.
Projects: AOD Series: 75% | FFME: 80% | Pokemon: 18% | RPGSK: 60% | Star Trek: 70% | Star Trek 83+: 40% | TI-City: 5%