/go-typing-game

A typing game developed with Go

Primary LanguageGoMIT LicenseMIT

Go Typing Game

This is a simple typing game written in Go.

Play locally or with Docker and test your skills by correctly typing as many randomly selected words as you can. Your score is displayed at the end of the game. Enjoy!

image

Requirements

Docker

  • Docker
  • Docker Compose

Local

  • Go 1.20

Installation and Setup

Docker

  1. Clone the repository:
git clone https://github.com/takeshun256/go-typing-game.git
cd go-typing-game
  1. Build the Docker image and start the container:
make docker-build
  1. Enter the container and Start the game.
make docker-run
  1. Stop and remove the Docker container:
make docker-clean

Local

  1. Clone the repository:
git clone https://github.com/takeshun256/go-typing-game.git
cd go-typing-game
  1. Run the game:
make run
  1. or Build and Run the game:
make build
./main
  1. clean the binary executable file
make clean

How to Play

The game will randomly select a word from a list of words and prompt you to type the word. Your goal is to type as many words as possible within 60 seconds.

If you type the word correctly, you will score one point. If you make a mistake, no points will be awarded. After 60 seconds, the game will end and your score will be displayed.

Good luck!

Contributing

Thank you for your interest in contributing to this project! As this is a very small project, there may not be any specific guidelines for contributions. However, if you have any suggestions or improvements, please feel free to open an issue or a pull request. We appreciate any and all contributions to make this project better!