Running Instructions And Screenshots

User Manual:

Open the PDF directly: View PDF PDF.
Page Count: 2

DownloadRunning Instructions And Screenshots
Open PDF In BrowserView PDF
1. Run general.py by providing the command python general.py –f 0/1 [0: Not a traitor, 1 : traitor]

2. Run lieutenant.py by providing the command python lieutenant.py node_id is_traitor. For
example if I wanted to run lieutenant 1 and it is not a traitor then the command “python
lieutenant.py 1 f”
As an instance I have considered the general is not a traitor and gives the order retreat to all the
lieutenants and there are total 7 nodes in which lieutenants 5 and 6 are faulty. As there are 2
faulty nodes 3 rounds is required to get to a final decision to attack or retreat. As shown below
all the nodes comes to a final decision to retreat.
The orders shown below has the final decision and the path fro which it acquired to that
decision. For example ‘0,023’ means the order is considered to retreat and the path is 023 which
means 3 says 2 is telling that it received 0 from node 0.



Source Exif Data:
File Type                       : PDF
File Type Extension             : pdf
MIME Type                       : application/pdf
PDF Version                     : 1.5
Linearized                      : No
Page Count                      : 2
Language                        : en-US
Tagged PDF                      : Yes
Author                          : Veena Nalluri
Creator                         : Microsoft® Word 2016
Create Date                     : 2018:10:17 23:19:06-05:00
Modify Date                     : 2018:10:17 23:19:06-05:00
Producer                        : Microsoft® Word 2016
EXIF Metadata provided by EXIF.tools

Navigation menu