Running Instructions And Screenshots
User Manual:
Open the PDF directly: View PDF 
.
Page Count: 2

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. 
