No description
Find a file
2005-09-06 18:22:34 +00:00
img init 2005-09-06 17:52:46 +00:00
imgsource init 2005-09-06 17:52:46 +00:00
generate_goban_images.py init 2005-09-06 17:52:46 +00:00
goban.py init 2005-09-06 17:52:46 +00:00
helper.py init 2005-09-06 17:52:46 +00:00
init_webgo.py init 2005-09-06 17:52:46 +00:00
INSTALL updated install instructions. 2005-09-06 18:22:34 +00:00
login.py init 2005-09-06 17:52:46 +00:00
main.py init 2005-09-06 17:52:46 +00:00
mptest.py init 2005-09-06 17:52:46 +00:00
old_functions.py init 2005-09-06 17:52:46 +00:00
psql.py init 2005-09-06 17:52:46 +00:00
README updated install instructions. 2005-09-06 18:22:34 +00:00
ROADMAP init 2005-09-06 17:52:46 +00:00
test.py init 2005-09-06 17:52:46 +00:00
TODO init 2005-09-06 17:52:46 +00:00

------------------------------------------
developers only! this game is currently not playable!

main.py is the main script. call this from a browser.

the init_webgo.main() in main.py reinitializes the whole database on each call, so
comment the line out if you do not want that. init_webgo also creates two test users,
gast and gast2. password = username. you can use those to log in.
------------------------------------------
some code snippets for reference:


How to make the goban clickable:
	data += '<form method="post">'
	data += '<input type=image src="img/bottomrightline.png" name="untenrechts">'
	#insert rest of goban here
	data += '</form>'
	print data

How to extract the data from this POST with the cgi module:
	import cgi
	#get instance of fieldstorage
	form = cgi.FieldStorage()
	#if form == empty (which means if page is displayed for the first time):
	if form.keys() != []:
		#cut out the name of the clicked button
		print string.split(form.keys()[0],".x")[0]

------------------------------------------