feb 16
in the news
code hosting
What did you folks find out?
Jim's project hosting
General google code hosting notes :
The "tron-bot-jim" project :
Asked about license for U Waterloo's starter_python_package.zip ... which is unclear.
subversion how-to
Subversion is one of many version-control systems;
it's the one powering the history for wikiacademia,
and one I've used before. Google Code supports it,
and that's what I chose there.
When I started using these years ago, CVS was all the rage. Then subversion came along, and lately Git and GitHub has a lot of buzz. (See for example
http://gist.github.com/mine .)
Here are a few links on revision control systems :
To use svn, first install it, e.g. the command line subversion.
On my Mac, I did that through MacPorts.
Then on your laptop, "check out" the code from the project.
This gives you a local copy of the remote files.
The idea is that you modify the local copy,
then "commit" changes to the remote repository.
$ svn checkout \
https://tron-bot-jim.googlecode.com/svn/trunk/ \
tron-bot-jim --username James.H.Mahoney
Password for 'James.H.Mahoney': <from-google-code-site>
That created the folder tron-bot-jim/ on my laptop.
Subsequent svn commands use the authentication stored
in its .svn/ subfolder.
Then I added content to tron-bot-jim/ on my laptop,
and added it to the repository with command like this :
$ cd tron-bot-jim/
$ mkdir maps/
$ cp ../python/maps/empty-room.txt maps/empty-room.txt
$ svn add maps
$ svn commit -m "a simple map"
Other commands : "svn status", "svn update", and many others - see the subversion documentation
debugging a tron bot
So the python tron bot reads from standard input to get its maps, and writes to standard output to give its moves.
How then do we put in debug stuff?
How do we test (for example) that state is preserved between moves?
... implement that as a class exercise.
other
- other python engines on forums; I haven't explored 'em yet.
- If time allows : strategy