Monday, December 28, 2015

#PythonTuesday #Coding --- Loop / While True… ---- Let your code repeat forever…

CodeCombat! Let your code repeat forever...

At the level of “Fire Dancing”, our goals:
  • ·         Dodge the fireballs forever.
  • ·         Under 4 statements.


while True:

Level of “LOOP DA LOOP” -----

Our goals:
  • ·         Avoid the deadly lighting beam.
  • ·         Under 6 statements.




"Fire Dancing" Screenshot:

"LOOP DA LOOP" Screenshot:

No comments:

Post a Comment