A command line trivia game with content from all types of Star Wars cannon media.
- Go to the latest release page and download the executable that corresponds to your platform
- Save the executable to a folder somewhere in your file system
- If that folder is not already in your system or user path, you'll need to add it (see instructions below if you need help doing this)
- Open a terminal or command prompt
- Type
sw-trivia
to start the game- add the
--version
flag (-v
for short) to see version information about the game - add the
--stats
flag (-s
for short) to see statistics about the game's trivia content
- add the
- Type the number of the option you'd like to select and press
Enter
to proceed
This project is built with Deno
Although this project uses a stable version of Deno, it needs the --unstable
flag for a few APIs and makes use of the Deno Standard Modules which are pre 1.0.
Because of this, it is still recommended to use the specific version of Deno listed in src/version.ts
.
The program will warn the user if the version of Deno being run does not match the version listed there.
By default these scripts will prompt for various permissions, such as reading/writing to the filesystem or spawning a subprocess.
To bypass these prompts, add Deno's -A
flag to the command.
For more info on how script permissions work in Deno, check out the
permissions page in the manual.
deno run --unstable scripts/start.ts
-v
,--version
: Show app version info-s
,--stats
: Show statistics about trivia content
deno run --unstable scripts/new.ts
-n
,--name
: The name of the new trivia source-t
,--type
: The media type of the new trivia source- valid types: book, comic, film, game, television
deno run --unstable scripts/build.ts
By default the executable will be output to target/debug
.
If the release argument is passed, the executables will be output to target/release/[platform-name]
.
-r
,--release
: Build production executables for all platforms