Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vvkin/bridg-it
Implementation of Bridg-It game (Game of Gale) with Python (Flask) and JavaScript using SocketIO
https://github.com/vvkin/bridg-it
alpha-beta-pruning flask flask-socketio game-theory socketio
Last synced: 27 days ago
JSON representation
Implementation of Bridg-It game (Game of Gale) with Python (Flask) and JavaScript using SocketIO
- Host: GitHub
- URL: https://github.com/vvkin/bridg-it
- Owner: vvkin
- License: mit
- Created: 2020-10-31T23:16:43.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2021-01-09T14:57:50.000Z (about 4 years ago)
- Last Synced: 2024-11-06T22:12:56.121Z (3 months ago)
- Topics: alpha-beta-pruning, flask, flask-socketio, game-theory, socketio
- Language: Python
- Homepage:
- Size: 76.2 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Bridg-It (Game of Gale)
Web implementation of GUI and AI for Brigd-It game with Python and SocketIO.
## Requirements
* `flask`
* `flask-socketio`
* `numpy`
* `eventlet`
## Run
Primarily, clone repository and go to application directory
```
git clone https://github.com/vvkin/knapsack-genetic/
cd bridg-it
```
Of course, you must have python installed on your computer.
Also you need a tool like pipenv.
To install it, just use pip
```
pip install pipenv
```
It's time to deal with requirements
```
pipenv install
pipenv shell
```
Finally, you are ready to run it
```
python game.py
```
After that just go to localhost:5000
## Rules
In that game you play against bot with different levels of difficulty. Rules are pretty simple — connect adjacent cells without intersection.
Your goal is to build connected line from one side to another. Of course, line direction depends on player color. Red player tries to build
horizontal line and can't connect cells on first and last rows, while blue player builds vertical line and can't connect cells on first and last
columns. The player who is the first to build such a line wins.
## Contributors
Vadym Kinchur, vvkin