Skip to content
/ thock Public

⌨️ A modern TUI typing game featuring online racing against friends.

License

Notifications You must be signed in to change notification settings

rmehri01/thock

Repository files navigation

thock

GitHub Actions Status Hackage

An example of an online game

Installation

Binary

Right now there are only binaries for Ubuntu and macOS under releases. Unfortunately there is no support for Windows but the Ubuntu binary will still work in WSL.

To use the binary you will have to put it on your PATH and may have to change permissions using chmod or allowing it in system preferences.

From Source

git clone https://github.com/rmehri01/thock.git
cd thock
stack install thock

Usage

English/Haskell Russian Description Game State
Esc Esc go back Any
^r retry Practice
^n / Enter ^т / Enter next quote Practice
r к signal your readiness Online game waiting room

Credit

The terminal UI is made using the amazing brick library and the online functionality was done using websockets. I also took a great amount of inspiration from other great projects such as hascard, monkeytype, and gotta-go-fast.