Reference Manual: (offline | online) Quickstart: (offline | online)

renpy.full_restart

Example

'The author would like to thank everyone who makes original
 English-language bishoujo games, and the people on the Lemmasoft forums
 who encouraged him.'

"We can't wait to see what you do with this. Good luck!"

$ minutes, seconds = divmod(int(renpy.get_game_runtime()), 60)
"It took you %(minutes)d minutes and %(seconds)d seconds to
 finish this demo."
       
$ renpy.full_restart()
Reference Manual: (offline | online) Quickstart: (offline | online)