Begun: 2020-11-30.
Most Recent Updates: 2020-12-04.
Creators: Nick Hennessy [email protected], Patrick Osten [email protected], Randel Moore [email protected], Tyler Sinks [email protected]
Want to type all those weird characters and coding-required brackets with greater speed and accuracy? This project has gameified this. Pit you and your keyboard skills against a timer.
prompt | input | progress | timer |
---|---|---|---|
your current prompt | colorized input as you type | progress through the selected prompt genre | minutes and seconds elapsed |
- A web browser capable of HTML5 (for best results, use the latest version of Chrome)
- A keyboard / text-entry device
- A mouse for menu navigation
Option 1 (live webpage)
Visit the following link to view a live version of this project. For best results, please use an up to date version of the Chrome browser.
https://codingmoore.github.io/code_typing_game/dist/index.html
Option 2 (download zip file)
-
Copy and paste the following GitHub project link into your web browser's url bar and hit enter/return. https://github.com/sinkstyt/code_typing_game
-
Click the green "Code" button near the upper right corner of the screen.
-
Select "Download Zip" from the dropdown menu that appears upon "Code" button click.
-
From within your Downloads folder (or bar along the bottom of your browser), right click the .zip file and extract(unzip) its contents.
-
Open the unzipped folder/files using Visual Studio Code or similar source code editing program.
-
Install all required dependencies from the package.JSON folder, and then build the program. To do this using Node Package Manager (npm), first navigate to the root directory of the project in your console. You can then type the following commands to install and build the program.
npm install
npm run build
-
Once the code is built, a "dist/" directory will be created in the root directory of the project. Launch the "index.html" file found here and it should open with your default web browser. Option 3 (via git console/terminal)
-
Open your Git enabled terminal/console and navigate to a directory that you wish to download this project to.
-
Type the following line of code into your terminal/console to automatically download the project to your current direcory and hit return/enter
-
To take a look at this repository's files, navigate to the root directory of the project in the terminal/console, and type
code .
and then hit return / enter.
The project should automatically launch using your default code editor.
4) Using the two terminal commands shown just below, npm will install all required dependencies from the package.JSON folder, and build the program. To use these npm commands, make sure your present working directory is the root folder of the project in your console. Here are the commands to install and build the program:
npm install
npm run build
- Once the code is built, a "dist/" directory will be created in the root directory of the project. Launch the "index.html" file found here, and it will open in your default web browser.
- On page load, you will be asked to select a flavor for the prompts that you will be facing in the round. Examples include "Ampersandstravaganza", "JavaScript Reserved Keywords", "Functions and Dot Notation."
- Once you have made your prompt flavor selection, the game begins.
- Type what you see centered near the top of the screen (egs. {}, (, or โ).
- Press
<enter>
once you have got what you have typed all green. - Repeat until you've made it through all of that round's prompts.
Output:
- Your progress through the genre will be shown as a fraction under the heading Prompt #
- A timer will count up from 0 as soon as you made your genre selection
- timed game mode
- enhanced scorekeeping
- randomize order of prompts
- add audio stinger(s)
- blocked out spaces for ads
MVP:
- promt user with a string pulled from an array that they have to type exactly before moving on to the next string.
Strech Goals all the bolded "Planned Features" above, namely:
- enhanced scorekeeping
- randomize order of prompts
- allow user to add prompts
- add audio stinger(s)
- blocked out spaces for ads
- when entering a new prompt, any phrase that has '<' followed directly by more characters does not print properly to the DOM. '<' and '< something' appear without issue.
- fixed 12.2.2020
- blinking cursor will occasionally speed up
- prompt and user input are not centered when using some versions of firefox.
- HTML
- JavaScript
- Bootstrap
- jQuery
- CSS
- Webpack
- npm
Authored by: Randel Moore, Nick Hennessy, Tyler Sinks, Patrick Osten
GPLv3
Copyright ยฉ 2020 Randel Moore, Nick Hennessy, Tyler Sinks, Patrick Osten
Achieved
- elapsed time works
- styling looks sleek
- progress through the chosen genre of prompts works
- MVP feels achieved In Progress
- adding sound effects
- adding placeholders for ads
- ability to play multiple games with a cumulative score tracked