[tuxdroid-svn] r817 - software/scripts/tux_trivia/trunk
Status: Beta
Brought to you by:
ks156
From: jaguarondi <c2m...@c2...> - 2008-01-02 15:00:47
|
Author: jaguarondi Date: 2008-01-02 16:00:46 +0100 (Wed, 02 Jan 2008) New Revision: 817 Modified: software/scripts/tux_trivia/trunk/tux_trivia.py Log: * Added the license and credits. Modified: software/scripts/tux_trivia/trunk/tux_trivia.py =================================================================== --- software/scripts/tux_trivia/trunk/tux_trivia.py 2007-12-31 16:19:42 UTC (rev 816) +++ software/scripts/tux_trivia/trunk/tux_trivia.py 2008-01-02 15:00:46 UTC (rev 817) @@ -1,26 +1,50 @@ -#!/usr/bin/python +#!/usr/bin/env python # -*- coding: utf-8 -*- -# -# Trivia quiz script. -# -# Make your own question lists: -# -# question files have the following format: -# -# Question? -# Correct awnser. -# Wrong awnser. -# -# Example: -# Who created the GNU project in 1984? -# Richard Stallman. -# Linus Torvalds. +# $Id$ -import time, sys +""" +Trivia quiz script for Tuxdroid + +Use the left and right flippers to select the answer. At the end of the quiz, +you get the score. Pressing the head button will cancel the quiz and give the +score. + +Make your own question lists in the the following format: + +Question 1? +Correct awnser. +Wrong awnser. +Question 2? +Correct awnser. +Wrong awnser. +""" + +__version__ = "0.1" + " r" + "$Revision$"[11:15] +__license__ = """ +This program is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2, or (at your option) +any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program; if not, write to the Free Software +Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. +""" +__author__ = "MCMic" +__contributors__ = ["Rutger Bazen", + "David Bourgeois"] + +import sys +from random import randrange + sys.path.append('/opt/tuxdroid/api/python') from tux import * -import pickle -from random import randrange # Init state of tux tux.cmd.eyes_open() Property changes on: software/scripts/tux_trivia/trunk/tux_trivia.py ___________________________________________________________________ Name: svn:keywords - Id + Author Date Id Revision |