An open API service indexing awesome lists of open source software.

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.

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)