Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions lesson01/index.htm
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ <h3>So why will civIV use Python?</h3>
<div align="center" class="ImageCaption">Image 1 - The garbled mess of a compiled program</div></div>
<p>Remember that garbled mess that you got when opening a program in notepad? Not much use to anyone, apart from the computer. And there is no reliable (or legal) way of turning that program back in to a programming language that you or I could understand.</p>
<p>The same is with Civ3 AI - it is compiled into a garbled mess. Nobody can understand it, and most of all, nobody can change it. Only Firaxis can change the AI, and they can't share the logic behind it with anyone.</p>
<p>With cIV, they decided to change that - they would leave the AI uncompiled in the language of Python, and have it compiled on-the-fly by an interpreter. This is so that Joe modder can look at the AI and change it, yet when it is neede to be used, the python interpreter turns it into 0s and 1s for your computer to understand. And it isn't permanently compiled into a garbled mess - you are still left with python code, that you can read, understand, and MODIFY!!!!!</p>
<p>With cIV, they decided to change that - they would leave the AI uncompiled in the language of Python, and have it compiled on-the-fly by an interpreter. This is so that Joe modder can look at the AI and change it, yet when it is needed to be used, the python interpreter turns it into 0s and 1s for your computer to understand. And it isn't permanently compiled into a garbled mess - you are still left with python code, that you can read, understand, and MODIFY!!!!!</p>

<h3>How to install python</h3>
<ol>
Expand All @@ -65,12 +65,12 @@ <h3>How to install python</h3>
python -V
</pre>
</div>
</div><p>If you forgot a CAPITAL V, you will accidently load python in verbose mode. Give it a go, see what happens. Just press CTRL-D to quit, or type 'quit' for quit instructions.</p>
</div><p>If you forgot a CAPITAL V, you will accidentally load python in verbose mode. Give it a go, see what happens. Just press CTRL-D to quit, or type 'quit' for quit instructions.</p>

<h3>conclusion</h3>
<p>Good work! Lesson 1 over! Next lesson, we learn our way around Python Interactive Mode, and write simple one-line pieces of code. I'll also have a lesson plan drawn up by then, so you can see where you are going. If any of our more experienced members have suggestions for the lesson plan, tell me!</p>
<p>Thanks to all,</p>
<p>sthurlow.com</p>

</div></div></body>
</html>
</html>
6 changes: 3 additions & 3 deletions lesson02/index.htm
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@ <h3>Math in Python</h3>
>>> print "one kilobyte is 2^10 bytes, or", 2**10, "bytes"
one kilobyte is 2^10 bytes, or 1024 bytes
(you can print sums and variables in a sentence.
The commas seperating each section are a way of
seperating clearly different things that you are printing)
The commas separating each section are a way of
separating clearly different things that you are printing)

>>> 21/3
7
Expand Down Expand Up @@ -233,4 +233,4 @@ <h3>Conclusion</h3>
<p>sthurlow.com</p>

</div></div></body>
</html>
</html>