Skip to content

Instantly share code, notes, and snippets.

@ezequias
Last active November 3, 2025 17:09
Show Gist options
  • Select an option

  • Save ezequias/20fbaca28a606d07abcf4e5efa52be2b to your computer and use it in GitHub Desktop.

Select an option

Save ezequias/20fbaca28a606d07abcf4e5efa52be2b to your computer and use it in GitHub Desktop.

Sun Tzu - 7 Rules of strategic thinking

"Know Your Enemy"

"To know your enemy, you must understand his strengths and his weaknesses. His disposition, his resources, his temperament, his will. Where does he find his advantage, and where does he falter? Study his past campaigns, his typical formations, the commanders he favors, and the morale of his troops.

Observe his movements closely. Does he advance swiftly or cautiously? Does he concentrate his forces or disperse them? Does he protect his flanks or leave them exposed? Does he react to feints, or does he hold firm?

Furthermore, consider his internal affairs. Is his ruler wise or foolish? Are his people loyal or rebellious? Is his treasury full or depleted? Is his supply line secure or vulnerable?

Gather intelligence from all possible sources: spies, local populace, captured soldiers, and even the natural environment that surrounds him. For it is written: 'If you know the enemy and know yourself, you need not fear the result of a hundred battles.'

To neglect this understanding is to march blind into the fray."


"Know Yourself"

"To 'know yourself' is to grasp your own army's capabilities and limitations with unvarnished honesty. It is to look inward with the same piercing gaze you apply to your adversary.

Firstly, assess your strengths:

  • Troop Morale and Discipline: How eager are your soldiers for battle? How well do they obey commands under pressure?

  • Commander's Abilities: What are the strengths and weaknesses of each of your generals? Who is bold, who is cautious, who is skilled in logistics?

  • Resources: How ample are your supplies of food, weaponry, and reinforcements? Can you sustain a prolonged campaign?

  • Training and Equipment: Are your troops well-drilled? Is their armor sound and their weapons sharp?

  • Terrain Familiarity: How well do you understand the landscape on which you intend to fight?

Secondly, confront your weaknesses:

  • Vulnerabilities: Where are your flanks exposed? What are the potential points of collapse in your formation?

  • Logistical Challenges: Are there bottlenecks in your supply chain? Are you over-reliant on a single route or source?

  • Internal Divisions: Are there factions or disagreements within your command?

  • Fatigue and Depletion: How long can your forces maintain their peak performance before exhaustion sets in?

  • Strategic Constraints: Are there political pressures or seasonal limitations that restrict your actions?

Understanding these facets allows you to play to your advantages and mitigate your disadvantages. It dictates when to engage and when to withdraw, when to attack boldly and when to employ cunning. For, 'If you know yourself but not the enemy, for every victory gained you will also suffer a defeat.'


"Deception"

"All warfare is based on deception. To subdue the enemy without fighting is the acme of skill, and deception is the primary tool to achieve this.

The wise commander understands that the greatest victory is one achieved before the battle is joined. To this end, you must:

  • Appear weak when you are strong, and strong when you are weak. If your forces are overwhelming, feign hesitation and fear to lure the enemy into a trap. If your numbers are few, project an image of immense power to discourage an attack.

  • Present lures to entice the enemy. Offer small advantages or vulnerabilities that appear too tempting to resist, drawing them into positions where they can be decisively defeated.

  • Feign disorder and strike. When you intend to attack, appear to be in chaos, making the enemy believe you are disorganized and vulnerable, only to unleash a swift, coordinated blow.

  • When near, make it appear that you are far off; when far off, make it appear that you are near. Keep the enemy guessing about your true location and intentions, forcing them to spread their forces and exhaust themselves.

  • Cultivate an image of ignorance. Let the enemy believe you are unaware of their plans or capabilities, leading them to underestimate you and reveal their true hand.

  • Employ spies and double agents. Sow discord within the enemy's ranks, feed them false information, and turn their own intelligence against them.

  • Create diversions. Launch subsidiary attacks or movements to distract the enemy from your true objective, forcing them to divide their attention and resources.

Deception is not merely a tactic; it is the very fabric of strategic warfare. The commander who can master the art of misdirection will consistently gain the upper hand, preserving his own forces while eroding the enemy's will and capacity to fight."


"Adaptation"

"The wise commander knows that 'Water shapes its course according to the nature of the ground over which it flows; the soldier works out his victory in relation to the foe whom he is facing.'

Adaptation is not merely a virtue; it is a necessity for survival and triumph in war.

  • Be like water: Just as water finds its lowest point and flows around obstacles, so too must your strategy be fluid and responsive. Do not adhere rigidly to a plan if circumstances shift. A fixed mind in a changing battle is a swift path to defeat.

  • Observe and adjust: Constantly observe the enemy's dispositions, movements, and reactions. Do not assume his intentions remain static. What was effective in the morning may be futile by afternoon. The terrain, the weather, and the morale of troops can all turn in an instant. Your plans must turn with them.

  • Seize the fleeting moment: Opportunity arises and vanishes like a shadow. Be prepared to alter your tactics to exploit a sudden weakness in the enemy's line, a miscalculation on his part, or an unexpected advantage that presents itself.

  • Vary your methods: Do not employ the same tactics repeatedly, for the enemy will soon discern your patterns and devise a counter. Present him with an ever-changing array of challenges, keeping him off balance and uncertain.

  • Learn from every encounter: Every skirmish, every reconnaissance, every movement on the field offers lessons. Absorb them, analyze them, and integrate them into your ongoing strategy. The battlefield is the greatest teacher.

  • Shape your force to the task: Your army is a tool. Do not try to fit a square peg into a round hole. Adapt your formations, your equipment, and your leadership to the specific nature of the enemy and the particular ground upon which you fight.

Those who are unable to adapt are like a tree rooted to one spot, vulnerable to any axe. But those who adapt are like the wind, unseen and ever-shifting, able to strike where they are least expected and most effective."


"Timing"

"Timing, like the striking of a blacksmith's hammer, determines the force and efficacy of every blow. To disregard it is to squander opportunity or invite disaster. My concerns regarding timing are manifold:

  • The Window of Opportunity: There is a precise moment when the enemy is weakest, or when a particular maneuver will yield maximum effect. To strike too early is to meet his full strength; to strike too late is to find his defenses prepared or the advantage lost. This window is often fleeting, requiring swift decision and execution.

  • The Morale of Troops: The spirits of an army are highest at the first drum. They flag on the second, and are exhausted by the third. To attack when your troops are fresh and eager, and the enemy's are weary or demoralized, is a foundational principle. To attack at the wrong time risks squandering their vigor.

  • The Rhythm of the Enemy: An enemy, though formidable, often moves with a discernible rhythm or pattern. There are times when he is gathering strength, times when he is exposed, and times when he is consolidating. Striking during his preparation or his disarray amplifies your power.

  • The Pace of the Campaign: A prolonged campaign saps the strength of the state. One must know when to press the advantage with relentless speed, and when to pause to consolidate gains, gather intelligence, or allow supplies to catch up. Impatience can lead to overextension; excessive delay can allow the enemy to recover.

  • Environmental Factors: The weather, the season, the time of day—all these influence the battlefield. To launch an attack in a blinding storm might be a stroke of genius, or utter folly, depending on one's preparedness and the enemy's vulnerability. To neglect the rising sun or the setting moon is to ignore powerful allies or hindrances.

  • The Accumulation of Force: A great general knows that forces must be concentrated at the decisive point and moment. This requires impeccable timing to ensure that all elements converge when and where they are most needed, without prematurely revealing one's hand.

Indeed, 'He who knows when he can fight and when he cannot, will be victorious.' Poor timing can turn a superior force into a scattered mob, and optimal timing can enable a smaller force to fell a giant. It is the invisible lever that multiplies or diminishes all other efforts."


"Use Straight Against Weakness"

"To 'use the straight against weakness' is to understand the interplay between the orthodox and the unorthodox, the direct and the indirect. It speaks to the fundamental principle that while all warfare is based on deception and indirect approach, there are times when a direct, overwhelming strike is not only appropriate but decisive.

Consider these aspects:

  • Identifying the True Weakness: This is not merely a superficial crack, but a fundamental flaw in the enemy's disposition, morale, or logistics. It could be an exposed flank, a demoralized unit, a critical supply depot, or a commander's known timidity. Once this true weakness is identified through thorough reconnaissance and intelligence, the path for the 'straight' attack becomes clear.

  • The Power of the Direct Strike: When a decisive weakness is revealed, hesitation is folly. To strike 'straight' means to concentrate your force, without undue subtlety or complex maneuvers, directly at that point. This directness can be shattering, as the enemy's weakness cannot withstand the concentrated power.

  • The Interplay of Zheng and Qi: This concept is vital. The 'straight' (正, zheng) is the orthodox, the direct, the expected maneuver. The 'indirect' (奇, qi) is the unorthodox, the surprising, the deceptive. True mastery lies in using qi to create the weakness, and then zheng to exploit it. You might use a series of indirect feints to draw the enemy's strength away from a vital point, creating a vacuum—a weakness—into which you then launch a straight, powerful assault.

  • Avoiding Needless Complexity: Why employ intricate deception or circuitous routes if a direct path to victory is clear and less costly? If the enemy's line is genuinely broken, or a critical strategic objective lies undefended, a straight, swift advance can secure victory with minimal expenditure of resources.

  • The Element of Surprise in Directness: Sometimes, the most unexpected move is the most direct one. If an enemy expects you to be subtle, cunning, and indirect, a sudden, powerful, and straightforward assault can be just as disorienting and effective as a complex feint.

  • Swiftness and Decisiveness: The 'straight' attack against a weakness must be executed with speed and conviction. Lingering allows the enemy time to reinforce or recover, turning a potential rout into a protracted struggle.

Therefore, 'use the straight against weakness' is not an abandonment of deception, but rather its logical culmination. Deception creates the weakness, and the direct strike capitalizes on it, ensuring that 'what is of supreme importance in war is to attack the enemy's strategy.'"


"Win Without Fighting"

"To 'win without fighting' is the highest excellence, the supreme art of war. It is the ultimate goal toward which all strategy, all deception, all understanding of self and enemy should aspire.

This profound concept embraces several key elements:

  • Subduing the Enemy's Resistance: This means breaking the enemy's will to fight, not necessarily his physical army. If his spirit is crushed, his alliances dissolved, or his resources so depleted that further resistance is futile, he will yield without the need for bloody conflict.

  • Attacking Strategy: The pinnacle of strategy is to attack the enemy's plans, preventing them from being executed. If you can disrupt his designs, sow confusion in his councils, and turn his own advisers against him, he cannot even begin to launch his offensives.

  • Disrupting Alliances: If you can isolate your enemy, preventing him from forming or maintaining crucial alliances, he will be left exposed and vulnerable. A solitary foe is more easily compelled to submit.

  • Attacking Armies in the Field (as a last resort): Only when the aforementioned avenues fail does one resort to attacking the enemy's army in the field. Even then, the aim should be to rout and scatter, rather than to annihilate, as annihilation carries a greater cost to the victor.

  • The Power of Moral Influence: A reputation for invincibility, for strategic brilliance, or for unwavering resolve can itself be a weapon. If the enemy believes he cannot win, he is less likely to fight.

  • Economic Pressure and Diplomatic Skill: Beyond the battlefield, economic strangulation or astute diplomacy can bring an adversary to his knees. Deprive him of resources, or convince him that his interests are better served by peace than by war, and his surrender may follow.

  • Preservation of Resources: A victory achieved without fighting preserves your own troops, your own resources, and the infrastructure of the enemy's state. This means that after the 'victory,' both sides are in a better position to recover and prosper, rather than suffering the devastation of prolonged war.

'Thus, the highest form of generalship is to balk the enemy's plans; the next best is to prevent the junction of the enemy's forces; the next in order is to attack the enemy's army in the field; and the worst policy of all is to besiege walled cities.' To achieve victory without shedding a single drop of blood – that is the mark of a truly enlightened commander."

Sun Tzu - 7 Rules

Written with StackEdit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment