Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jkapuscik2/es-chess
https://github.com/jkapuscik2/es-chess
Last synced: 8 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/jkapuscik2/es-chess
- Owner: jkapuscik2
- Created: 2020-10-18T13:44:47.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2020-10-18T15:21:32.000Z (about 4 years ago)
- Last Synced: 2024-11-07T04:43:57.324Z (about 2 months ago)
- Language: PHP
- Size: 564 KB
- Stars: 0
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
#### ES-Chess
Sample implementation of command line chess game based on the Event Sourcing.
### Available commands
Create new game
```
php bin/console chess:start PLAYER1_NAME PLAYER2_NAME GAME_NAME
```
Make new move
```
php bin/console chess:move GAME_ID PLAYER_NAME MOVE
```
Give up a game
```
php bin/console chess:give_up GAME_ID PLAYER_NAME
```### Installation
```
cp .env.example .env
composer install
php bin/console doctrine:migrations:migrate
```!["Demo"](sample.gif)