Terminal typing "game"

Overview

ToggleCoolCowSaysType

A terminal based typing game.

Usage:

toggle_cool_cow_says_type [-t {word_count}] [-t {file_extension}] [-s] {project_path}
  • -s : flag to tell the game to run in strict mode
  • -t : file extension (defaults to "rs")
  • -w : word count (defaults to 10)
  • -ss: skip word on space, unless it's the first character.".into(),
  • -cf: foreground colour of the cursor (defaults to green)
  • -cb: background colour of the cursor (defaults to dark_grey)
  • -ma: minimum accuracy required to see the actual result.

Example:

toggle_cool_cow_says_type -p path_to_project -t c -w 5

The name provided by BareCoolCowSaysMoomah won the naming poll.

Colour Names:

black
dark_grey
red
dark_red
green
dark_green
yellow
dark_yellow
blue
dark_blue
magenta
dark_magenta
cyan
dark_cyan
white
grey
Comments
  • Crashes when run over SSH or in Docker

    Crashes when run over SSH or in Docker

    When running tccst remotely over SSH it can't get the terminal size and crashes.

    ssh server ./tccst code
    

    Assuming the program is placed on server in the home folder and with a folder code containing source code to read.

    When running inside a Docker container it doesn't crash but always gets a width and height of 0, exiting with a wrong error that says it couldn't find any source code to read.

    docker run --rm -it -v $PWD:/volume tccst
    

    Assuming the program is put in a Docker image with /volume set as workspace folder and $PWD being some code project with Rust source code.

    bug wontfix 
    opened by dnaka91 6
  • Need to type trailing spaces

    Need to type trailing spaces

    This was tested on Windows. When I have to write a sentence, I also need to typing trailing spaces. This seems like a bug, and I can't see the space.

    Environment: Win10, Shell: CMD

    opened by 770grappenmaker 2
  • Modfiy default colors to more distinct

    Modfiy default colors to more distinct

    Using the default color scheme in alacritty the current color scheme was hard to differentiate between dark grey, grey, and white perhaps pick a more muted color for the bg cursor and a more distinct fg cursor color that will survive between common terminals

    maybe consider 24bit color as default as well to get around relying on a terminals color settings.

    opened by BarePotato 1
  • Create PKGBUILD file

    Create PKGBUILD file

    To distribute this on the AUR we would need a PKGBUILD file, this would help with distribution to those with access to the AUR on all platforms (including the PinePhone)

    enhancement 
    opened by londospark 1
  • [windows] Resizing the window in cmd.exe results in a crash

    [windows] Resizing the window in cmd.exe results in a crash

    thread 'main' panicked at 'index out of bounds: the len is 61076 but the index is 63264', C:\Users\runneradmin\.cargo\git\checkouts\tinybit-8034ea283afb7f7c\833fad1\src\pixelbuffer.rs:46:9

    bug windows 
    opened by VoightKampff 1
  • Panics when text length is longer than screen width

    Panics when text length is longer than screen width

    If the total text length is longer than the screen width it panics.

    This should either:

    • Truncate the text
    • Wrap the text

    It would be possible to do both: Truncate the text if it can't fit, if there is no room to split the text into multiple lines.

    opened by togglebyte 1
  • a more reasonable/accurate wpm calculation

    a more reasonable/accurate wpm calculation

    This better matches the calculation used in other typing tests, like MonkeyType. This will give us results that fall in line with what is expected and can be compared to other typing tests. There are additional and more elaborate ways we can measure this and/or provide additional results but this will at least get us a normalized and comparable reference wpm.

    Attached image is showing a comparison test against MonkeyType with the same text. https://imgur.com/GHFQNHD

    opened by BarePotato 0
  • Jump back to last char before skip and implement Ctrl-w

    Jump back to last char before skip and implement Ctrl-w

    • Delete all consecutive whitespaces. This way if you skip a word with space, backspace takes you back to where you were.
    • Ctrl-w now deletes a whole word
    opened by hardliner66 0
  • Make game more similar to typemonkey

    Make game more similar to typemonkey

    • Game can now be finished, even if there are mistakes. Game ends if space is pressed after all words are typed.
    • Space is now ignored if you're at the start of a word.
    • Space now skips a word, if at least one char was already typed.
    • Don't add chars if input text already contains at least as many chars as needed to complete the game. So if you keep typing at the end, you don't need to delete all those "invisible" chars.
    • The "-p" arg is now not needed anymore. You can just put the path at the end now.
    • Added the "-s" flag, to enable strict mode. Strict mode makes it so that you can only finish the game, if you fix all the mistakes you make.
    opened by hardliner66 0
Owner
Togglebit
Togglebit
rpg-cli is a bare-bones JRPG-inspired terminal game written in Rust

rpg-cli is a bare-bones JRPG-inspired terminal game written in Rust. It can work as an alternative to cd where you randomly encounter enemies as you change directories.

Facundo Olano 660 May 27, 2021
Terminal UI implementation and types for the Dark Forest game

dark-forest.rs Terminal UI implementation and types for the Dark Forest game Development We use the standard Rust toolchain cargo check

Georgios Konstantopoulos 63 Nov 12, 2022
A terminal battleship game in Rust

Battleship.rs A terminal battleship game in Rust. Run with docker: $ docker run --rm -it deepu105/battleship:main This is slightly different than the

Deepu K Sasidharan 56 Dec 19, 2022
A terminal based game engine

ccdb: The cmd game engine (Thats also multi threaded) How to use Tutorial Multi threading If you want to use multi threading you have to use ACore The

null 34 Oct 19, 2022
Terminal-based Snake game written in Rust without dependencies (for educational purposes).

RustSnake This is a simple terminal-based Snake game implemented in Rust without dependencies. To start the game type cargo run. Control the snake usi

Florian Wickert 88 Jan 6, 2023
A simple space shooter game. Runs in the terminal using characters-based UI. Fully written in Rust, using the "ruscii" library.

Thrust - a terminal shooter game Originally created as a project for the "Missing Semester" course at JKU Linz (338.006). The game is entirely written

Mathias Wöß 3 Jan 16, 2023
Victorem - easy UDP game server and client framework for creating simple 2D and 3D online game prototype in Rust.

Victorem Easy UDP game server and client framework for creating simple 2D and 3D online game prototype in Rust. Example Cargo.toml [dependencies] vict

Victor Winbringer 27 Jan 7, 2023
2-player game made with Rust and "ggez" engine, based on "Conway's Game of Life"

fight-for-your-life A 2-player game based on the "Conway's Game of Life", made with Rust and the game engine "ggez". Create shapes on the grid that wi

Petros 3 Oct 25, 2021
2d Endless Runner Game made with Bevy Game Engine

Cute-runner A 2d Endless Runner Game made with Bevy Game Engine. Table of contents Project Infos Usage Screenshots Disclaimer Project Infos Date: Sept

JoaoMarinho 2 Jul 15, 2022
A tetris game I wrote in rust using ncurses. I'm sure that there's a better way to write a tetris game, and the code may be sus, but it techinically works

rustetris A tetris game I wrote in rust using ncurses. I'm sure that there's a better way to write a tetris game, and the code may be sus, but it tech

Eric G 3 Oct 15, 2022
A game for the game jam "1-Button Jam 2021"

One click ninja A game for the game jam "1-Button Jam 2021" written in Rust with the Bevy engine. A rhythm game, where you play a soldier that can def

Alex Helfet 7 Apr 12, 2022
A game of snake written in Rust using the Bevy game engine, targeting WebGL2

Snake using the Bevy Game Engine Prerequisites cargo install cargo-make Build and serve WASM version Set your local ip address in Makefile.toml (loca

Michael Dorst 0 Dec 26, 2021
Wasm game of life - A Rust and WebAssembly tutorial implementing the Game of Life

wasm_game_of_life Conway's Game of Life in Rust and WebAssembly Contributing | Chat Built with ?? ?? by The Rust and WebAssembly Working Group About T

Rust and WebAssembly 236 Dec 24, 2022
My first attempt at game programming. This is a simple target shooting game built in macroquad.

sergio My first attempt at game programming. This is a simple target shooting game built in macroquad. Rules Hit a target to increase score by 1 Score

Laz 1 Jan 11, 2022
Conway's Game of Life implemented for Game Boy Advance in Rust

game-of-life An implementation of a Conway's Game of Life environment on GBA. The ultimate game should have two modes: Edit and Run mode which can be

Shane Snover 1 Feb 16, 2022
A game made in one week for the Bevy engine's first game jam

¿Quien es el MechaBurro? An entry for the first Bevy game jam following the theme of "Unfair Advantage." It was made in one week using the wonderful B

mike 20 Dec 23, 2022
A Client/Server game networking plugin using QUIC, for the Bevy game engine.

Bevy Quinnet A Client/Server game networking plugin using QUIC, for the Bevy game engine. Bevy Quinnet QUIC as a game networking protocol Features Roa

Gilles Henaux 65 Feb 20, 2023
Managed game servers, matchmaking, and DDoS mitigation that lets you focus on building your game

Managed game servers, matchmaking, and DDoS mitigation that lets you focus on building your game. Home - Docs - Twitter - Discord ?? Features Everythi

Rivet 58 Jun 25, 2023
Play jungle chess on the linux terminal.

Jungle-Chess This is my first project written in Rust. Happy for contributors and feedback! The code is dirty. Play Jungle Chess on an Emoji-Enabled L

Arne Winter 10 Aug 9, 2022