Skip to content

Commit 0f098f5

Browse files
committed
readme
1 parent 377f254 commit 0f098f5

File tree

2 files changed

+36
-1
lines changed

2 files changed

+36
-1
lines changed

README.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,37 @@
11
# lightningbot-python-interface
2+
23
A helper object to make Python 3 bots for lightningbot.tk.
4+
5+
## Getting Started
6+
7+
Clone this repo.
8+
9+
### Prerequisites
10+
11+
Python 3
12+
13+
### Running
14+
15+
Run a bot script to connect to the test server with that bot.
16+
17+
```
18+
python3 basic.py
19+
```
20+
21+
The game won't start unless there are at least 2 bots.
22+
23+
There's a script to run the same bot multiple times:
24+
25+
```
26+
./parallel_play.sh hilbert.py 2
27+
```
28+
29+
And this script makes the bot reconnect when the game is over to keep playing forever.
30+
31+
```
32+
./auto_play.sh snowflake.py
33+
```
34+
35+
## License
36+
37+
This project is licensed under the GNU General Public License - see the [LICENSE](LICENSE) file for details

fibonacci.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
fibonacci_numbers.append(fibonacci_numbers[i-1]+fibonacci_numbers[i-2])
1818

1919
side_length = 0
20-
turn_number = 1
20+
turn_number = 0
2121

2222
while bot.waitForNextTurnDirections():
2323

0 commit comments

Comments
 (0)