Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/aksh-bansal-dev/terminal-pong

Simple ping-pong game for terminal written in Golang.
https://github.com/aksh-bansal-dev/terminal-pong

Last synced: 25 days ago
JSON representation

Simple ping-pong game for terminal written in Golang.

Awesome Lists containing this project

README

        

# terminal-pong

Simple ping-pong game for terminal written in Golang.

![Screenshot from 2022-12-22 13-46-21](https://user-images.githubusercontent.com/63552235/209088971-20f31219-23c2-4f46-83cd-ad64ef6d1ae1.png)

## How to play?

`a` and `f` to move player1 left and right respectively.

`h` and `l` to move player2 left and right respectively.

## Config

You can change various game setting in `config.json`

```
{
"rows": 25, // default 25
"cols": 100, // default 100
"ball-speed": 2, // default 2
"bat-speeed": 1 // default 1
"bat-length": 10 // default 8
}
```