Files
python-bootcamp/simulation/__pycache__/HotdogSimulation.cpython-311.pyc
T

17 lines
2.6 KiB
Plaintext
Raw Normal View History

§
ÓqedÝãó.—ddlmZGd„de¦«ZdS)é)Ú
Simulationcó:—eZdZd d„Zd„Zd„Zdefd„Zd„Zd„Z dS)
ÚHotdogSimulationÚreturnNcó0—d|_d|_d|_dS)Néé
é)Ú
bites_leftÚ
ticks_leftÚ temperature©Úselfs ú=C:\Users\94473\python-bootcamp\simulation\HotdogSimulation.pyÚ__init__zHotdogSimulation.__init__s€ØˆŒØˆŒàˆÔÐÐócó —dddœS)NzEat one bite of the hot dog.z0Put the hot dog in the microwave for 30 seconds.)ÚeatÚ microwave©rs rÚget_useszHotdogSimulation.get_usess€ð2ØKð
ð
ð
rcó$—td¦«dS)NzDEBUG: simulation started.©Úprintrs rÚstartzHotdogSimulation.starts€Ý
Ð+Ñ,Ô,Ð,Ð,Ð,rcó"—d|vr;td¦«|xjdzc_|jdkrtd¦«dSd|vr<td¦«|xjd z
c_|jd
krtd ¦«dSntd ¦«d
S)Nru$DEBUG: someone ate the hot dog! 🌭éru!DEBUG: no more hot dog left! 🌭Fru+DEBUG: someone microwaved the hot dog! 🌭é(édu-DEBUG: hot dog got too hot and exploded! 🌭u%DEBUG: someone used the hot dog! 🌭T)rr r
)rÚargsÚkwargss rÚusezHotdogSimulation.uses¶€Ø �Dˆ=ˆ=Ý Ð9Ñ :Ô :Ð :Ø ˆOŒO˜qÑ ˆOŒOØŒ !Ò#Ð#ÝÐ:Ñ;Ô;Ð;Ø�uØ ˜$Ð Ð Ý Ð@Ñ AÔ AÐ AØ Ð Ô  Ñ "Ð Ô ØÔ #Ò%Ð%ÝÐFÑGÔGÐGØ�uð&õ
Ð:Ñ ;Ô ;Ð ;؈trcó~—|xjdzc_|xjdzc_|jdkrtd¦«dSdS)Nrr rz)DEBUG: simulation out of ticks, expiring.FT)r r
rrs rÚtickzHotdogSimulation.tick!sL€Ø ˆŒ˜1шŒØ ÐÔ˜BÑÐÔØ Œ?˜aÒ Ð Ý Ð>Ñ ?Ô ?Ð ?Ø�5؈trcó$—td¦«dS)NzDEBUG: simulation stopped.rrs rÚstopzHotdogSimulation.stop(s€Ý