|
1 | 1 | # mafia
|
2 | 2 | :dollar: Web Server Application For Mafia Game Playing On Local Network
|
3 | 3 |
|
| 4 | +Playing mafia game made easy simply by having |
| 5 | ++ a system to run <b>mafia</b> on it (We call it FekroBot) |
| 6 | ++ a hotspot that can provide a local host for us (your WIFI modem or your mobile hotspot) |
| 7 | +There you go, lets play some mafia :sunglasses:. |
| 8 | + |
4 | 9 | ## Usage
|
5 | 10 | After cloning into mafia using command bellow:
|
6 | 11 | ```
|
7 |
| -$git clone https://github.com/sadrasabouri/mafia |
| 12 | +$ git clone https://github.com/sadrasabouri/mafia |
8 | 13 | ```
|
9 | 14 | You should do these tiny steps:
|
10 | 15 |
|
11 | 16 | 0. <b>[Install pip3]</b>
|
12 | 17 |
|
13 | 18 | First check if you have `pip3` installed in your system:
|
14 | 19 | ```
|
15 |
| -$pip3 --version |
| 20 | +$ pip3 --version |
16 | 21 | pip 20.0.2 from /usr/lib/python3/dist-packages/pip (python 3.8)
|
17 | 22 | ```
|
18 |
| -if you already have installed `pip3` youu should see something like above, otherwise run the command bellow to install it: |
| 23 | +if you already have installed `pip3` you should see something like above, otherwise run the command bellow to install it: |
19 | 24 | ```
|
20 |
| -$sudo apt install python3-pip |
| 25 | +$ sudo apt install python3-pip |
21 | 26 | ```
|
22 | 27 | 1. <b>Instaling requiremets:</b>
|
23 | 28 |
|
24 | 29 | Then install mafia requirements by
|
25 | 30 | ```
|
26 |
| -$pip3 install -r requirements.txt |
| 31 | +$ pip3 install -r requirements.txt |
27 | 32 | ```
|
28 | 33 | 3. <b>Run the server application</b>
|
29 | 34 |
|
30 | 35 | Now everything is ready, lets play:
|
31 | 36 | run the command `$python3 mafia.py number_of_players[int]`, for example imagine you want to play mafia with 5 players.
|
32 | 37 | ```
|
33 |
| -$python3 mafia.py 5 |
| 38 | +$ python3 mafia.py 5 |
34 | 39 | ```
|
35 | 40 | 4. <b>Getting roles</b>
|
36 | 41 |
|
37 | 42 | There you go, now each player can open a browser and type `serverhost:port_name`.
|
38 | 43 |
|
39 | 44 | In defualt mode your address should be `server_ip:5000`.
|
40 |
| -| What Player should see in the browser | What GOD should see in the CLI | |
| 45 | +| What player should see in the browser | What GOD should see in the CLI | |
41 | 46 | |:-------------------------------------:|:------------------------------:|
|
42 | 47 | | <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"> |
|
43 | 48 |
|
|
0 commit comments