Capital Cities Tester
Capital Cities Tester
Do you think Ouagadougou is the capital of Cardiff? If so then this utility is for YOU!
Capital Cities Tester
I made this after a chat with someone about pub quizzes and I realised how pig ignorant I was on the subject.
You can play a random or alphabet list quiz in which are you given a country, e.g Burkina Faso, and you input its capital city, in this case Ouagadougou. In the random game you will not be asked the same country twice in a row, so you will never have to input Ouagadougou once and then Ouagadougou immediately after.
There is some rudimentary string checking to give a bit of leeway with spelling (in retrospect - why did I put that in?!), so you would be allowed Ouagadougoo for example, but I’m not totally happy with it as it allows quite a few howlers, like PORIS.
Performance stats are kept and you get a report every 10 questions.
There might be a few cases where I've picked the wrong capital where is more than one, or one of a few possible choices of spelling, I'll wait and see if that crops up.
Re: Capital Cities Tester
Oh god, I suck.
I am a "plank".
I am a "plank".
Re: Capital Cities Tester
Keep trying, you might reach the giddy heights of "buffoon" like me.
Re: Capital Cities Tester
Buffoon. Will take that.
Only because Ireland came up 3 times.
Only because Ireland came up 3 times.
My Speccy site: thirdharmoniser.com
Re: Capital Cities Tester
Don't tell me, Ireland......Ouagadougou?Only because Ireland came up 3 times.
- MatGubbins
- Dynamite Dan
- Posts: 1239
- Joined: Mon Nov 13, 2017 11:45 am
- Location: Kent, UK
Re: Capital Cities Tester
Needs an update to accept swearing when an answer is not known.
I'm a plank! Yay! 1 outta 11 -
I got Russia wrong.... it didn't accept Raid Over Moscow.
There could be a third type of game here, the country is given and the player moves the cursor around the map and presses fire when they think they've got the correct location.
Well done for this BASIC mind jogger.
I'm a plank! Yay! 1 outta 11 -
I got Russia wrong.... it didn't accept Raid Over Moscow.
There could be a third type of game here, the country is given and the player moves the cursor around the map and presses fire when they think they've got the correct location.
Well done for this BASIC mind jogger.
- Alessandro
- Dynamite Dan
- Posts: 1910
- Joined: Wed Nov 15, 2017 11:10 am
- Location: Messina, Italy
- Contact:
Re: Capital Cities Tester
Heh... First attempt 45% with 3/4 African states which capitals I didn't remember at all, except for Ethiopia (luckily the program accepted the Italian "Addis AbEba" spelling instead of "AbAba"). I knew the capital of Mozambique was called Lourenço Marques during the Portuguese domination and in the first years of independence but didn't remember it was later renamed Maputo.
Second attempt went better but the capital of Slovenia is "Lubiana" in Italian, which the program didn't accept, so that does not count as an error, as well as Dakha for Bangladesh which the program stores as "Dhaka". Oddly enough, it asked for the capital of Vatican City, which is Vatican City itself, in fact. 16 out of 22.
Second attempt went better but the capital of Slovenia is "Lubiana" in Italian, which the program didn't accept, so that does not count as an error, as well as Dakha for Bangladesh which the program stores as "Dhaka". Oddly enough, it asked for the capital of Vatican City, which is Vatican City itself, in fact. 16 out of 22.
Re: Capital Cities Tester
Cool map, nice game.
What make s a ZX DB entry, provide access to online emulator links or not ?
What make s a ZX DB entry, provide access to online emulator links or not ?
Re: Capital Cities Tester
Plus a tiny bit of assembly to LDIR the screen, POKEd in from the BASIC. I like the 'point at the country' idea.MatGubbins wrote: ↑Thu May 03, 2018 10:02 pm I'm a plank! Yay! 1 outta 11 -
There could be a third type of game here, the country is given and the player moves the cursor around the map and presses fire when they think they've got the correct location.
Well done for this BASIC mind jogger.
First dibs on Ale for my pub quiz team!Alessandro wrote: ↑Thu May 03, 2018 10:36 pm Heh... First attempt 45% with 3/4 African states which capitals I didn't remember at all, except for Ethiopia (luckily the program accepted the Italian "Addis AbEba" spelling instead of "AbAba"). I knew the capital of Mozambique was called Lourenço Marques during the Portuguese domination and in the first years of independence but didn't remember it was later renamed Maputo.
Second attempt went better but the capital of Slovenia is "Lubiana" in Italian, which the program didn't accept, so that does not count as an error, as well as Dakha for Bangladesh which the program stores as "Dhaka". Oddly enough, it asked for the capital of Vatican City, which is Vatican City itself, in fact. 16 out of 22.
In its current form the program only allows one possibility per country. There are quite a few where I would have liked to include alternatives, Mongolia may prove contentious for example. I’m glad my simple string checks have helped out in a few cases though.
I removed some of the more obscure overseas territories but I left the Vatican in intentionally, it’s a bona fide country with Vatican City as its capital.
Re: Capital Cities Tester
Cheers.
Don't know sorry, that's one for [mention]PeterJ[/mention]
Re: Capital Cities Tester
Morning all, the online emulators work with tap, z80 and sna files.
Peter
PS. JSSpeccy apparently works with some tzx files, but that is undergoing testing currently by us.
Peter
PS. JSSpeccy apparently works with some tzx files, but that is undergoing testing currently by us.
Re: Capital Cities Tester
Nice!
Out of curiosity, what wast he source for your list of states and capitals? Did you include some really small states like Kiribati or Marshall Islands? And what about controversial states not accepted by everyone?
Out of curiosity, what wast he source for your list of states and capitals? Did you include some really small states like Kiribati or Marshall Islands? And what about controversial states not accepted by everyone?
Re: Capital Cities Tester
I took this list, one of the first in a usable format thrown up by a google search.
So that ignores various 'areas of complexity' , Cyprus is only the Republic of, I added Palestine with Ramallah as de facto capital, I removed some of the smallest islands (possibly Marshall Island and Kiribati included). I can't remember all the details but in the cold light of day I'm worried I didn't give these decisions enough consideration.
Now, who *haven't* I pissed off?
- Juan F. Ramirez
- Bugaboo
- Posts: 5133
- Joined: Tue Nov 14, 2017 6:55 am
- Location: Málaga, Spain
Re: Capital Cities Tester
At last, after 35 years, a program that help us with our homework!
*gets coat etc*
*gets coat etc*
Re: Capital Cities Tester
Oh bloody hell! It's missing Northern Ireland
A fixed version will be in the next update
A fixed version will be in the next update
Re: Capital Cities Tester
AAh, that's why I got 'plank' (I'm from the capital of NI)!
Everyone else was playing with an advantage.
Everyone else was playing with an advantage.
Re: Capital Cities Tester
I think you were the reason I remembered, norniron must have sprung to mind.
Dammit, I still need to add the rest of CGC 2013 files to the site, here it is for now.
Dammit, I still need to add the rest of CGC 2013 files to the site, here it is for now.
Re: Capital Cities Tester
How about historical states? But then that is a whole new can of worms. Like what do you do when a government is in a state of collapse like say Italy at the end of the second world war.. Or Manchukuo, that changed its capital twice and now is a non-existent state...
Re: Capital Cities Tester
We could have a fantasy future version too, for example in John Wyndham's 'The Kraken Awakes' in which Harrogate becomes the capital when the undersea aliens melt the icecaps and flood London (or something like that).
The DATA string search is already too long for BASIC though. If you play the list game you'll notice it get gradually slower as it steps through the alphabet, by the time you're at Zimbabwe you can make a cup of tea* in the time it takes to find the string and print the yx cors. I'm too busy with other stuff but I did toy with the idea of a machine code version that included a summary of the country - population, currency etc and its flag.
*maybe not, but there's time enough to send a text while jiggling your legs.
The DATA string search is already too long for BASIC though. If you play the list game you'll notice it get gradually slower as it steps through the alphabet, by the time you're at Zimbabwe you can make a cup of tea* in the time it takes to find the string and print the yx cors. I'm too busy with other stuff but I did toy with the idea of a machine code version that included a summary of the country - population, currency etc and its flag.
*maybe not, but there's time enough to send a text while jiggling your legs.
Re: Capital Cities Tester
If you wanted to optimize it some, you could get the first letter in, say, A, then RESTORE 1000+10*A so you only have to search through words with the same first letter.
[EDIT]
Looking at the code, you'd be much better off just having each country on a single line:
100 DATA "Afghanistan", "Agfa Albion", 13, 10
101 DATA "Algeria", "Algerton", 11, 14
Then you wouldn't need to loop at all.
You could just RESTORE 100+country: READ a$,b$,x,y
[EDIT]
Looking at the code, you'd be much better off just having each country on a single line:
100 DATA "Afghanistan", "Agfa Albion", 13, 10
101 DATA "Algeria", "Algerton", 11, 14
Then you wouldn't need to loop at all.
You could just RESTORE 100+country: READ a$,b$,x,y
Re: Capital Cities Tester
Oh that's much better, and a good way of allowing alternative strings for "St" and "Saint" etc. Cheers!Kweepa wrote: ↑Sun May 06, 2018 10:55 pm Looking at the code, you'd be much better off just having each country on a single line:
100 DATA "Afghanistan", "Agfa Albion", 13, 10
101 DATA "Algeria", "Algerton", 11, 14
Then you wouldn't need to loop at all.
You could just RESTORE 100+country: READ a$,b$,x,y
I might even be charitable and give "ULAANBAATAR" alternatives, AFAIK this is correct spelling, but a lot of people expect the anglicised "ULAN BATOR".
Re: Capital Cities Tester
I've made some improvements thanks to suggestions from Kweepa, which have allowed more scope for alternative spellings (Washington DC/Washington D.C., Nay Pyi Taw/Naypyidaw...). It will now find every country very quickly and the same speed regardless of the first letter, I'm actually embarrassed my first attempt had such an appalling way of READing the data
And I've added Northern Ireland!
I seem to be floating around the 45% mark, I permanently walk round in the hope that someone will randomly ask me what the capital of Burkina Faso is.
As the next update will be next week, DOWNLOAD here for now.
And I've added Northern Ireland!
I seem to be floating around the 45% mark, I permanently walk round in the hope that someone will randomly ask me what the capital of Burkina Faso is.
Spoiler
Ouagadougou!
- MatGubbins
- Dynamite Dan
- Posts: 1239
- Joined: Mon Nov 13, 2017 11:45 am
- Location: Kent, UK
Re: Capital Cities Tester
Very nice and a lot faster. I'm still a plank.
Just a very small request.... Can we have a Currah Microspeech version that asks the questions, and speaks the answers and pronounces them correctly?
Just a very small request.... Can we have a Currah Microspeech version that asks the questions, and speaks the answers and pronounces them correctly?
Re: Capital Cities Tester
That is a brilliant idea. I only used currah in a couple of games and have never developed with it, I assume it's possible here.MatGubbins wrote: ↑Thu May 17, 2018 11:48 pm Can we have a Currah Microspeech version that asks the questions, and speaks the answers and pronounces them correctly?