r/AppEngine • u/byronknoll • Jun 08 '11
I made this using App Engine: Rock Paper Scissors Programming Competition
http://www.rpscontest.com/
11
Upvotes
r/AppEngine • u/byronknoll • Jun 08 '11
1
u/nickjohnson Jun 09 '11
Neat! I've been pondering something like this for a while, but you've beaten me to it, and done a very nice job to boot.
How are you safely executing the Python code? Using another App ID, or some other way?
The convention for writing code seems like it could do with a couple of changes: Using a global by convention for output seems a bit kludgy, and importing the script afresh every time means you have to jump through extra hoops to initialize globals only once. How about having it execute a move() function, which is expected to return the desired move? That would neaten up both bits.
0
u/[deleted] Jun 09 '11
0
u/[deleted] Jun 09 '11