Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/r2dev2/video-poker
Video poker project for Lynbrook Intro to CS.
https://github.com/r2dev2/video-poker
Last synced: 7 days ago
JSON representation
Video poker project for Lynbrook Intro to CS.
- Host: GitHub
- URL: https://github.com/r2dev2/video-poker
- Owner: r2dev2
- Created: 2020-02-07T00:55:22.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-12-18T05:23:48.000Z (about 4 years ago)
- Last Synced: 2024-11-09T06:44:55.518Z (2 months ago)
- Language: Python
- Size: 22.8 MB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# video-poker
Video poker project for Lynbrook Intro to CS. This supports a graphical user interface, audio, and online multiplayer.
## Setup
```bash
python3 setup.py
```## Usage
### Single Player
#### Text-based
```bash
python3 game.py
```With audio:
```bash
python3 game.py --audio
```#### Gui-based
```bash
python3 gui.py
```With audio:
```bash
python3 gui.py --audio
```### Double Player
1. On each client, run ``python3 client.py``.
2. One person must enter player 1 and the other must enter that he or she is player 2.
3. Once ``Sending has started``, run ``python3 host.py`` on the machine which will host this.
4. In the clients, enter your name (5 chars or less).
5. Enter in the number of credits you have.
6. Enter how much you want to bet.
7. Enter the indeces of the cards you want to hold.
8. Enter ``Y`` to continue or ``N`` to stop.
9. The winning player is displayed in the terminal with ``host.py``.## Other notes
* This project was made in an introduction to computer science class. Because of this, the code quality is not up to great standards.
* If running with audio is not working on your computer, you need to install vlc media player of the same version as your python. Example: for 32 bit python, you need 32 bit vlc.
* The multiplayer funcitonality uses predefined accounts on the Free Internet Chess Server. Therefore, two people cannot run the multiplayer at the same time. To change the anonymous accounts used, change the constants in ``host.py``. We did not know about servers during this project.