https://github.com/kpanesar88/type-racer-backend
A simple console-based typing game built in C++ that challenges users to type a randomly generated sentence as quickly and accurately as possible. The project demonstrates basic use of the libcurl library to fetch data from an API, and includes functionality for timing user input and providing feedback on typing performance.
https://github.com/kpanesar88/type-racer-backend
api backend cpp curl-library simple-game
Last synced: 10 months ago
JSON representation
A simple console-based typing game built in C++ that challenges users to type a randomly generated sentence as quickly and accurately as possible. The project demonstrates basic use of the libcurl library to fetch data from an API, and includes functionality for timing user input and providing feedback on typing performance.
- Host: GitHub
- URL: https://github.com/kpanesar88/type-racer-backend
- Owner: kpanesar88
- Created: 2024-08-10T09:39:09.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-08-10T10:25:06.000Z (over 1 year ago)
- Last Synced: 2025-02-07T03:21:28.725Z (11 months ago)
- Topics: api, backend, cpp, curl-library, simple-game
- Language: C++
- Homepage:
- Size: 54.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# TypeRacer Game
This is a simple console-based typing game where users are given a sentence to type as quickly and accurately as possible. The sentence is fetched from an online API, and the user's performance is timed and evaluated.
## Features
- Fetches random text from an API.
- Measures the time taken to type the given sentence.
- Provides feedback on accuracy and typing speed.
## Prerequisites
To compile and run this project, you need the following:
- A C++ compiler (e.g., GCC, Clang, MSVC).
- [libcurl](https://curl.se/libcurl/) library for making HTTP requests.
- CMake (optional, but recommended for building the project).
## Installation
1. **Install libcurl**:
- On Linux (Debian/Ubuntu):
```bash
sudo apt-get install libcurl4-openssl-dev
```
- On macOS:
```bash
brew install curl
```
- On Windows:
- Download and install the latest version of [cURL for Windows](https://curl.se/windows/).
- Ensure that the `libcurl` library is linked in your project.
2. **Clone the repository**:
```bash
git clone https://github.com/yourusername/typeracer-game.git
cd typeracer-game
## Resources
- cURL Library: [cURL](https://curl.se/libcurl/)
- Corporate Generator Free API: [Corporate Generator](https://corporatebs-generator.sameerkumar.website)
- No File or Directory Found Solution: [Youtube](https://www.youtube.com/watch?v=y9MLOQxksbQ)