@@ -7,7 +7,7 @@ After cloning into mafia using command bellow:
7
7
$git clone https://github.com/sadrasabouri/mafia
8
8
```
9
9
You should do these tiny steps:
10
- 1 . Instaling requiremets:
10
+ 0 . [ Install pip3 ]
11
11
First check if you have ` pip3 ` installed in your system:
12
12
```
13
13
$pip3 --version
@@ -17,23 +17,24 @@ if you already have installed `pip3` youu should see something like above, other
17
17
```
18
18
$sudo apt install python3-pip
19
19
```
20
- Otherwise/Then install <b >mafia</b > requirements by
20
+ 1 . Instaling requiremets:
21
+ Then install <b >mafia</b > requirements by
21
22
```
22
23
$pip3 install -r requirements.txt
23
24
```
25
+ 3 . Run the server application
24
26
Now everything is ready, lets play:
25
27
run the command ` $python3 mafia.py number_of_players[int] ` , for example imagine you want to play mafia with 5 players.
26
28
```
27
29
$python3 mafia.py 5
28
30
```
31
+ 4 . Getting roles
29
32
There you go, now each player can open a browser and type ` serverhost:port_name ` .
30
33
31
- In defualt mode your desired address should be ` server_ip:5000 ` .
32
-
33
- Each player should see a page like this in his/her browser:
34
- <img src =" https://raw.githubusercontent.com/sadrasabouri/mafia/README_update/doc/Pictures/mobile_browser.png " >
35
- And the GOD can track player's role by checking CLI:
36
- <img src =" https://raw.githubusercontent.com/sadrasabouri/mafia/README_update/doc/Pictures/CLI.png " >
34
+ In defualt mode your address should be ` server_ip:5000 ` .
35
+ | What Player should see in the browser | What GOD should see in the CLI |
36
+ | :-------------------------------------:| :------------------------------:|
37
+ | <img width =" 216 " height =" 384 " src =" https://raw.githubusercontent.com/sadrasabouri/mafia/README_update/doc/Pictures/mobile_browser.png " > | <img width =" 435 " height =" 204 " src =" https://raw.githubusercontent.com/sadrasabouri/mafia/README_update/doc/Pictures/CLI.png " > |
37
38
38
39
### Roles
39
40
| Role | image(s) |
0 commit comments