Given a list of transactions between individuals in the form A,B,X, where A owes B X amount of money. The DebtGuardian system can process these transactions and provide insights into the financial relationships between individuals.
- Process Transactions: The system must take a list of transactions in the form A,B,X and process them to update the respective debts between the individuals involved.
- Query Debt Owed by Person: A user must be able to query how much debt a specific person owes to all other users.
- Query Money Owed to Person: A user must be able to query how much money is owed to a specific person by all other users.
- Query Person with Most Money Owed: The system should be able to identify the person to whom the most money is owed.
- Query Person with Most Debt: The system should be able to identify the person who owes the most money to others.
- Command Line Interface: The system should provide a command-line interface for users to input transactions and query the insights mentioned above.
- Clone the repository to your local machine.
- Ensure that you have Golang installed on your machine.
- Open a terminal and navigate to the directory where the repository is cloned.
- Run the
go mod tidy
command to ensure you have all the required modules present. - Run the
go build
command to ensure the binary is made, and the build is done. - Run the main game file using the go run command:
go run main.go
. - Follow the on-screen instructions to access DebtGuardian. Use the keyboard to input your choices during the game.
- Have hassle free debts using DebtGuardian
If you would like to contribute to the game, feel free to submit a pull request. Please make sure to follow the coding standards and include appropriate comments in your code. Also, update the README.md file with any necessary changes.