cgi-script almost working
Progress? - Fixed .dll files that were the wrong ones for cx_freeze win32 - Created "internal" agents, and made AgentBishop one of them - Implemented terrible wrapper class that runs an internal agent in a seperate python process - This is for when timeouts are used - select == better than threads - TimeoutPlayer appears to not work properly anyway - Tested win32 version (script and frozen binary) - ExternalAgent seems to break - TimeoutPlayer seems to break (even more than normal) - Pretty much everything breaks actually - More things seem to break with the frozen binary than with the script - Amazingly the pygame interface doesn't break, just the fancy threading/subprocess/socket/file related stuff - Somehow, the InternalAgents, ie: AgentBishop were working - So windows users can play the python sample agents, but otherwise the program is pretty useless - Implemented the --log and --file arguments - Get an error if the game hasn't actually finished when using --file, should probably fix - It might be cool to let people use --file for a set number of moves, and then continue play from that position - Would need more work... - When graphics are disabled, the game still works - But I need to test it on a server that doesn't have pygame at all TODO: Finish the qchess program and actually work on setting up the competition.
Self inflicted wounds using cx_freeze The pain is freezing me. I've been trying to freeze the qchess.py script into a win32 binary, so that windows people don't need to install python. Except I've realised that they will probably install python to enter anyway, since it is the easiest language. HER DURP. I mostly got cx_freeze to work. Fun tip: Unicode strings cause segmentation faults So wrote hacky script to save unicode characters to png files, then use png files in frozen versions. cx_freeze in linux worked amazingly well. For windows... I installed python and cx_freeze in wine... this was probably a mistake, because all the dll files were missing. But I found all the dll files, so that's fixed. qchess.exe works in wine, but can't load python agent programs... because windows doesn't understand #! Well, fuck. Also annoying bug with Tk open file dialog mouse which I cannot be bothered chasing. Tried hacky batch file, but it doesn't work in wine. Will try in Windows 7 soon. PS: Also changed directory structure somewhat. Ironically, using cx_freeze doesn't result in freezing programs!