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

https://github.com/crisboleda/bingo-game

Bingo Game
https://github.com/crisboleda/bingo-game

django django-rest-framework game in-progress pygame python3

Last synced: 2 months ago
JSON representation

Bingo Game

Awesome Lists containing this project

README

          

# Bingo Game

![Tests](https://github.com/crisboleda/Game-Bingo/actions/workflows/testing-action.yml/badge.svg?branch=master)
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
![Last commit](https://img.shields.io/github/last-commit/crisboleda/bingo-game?color=blue)

## About this project
Bingo is a game of chance in which players have a card with numbers on it. As the numbers are drawn, the participants complete their cards: the first to do so is the winner.

This project uses a desktop application made with Pygame that allows the generation of ballots. It also has an API made in Django that allows you to save the data generated in each game.

### How to use:

```
1. Clone repository
2. python -m venv env
3. source env/bin/active
4. pip install requirements.txt
5. python manage.py makemigrations
6. python manage.py migrate
7. python bingo-api/ApiBingo/manage.py runserver
```

### Run Balot Generator
```
python ./Project-Bingo/start.py --speaker='GTTS' --delay=5
```
| Parameter | Description |
| --------------------- | ------------------------------------------------------------------------------------ |
| --speaker | The library or software that you want to use for sound output (Default **'GTTS'**) |
| --delay | Waiting time to say another ballot (Default **5** seconds) |

### Tests
```
cd Project-Bingo
coverage run --source=. -m unittest discover -v -s tests/ -p "*_test.py"
```

### Things that were implemented:

- Pygame
- Multi-Theading
- CI - GitHub Actions
- Testing
- Code style