All Projects → ruscoe → Space Trivia

ruscoe / Space Trivia

Licence: mit
🚀 A space-themed trivia app for Android.

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Space Trivia

i8080-Space-Invaders
Intel i8080 Space Invaders Arcade Emulator
Stars: ✭ 19 (-9.52%)
Mutual labels:  space
Asterank
asteroid database, interactive visualizations, and discovery tools
Stars: ✭ 290 (+1280.95%)
Mutual labels:  space
Godot 2d Space Game
A 2D space exploration and mining game made with Godot and our AI framework
Stars: ✭ 462 (+2100%)
Mutual labels:  space
kami
🍰 Kami is mx-space's web frontend theme. Cute and lovely.
Stars: ✭ 92 (+338.1%)
Mutual labels:  space
Open Notify Api
Source code for api.open-notify.org
Stars: ✭ 272 (+1195.24%)
Mutual labels:  space
Awesome Sentinel
curated list of awesome tools, tutorials and APIs for Copernicus Sentinel satellite data
Stars: ✭ 335 (+1495.24%)
Mutual labels:  space
sea
Space efficient (graph) algorithms
Stars: ✭ 16 (-23.81%)
Mutual labels:  space
Tower Defense Game
this is a game made with Unity, the goal is to protect the tower against robots.
Stars: ✭ 25 (+19.05%)
Mutual labels:  space
Space Snake
A Desktop game built with Electron and Vue.js.
Stars: ✭ 289 (+1276.19%)
Mutual labels:  space
Poliastro
poliastro - 🚀 Astrodynamics in Python
Stars: ✭ 462 (+2100%)
Mutual labels:  space
new-ospgl
A space exploration game in OpenGL. Devblog: https://tatjam.github.io/index.html
Stars: ✭ 17 (-19.05%)
Mutual labels:  space
earthin24
Source code for my twitter bot https://twitter.com/earthin24
Stars: ✭ 19 (-9.52%)
Mutual labels:  space
Spacekit
Javascript library for 3D space visualizations
Stars: ✭ 340 (+1519.05%)
Mutual labels:  space
StarshipAcademy
a Multiplayer WebVR Space Shooter made with A-Frame and Socket.io
Stars: ✭ 24 (+14.29%)
Mutual labels:  space
Naev
Naev is a 2d action/rpg space game that combines elements from the action, rpg and simulation genres.
Stars: ✭ 482 (+2195.24%)
Mutual labels:  space
spaceshippers
A spaceship simulation game written in Go that might be fun one day!
Stars: ✭ 28 (+33.33%)
Mutual labels:  space
Apod Api
Astronomy Picture of the Day API service
Stars: ✭ 290 (+1280.95%)
Mutual labels:  space
Make Space
💾 [WIP] Free up space from the command line
Stars: ✭ 21 (+0%)
Mutual labels:  space
Gpredict
Gpredict satellite tracking application
Stars: ✭ 484 (+2204.76%)
Mutual labels:  space
Termtrack
Track satellites in your terminal
Stars: ✭ 375 (+1685.71%)
Mutual labels:  space

Space-Trivia

An open-source space trivia app for Android.

Written by Dan Ruscoe (http://ruscoe.org/)

Requirements

Usage

Trivia categories and questions can be found in CSV files within the /res/raw directory.

Installing the OpenCSV Library in Eclipse

  • Download OpenCSV 2.3
  • Extract the archive and locate the file named opencsv-2.3.jar, in the 'deploy' directory.
  • Open the Space Trivia project in Eclipse.
  • Create a new folder named libs in the root of the Space Trivia project.
  • Copy opencsv-2.3.jar into the newly created libs folder.
  • From the main menu, select Project then Clean... and clean the project.

Adding Categories and Questions

Categories and questions are contained in .csv files. To edit the files:

  • In the Space Trivia project, navigate to the res/raw directory.

  • To add a new question to an existing category, open the .csv file named after that category and add a new line. See Question CSV Data Format.

  • To add a new category, open categories_data.csv and add a new line. See Category CSV Data Format.

  • To add questions for a new category:

    • Create a new file in the res/raw directory. The naming convention is: questions_my_category.csv
    • Populate the new file with CSV-formatted question data. See Question CSV Data Format.
    • Open src/org/ruscoe/spacetrivia/dao/TriviaDAO.java.
    • Locate the onCreate method and look for the following code:
    importQuestionsData(db, R.raw.questions_space_exploration);
    importQuestionsData(db, R.raw.questions_earth_moon);
    importQuestionsData(db, R.raw.questions_solar_system);
    
    • Add a line below that section of code, similar to this:
    importQuestionsData(db, R.raw.questions_my_category);
    

    Note that the resource ID (R.raw.*) must match the name of the question data file you created, minus the .csv extension.

    • On your device, clear the application data (or uninstall) and rebuild the application from Eclipse.
    • Your new category / question data should now appear in the application.

Category CSV Data Format

1, "Space Exploration"

Indexes:

  1. The unique ID of the category.
  2. The name of the category.

Question CSV Data Format

1,1,"The first manned Moon landing occurred in July of which year?","The first manned Moon landing occurred on July 20th, 1969 during the Apollo 11 mission.",1969,1959,1979

Indexes

  1. The ID of category the question belongs to. Must match an ID in the categories CSV file.
  2. The unique ID of the question.
  3. The question text.
  4. The long answer text, shown after the user selects an answer.
  5. The correct answer option.
  6. Incorrect answer option #1.
  7. Incorrect answer option #2.

License

Released under the MIT License.

Sounds

UI sounds courtesy of GUI Sound Effects.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].