LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Games
User Name
Password
Linux - Games This forum is for all discussion relating to gaming in Linux.

Notices


Reply
  Search this Thread
Old 05-05-2017, 11:45 AM   #1
Michael Uplawski
Member
 
Registered: Dec 2015
Location: Normandy, France
Distribution: Debian buster/sid
Posts: 549
Blog Entries: 18

Rep: Reputation: 353Reputation: 353Reputation: 353Reputation: 353
History Quiz - a good idea? A lot of work, apparently.


Good evening.

While I am bereft of an Internet connection at home, I have programmed a little, improved old utilities, wrote some documentation apart from all the "serious work" every day.

And there is a new project born that I ask you to comment... I am also bereft of a QUERTY, let alone a QUERTZ keyboard and uyou woii have to live zisth some odd spelling mistakes, I am afraid...

History Quiz: Line up historic events in the correct order.

The game starts currently with three events in arbitrary order. This number will be configurable. You try to get the numbering in the right order and win immediately 3 or 0 points. The game shows you the correct timeline, the year for each event and your points.

From then on, you can choose to either
- see some background information about one of the listed events
- add a new event, that you have to place after one of the previously listed or at the beginning of the list
- hit "q" to quit the game at any time.

This game more or less exists in a "hardware implementation", where you have to get cards in the right order, then learn the actual year from the back of each card. That is dumb. My game looks much better, even though there is not yet a graphical UI. The interfaces will allow to add one. This is not the hardest part.

The accumulation of historical events and one or two explanatory phrases for each is a real problem... I feel that this should be a "community project", maybe.

But then agan..; I am far away from it all and may be nuts anyway...

Last edited by Michael Uplawski; 05-11-2017 at 10:44 AM. Reason: bad smily. Bad Orthopa... Ornit... Jou gett se Idyea.
 
Old 05-05-2017, 01:30 PM   #2
hydrurga
Senior Member
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 18.2 MATE
Posts: 3,491
Blog Entries: 2

Rep: Reputation: 1198Reputation: 1198Reputation: 1198Reputation: 1198Reputation: 1198Reputation: 1198Reputation: 1198Reputation: 1198Reputation: 1198
Sounds interesting. Have you developed anything so far?

It might be an idea to have subcategories such as European History, Latin American History, Peace Treaties, World Leaders.

Just for pure info (sorry), it's quiz with only one z, and qwerty not querty (I assume you're an azerty guy).
 
1 members found this post helpful.
Old 05-11-2017, 10:41 AM   #3
Michael Uplawski
Member
 
Registered: Dec 2015
Location: Normandy, France
Distribution: Debian buster/sid
Posts: 549
Blog Entries: 18

Original Poster
Rep: Reputation: 353Reputation: 353Reputation: 353Reputation: 353
[static]Sorry for the late response.[/static]
Quote:
Originally Posted by hydrurga View Post
Sounds interesting. Have you developed anything so far?
Yes. The game works so far. There are some glitches which mainly concern the presentation on screen and the succession of "screens". Although I currently work exclusively for the terminal window, the décisions taken in this context are of general nature and will probably have to be duplicated for any type of GUI.

Quote:
It might be an idea to have subcategories such as European History, Latin American History, Peace Treaties, World Leaders.
Something like that had crossed my mind. You can already store the list of events in a file and thus replace it against a different one. This is not difficult, technically... but the amount of work needed to fill up these files with a "reasonable" (read: considerable) number of events gave me the shivers, before I wrote my initial post, above...

Quote:
Just for pure info (sorry), it's quiz with only one z, and qwerty not querty (I assume you're an azerty guy).
I am many things but especially NOT AN AZERTY GUY. Rather QWERTZ (Kraut). Despite my bouts with this AZERTY keyboard, the faults that you mention are really my own.

THANK YOU for all corrections of my English, in the past and in the future. That is the only true reason, why I am here; the rest is just camouflage... and every 2nd word is underlined in red on this French Internet Exploder under Windows 1\d. So many Englishmen around and no QWERTY.

P.S.: Almost forgot: I want to name the game Quistory. If that is not already taken.
 
Old 05-11-2017, 01:22 PM   #4
hydrurga
Senior Member
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 18.2 MATE
Posts: 3,491
Blog Entries: 2

Rep: Reputation: 1198Reputation: 1198Reputation: 1198Reputation: 1198Reputation: 1198Reputation: 1198Reputation: 1198Reputation: 1198Reputation: 1198
http://www.quistapp.com/quistory-in-your-neighborhood/

Do let me know when you have something I can try out.

I too have to switch between qwerty and azerty keyboards - it always takes me a few days before the muscle memory kicks in.

Last edited by hydrurga; 05-11-2017 at 01:24 PM.
 
Old 05-11-2017, 06:04 PM   #5
!!!
Member
 
Registered: Jan 2017
Posts: 619

Rep: Reputation: 235Reputation: 235Reputation: 235
http://ask.metafilter.com/4346/Quizcreation-programs
https://www.efrontlearning.com/blog/...ols-for-e.html
Tho old, those may suggest some useful search keyword ideas. Enjoy your project!
 
Old 05-19-2017, 11:43 AM   #6
Michael Uplawski
Member
 
Registered: Dec 2015
Location: Normandy, France
Distribution: Debian buster/sid
Posts: 549
Blog Entries: 18

Original Poster
Rep: Reputation: 353Reputation: 353Reputation: 353Reputation: 353
Moodle has been my dearest enemy, when I was participating in the Rubylearning.org online-courses. I cannot say that the experience made me curious to try out that Platform.., or ...
... or just anything with the expression "web-based" in it.

Quote:
Tho old, those may suggest some useful search keyword ideas. Enjoy your project!
Thank you. I program exclusively for fun, even if somebody actually uses my software for other purposes. Giving sense to my projects is not my favorite part of it.

Ha! Thanks for that hint (could be worse). I shall think about a different name for the project, Uploading anything on this Library-PC is unfortunately impossible. It may be that once I have a new Internet-access,a dozen programs have to be updated at once and the first edition of the Quiz will be published at the same time...

Read you next week.
Michael.

Last edited by Michael Uplawski; 05-19-2017 at 11:45 AM. Reason: I I I wrote too much about myself myself myself. I I I think.
 
Old 05-19-2017, 09:05 PM   #7
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mageia, and whatever VMs I happen to be playing with
Posts: 12,877
Blog Entries: 18

Rep: Reputation: 3344Reputation: 3344Reputation: 3344Reputation: 3344Reputation: 3344Reputation: 3344Reputation: 3344Reputation: 3344Reputation: 3344Reputation: 3344Reputation: 3344
I trained as an historian (US history, with a focus on US Southern). Given that ignorance of history seems to be a coming thing here in the US, if you think that I can help you with content, feel free to PM me.
 
Old 05-21-2017, 03:31 PM   #8
Michael Uplawski
Member
 
Registered: Dec 2015
Location: Normandy, France
Distribution: Debian buster/sid
Posts: 549
Blog Entries: 18

Original Poster
Rep: Reputation: 353Reputation: 353Reputation: 353Reputation: 353
Quote:
Originally Posted by frankbell View Post
I trained as an historian (US history, with a focus on US Southern). Given that ignorance of history seems to be a coming thing here in the US, if you think that I can help you with content, feel free to PM me.
Thank you very much, Frank.

By chance, I have a connection today and can publish a preliminary, completely insufficient version of the program, below this post. All code is in the sub-directory /lib. The executable is in /bin.

Call the ruby-interpreter with "bin/timequiz" as only argument.

The events are currently in the file "events.rb", where each event is itself an array of three elements: "name", year, "comment". The year is an integer, the others are strings.

I find the Ruby Array syntax easy enough to understand. Other ways to define events are possible, but should not impose a more complicated, special syntax.

There is code in an intermediate state, which you should probably not look at. This concerns the files "extstring.rb" and "console_output.rb":

1) The wrap-function in extstring or its use in the box() method are flawed, which results in the border lines being broken, sometimes. This is due to a problem with a regular expression and my mis-interpretation of screen dimensions (arithmetics). I understand the problem but it bores me.
2) console_output.rb is a rewrite of the user-interface, which currently only generates the initial "screen" with three events. The remaining code concerned is still found in the main program class but will be moved to console_output, as soon as I find the time.

The file, that I link is merely a tar.xz archive. In its current state the program is not fit to be packed as a ruby-gem. It runs on my machine and despite the glitches in the user-interface I can play with all defined events.

Here it is:
Timequiz.tar.xz

Shoot at own discretion.

Last edited by Michael Uplawski; 05-21-2017 at 03:36 PM.
 
Old 05-31-2017, 08:44 AM   #9
Michael Uplawski
Member
 
Registered: Dec 2015
Location: Normandy, France
Distribution: Debian buster/sid
Posts: 549
Blog Entries: 18

Original Poster
Rep: Reputation: 353Reputation: 353Reputation: 353Reputation: 353
I have identified the methods needed to alternate between a graphical and a text-interface, externalized all output to the console class and am writing a Gtk-3 interface. Even if the first edition will only reproduce the output currently visible in text-mode, it will allow for choices being made via check- and radio-buttons. I am not a "GUI-artist" and do not care to develop my own widgets.

The problems mentioned in my previous post are solved, btw.

Bye.
 
Old 07-27-2017, 03:23 PM   #10
Michael Uplawski
Member
 
Registered: Dec 2015
Location: Normandy, France
Distribution: Debian buster/sid
Posts: 549
Blog Entries: 18

Original Poster
Rep: Reputation: 353Reputation: 353Reputation: 353Reputation: 353
I have an Internet connection!

And here is a screen shot of the current development version. This is not awfully sophisticated yet, as it has been weeks since I have last touched the code. There is still not much that I can do in my free time but the ”project“ is not dead.
Attached Thumbnails
Click image for larger version

Name:	tq_sc.png
Views:	8
Size:	14.8 KB
ID:	25584  
 
Old 07-27-2017, 03:36 PM   #11
hydrurga
Senior Member
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 18.2 MATE
Posts: 3,491
Blog Entries: 2

Rep: Reputation: 1198Reputation: 1198Reputation: 1198Reputation: 1198Reputation: 1198Reputation: 1198Reputation: 1198Reputation: 1198Reputation: 1198
Quote:
Originally Posted by Michael Uplawski View Post
I have an Internet connection!

And here is a screen shot of the current development version. This is not awfully sophisticated yet, as it has been weeks since I have last touched the code. There is still not much that I can do in my free time but the ”project“ is not dead.
Nice one! I hope all the questions aren't so hard. ;-)
 
Old 07-29-2017, 01:16 AM   #12
Michael Uplawski
Member
 
Registered: Dec 2015
Location: Normandy, France
Distribution: Debian buster/sid
Posts: 549
Blog Entries: 18

Original Poster
Rep: Reputation: 353Reputation: 353Reputation: 353Reputation: 353
Quote:
Originally Posted by hydrurga View Post
Nice one! I hope all the questions aren't so hard. ;-)
ROFL.
No, not at all... For the less historically inclined, I put some "Birth date of Kathrine Mansfield" and "Léon Czolgoscz kills William McKinley" in, too.
 
Old 07-29-2017, 04:35 AM   #13
hydrurga
Senior Member
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 18.2 MATE
Posts: 3,491
Blog Entries: 2

Rep: Reputation: 1198Reputation: 1198Reputation: 1198Reputation: 1198Reputation: 1198Reputation: 1198Reputation: 1198Reputation: 1198Reputation: 1198
Quote:
Originally Posted by Michael Uplawski View Post
ROFL.
No, not at all... For the less historically inclined, I put some "Birth date of Kathrine Mansfield" and "Léon Czolgoscz kills William McKinley" in, too.
And I didn't even know that William McKinley was dead.

Look forward to the finished product, Michael.
 
Old 08-28-2017, 06:47 AM   #14
Michael Uplawski
Member
 
Registered: Dec 2015
Location: Normandy, France
Distribution: Debian buster/sid
Posts: 549
Blog Entries: 18

Original Poster
Rep: Reputation: 353Reputation: 353Reputation: 353Reputation: 353
HA!

This is my last contribution in this thread, as there will be a new one, announcing a first Gem-release of “TimeQuiz”. Wait a little, though, as I am finalizing a mechanism which allows a user to keep her/his own list of events to pick from.

And...

More important even: [Reverb & Echo & Wawa]THERE WILL NOT BE A GRAPHICAL USER-INTERFACE[/Wawa & Echo & Reverb], for the time.

My bouts with the Gtk3-bindings for Ruby result in a terribly ugly and only rudimentary functional program-window. Having to collect pieces of documentation here and there and advancing mainly by trial and error, I am terribly unproductive. The text-mode version of the game being complete, AFAIS, and in view of the banality of the concept and the question-and-answer character of the game, it is probably best situated on the console, anyway.

The GTK-code will be available to anybody who wants to give it a try, but I will exclude it from the Ruby-Gem.

More in a few days.

Michael.

... and Ω
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
And bash history dups still exist... a lot... dedec0 Linux - Software 18 09-09-2016 07:31 AM
Good idea jefro General 5 01-20-2015 10:12 AM
Good idea/bad idea: interface colors introuble General 5 10-30-2006 02:33 PM
!!Mandrake KDE Menu Problem ** apparently fixed (so far so good) ** bemused0 Mandriva 1 07-17-2005 01:56 PM
Good Lord that's a lot of virus! crazyeddie740 General 11 06-06-2004 03:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Games

All times are GMT -5. The time now is 08:43 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration