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

https://github.com/genndy007/pig-game-ai

The dice game Pig with AI opponent. Written in Python3+PyGame.
https://github.com/genndy007/pig-game-ai

dice dice-game gui pig pygame python3 rng

Last synced: 4 months ago
JSON representation

The dice game Pig with AI opponent. Written in Python3+PyGame.

Awesome Lists containing this project

README

          

Pig - a simple dice game
---------------------
Pig is a game played with one dice, luck-based and strategy-based (a little).

Run
--------------
```
pip3 install pygame
```
```
python3 main.py
```

Rules
------------------
Here you play against an AI-bot. Your turn is first (love to user :) ).
Your goal is to gain 100 points faster than bot.
To gain points, you should roll the dice with corresponding button.
You can roll several times, then your turn score gets higher.
To save gained score, press Hold.
In case of one at the dice, your score for a turn gets equal to zero, and turn goes to bot.

Good luck!