Omnimaga
Calculator Community => Other Calc-Related Projects and Ideas => TI Z80 => Topic started by: tifreak 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:
(http://tifreakware.net/tifreak8x/flags/namethatflag2.gif) (http://tifreakware.net/tifreak8x/flags/namethatflag.gif) (http://tifreakware.net/tifreak8x/flags/somerandomflags.gif)
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:
(http://tifreakware.net/tifreak8x/flags/flagsquiz.gif) (http://tifreakware.net/tifreak8x/flags/flagsquizcorrect2.gif)
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.
-
Nice work! Nice flags!
-
Haha, that's pretty awesome! Nice flags indeed :P
-
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. :)
-
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
-
Looking good so far. ;)
-
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 :)
-
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
-
Update for the day
(http://tifreakware.net/tifreak8x/flags/flagsquiz2.gif)
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?
-
IMO the messages are unneeded because of the colors.
-
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.
-
I agree, colors are enough IMO ;)
-
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 :)
-
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
-
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.
-
Got the border around the flags put in:
(http://tifreakware.net/tifreak8x/flags/newborder.gif)
And while playing (check out that score!) I found this flag that looks rather nice:
(http://tifreakware.net/tifreak8x/flags/newborderhighscore.gif)
Can't remember there being any other requests for the quiz, moving on to the database!
-
Wha, this makes it look like way more awesome IMO :D
-
Thank you, Sorunome :)
I'm striving to make this something people will want on their calculators and find useful.
-
Flags Database has been released!
http://www.cemetech.net/programs/index.php?mode=file&id=1121
(http://tifreakware.net/tifreak8x/flags/flagsrun.gif)
-
Yay Canada :D
(http://img.ourl.ca/canadacse.png)
Anyway very good work on this. This must have taken so much time to convert all those flags and manually put them on the calc. I also like the little quiz thing. :D
The only downside I can notice is that we cannot jump straight to a letter, so if, for example, we are searching for Malaysia, we have to navigate all the way to countries starting with M, which takes quite a while.
-
Yeah, I have half a plan already figured out on that problem, it's an issue of making A-Z translate to numbers 1-26. Once I can do that, an update would happen. Just wanted this out and to the public already, though :p
Glad you like it! How do the flags look to you? I'm guessing you've browsed through a few of them. :)
-
They look pretty fine considering the limitations of 15 colors in Celtic2CSE :D
-
Assuming it's the same setup as the old GetKey values, i think all you really need to do is split the 10s and 1s. Subtract 4 from the 10s (A = 41, so 4-4 = 0), multiply by 5 (0*5 = 0) then add the 1s. If the number is greater than 3, you'll need to subtract 2. You'll also need to handle [Var] and [Clear].
A = 41 = (4-4)*5 + 1 = 1
B = 42 = (4-4)*5 + 2 = 2
D = 51 = (5-4)*5 + 1 - 2 = 4
Z = 93 = (9-4)*5 + 3 - 2 = 26
-
Weregoose did a thing, and it was brilliant, as always.
http://www.cemetech.net/programs/index.php?mode=file&id=1121
For the new version that has search by letter!
-
Great work, tifreak! (and Weregoose ;))
-
Awesome to hear Tifreak8x :D