diff --git a/lesson01/index.htm b/lesson01/index.htm index 30e4323..20d3189 100644 --- a/lesson01/index.htm +++ b/lesson01/index.htm @@ -49,7 +49,7 @@

So why will civIV use Python?

Image 1 - The garbled mess of a compiled program

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.

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.

-

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!!!!!

+

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!!!!!

How to install python

    @@ -65,7 +65,7 @@

    How to install python

    python -V -

    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.

    +

    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.

    conclusion

    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!

    @@ -73,4 +73,4 @@

    conclusion

    sthurlow.com

    - \ No newline at end of file + diff --git a/lesson02/index.htm b/lesson02/index.htm index a9bca36..4698867 100644 --- a/lesson02/index.htm +++ b/lesson02/index.htm @@ -85,8 +85,8 @@

    Math in Python

    >>> 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 @@ -233,4 +233,4 @@

    Conclusion

    sthurlow.com

    - \ No newline at end of file +