https://github.com/sensorario/dnd
https://github.com/sensorario/dnd
dungeons-and-dragons
Last synced: 7 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/sensorario/dnd
- Owner: sensorario
- Created: 2018-07-09T18:57:49.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-09-28T07:48:24.000Z (about 7 years ago)
- Last Synced: 2025-01-19T19:45:47.126Z (9 months ago)
- Topics: dungeons-and-dragons
- Language: PHP
- Size: 29.3 KB
- Stars: 3
- Watchers: 4
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# DnD
[](https://travis-ci.com/sensorario/dnd)
## Usage
This command simulate the battle between two opponents. It shows just the
winner.```bash
php scripts/FightToTheDeath.php
```To see the complete fight it could be better to read the log (/logs/debug.log).
```
[2018-09-28 05:43:36] log.DEBUG Rupert infligge un danno di 12 a Norbert che aveva 42
[2018-09-28 05:43:36] log.DEBUG Norbert infligge un danno di 12 a Rupert che aveva 42
[2018-09-28 05:43:36] log.DEBUG Rupert infligge un danno di 11 a Norbert che aveva 30
[2018-09-28 05:43:36] log.DEBUG Norbert infligge un danno di 8 a Rupert che aveva 30
[2018-09-28 05:43:36] log.DEBUG Rupert infligge un danno di 13 a Norbert che aveva 19
[2018-09-28 05:43:36] log.DEBUG Norbert segna un colpo a vuoto
[2018-09-28 05:43:36] log.DEBUG Rupert infligge un danno di 8 a Norbert che aveva 6
```