-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdecision_algorithm.py
More file actions
150 lines (132 loc) · 4.87 KB
/
decision_algorithm.py
File metadata and controls
150 lines (132 loc) · 4.87 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Decision Algorithm for Humanities Researchers
A Python learning kernel for ethical decision-making
MIT License - Feel free to modify and extend
Author: Individual researcher from Japan
"""
def main():
"""
Main function that demonstrates the 7-criteria decision framework
This is a learning kernel - SQL is your bookshelf for extensions
"""
# Display header with terminal styling
print("=" * 60)
print("/ThePosthumanIsHere")
print("$ python decision_algorithm.py")
print("=" * 60)
# The 7 decision criteria - core framework
criteria = [
{
"id": 1,
"question": "Is it ethical?",
"guidance": "If No, consider alternatives.",
"comment": "# Ethics first - fundamental check"
},
{
"id": 2,
"question": "Should it be done?",
"guidance": "Even if impossible now, it's possible to prepare for the future.",
"comment": "# Future preparation - strategic readiness"
},
{
"id": 3,
"question": "What global problems does it solve?",
"guidance": "Be ready to explain.",
"comment": "# Purpose clarity - impact focus"
},
{
"id": 4,
"question": "Does it widen inequality?",
"guidance": "If it reduces gaps, it can help people long-term.",
"comment": "# Social responsibility - equity check"
},
{
"id": 5,
"question": "Can you beat competitors?",
"guidance": "I recommend winning without fighting giant capital.",
"comment": "# Strategic advantage - David vs Goliath"
},
{
"id": 6,
"question": "Are defense costs manageable?",
"guidance": "Attackers might target single points of failure.",
"comment": "# Risk management - sustainability"
},
{
"id": 7,
"question": "Will you be proud of this as your legacy?",
"guidance": "If so, it's worth doing.",
"comment": "# Legacy test - personal meaning"
}
]
# Display each criterion with comments
for criterion in criteria:
print(f"[{criterion['id']}] {criterion['question']} → {criterion['guidance']}")
print(f" {criterion['comment']}") # Comments displayed in terminal
print() # Empty line for readability
# Inspirational message
print("Your challenge is not an obligation, but a privilege.")
print("From Japan, I wish you success.")
print()
# Technical comments section
display_comments()
# Demonstrate extensibility
demonstrate_customization()
def display_comments():
"""
Display technical implementation comments
Teaching Python concepts through practical example
"""
print("# Comments:")
print("# This code can be rewritten. SQL is your bookshelf.")
print("# You can add items or change the order as needed.")
print("# Consult with AI to modify it into your personalized 'decision engine.'")
print()
# Python learning elements
print("# Python Learning Elements:")
print("# - Lists and dictionaries for data structure")
print("# - Functions for code organization")
print("# - Loops for iteration")
print("# - String formatting for output")
print("# - Comments for documentation")
print()
def demonstrate_customization():
"""
Show how to extend the framework
This teaches Python modification concepts
"""
print("# Customization Example:")
print("# Add your own criterion:")
# Example of adding new criterion
new_criterion = {
"id": 8,
"question": "Does it align with my values?",
"guidance": "Personal alignment matters for long-term commitment.",
"comment": "# Personal fit - authenticity check"
}
print(f"# [{new_criterion['id']}] {new_criterion['question']} → {new_criterion['guidance']}")
print(f"# {new_criterion['comment']}")
print()
print("# To modify: Edit the 'criteria' list in main() function")
print("# To extend: Add database functionality, web interface, or AI integration")
print("# Remember: You think and supervise. AI supports your problem-solving.")
def get_user_input():
"""
Optional: Interactive mode for actual decision-making
Uncomment and modify as needed
"""
# project = input("Enter your project description: ")
# for criterion in criteria:
# response = input(f"{criterion['question']} (y/n): ")
# # Process responses here
pass
if __name__ == "__main__":
"""
This runs when the script is executed directly
Python convention for main execution
"""
main()
print("=" * 60)
print("$ # Ready for your next decision")