-
Notifications
You must be signed in to change notification settings - Fork 4
/
flippo.py
43 lines (38 loc) · 1.18 KB
/
flippo.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# -*- coding: utf-8 -*-
# RUNS ONLY IN PYTHON 3.
# python3 flippo.py
import time
import sys
animation = [" ┳━┳ ",
" ヽ ┳━┳ ",
" )ヽ ┳━┳ ",
" °)ヽ ┳━┳ ",
" -°)ヽ ┳━┳ ",
" °-°)ヽ ┳━┳ ",
" ヽ°-°)ヽ ┳━┳ ",
" (ヽ°-°)ヽ┳━┳ ",
" (ヽ°-°)ヽ┳━┳ ",
" (ヽ°-°)ヽ┳━┳ ",
" (╯ °□°)╯︵ ┻━┻ ",
"██████████████████",
" (ヽ°-°)ヽ ┻━┻ ",
" (ヽ°-°)ヽ ┻━┻ ",
" ノ(°-°ノ) ┻━┻ ",
" (°-°ノ) ┻━┻ ",
" °-°ノ) ┻━┻ ",
" -°ノ) ┻━┻ ",
" °ノ) ┻━┻ ",
" ノ) ┻━┻ ",
" ) ┻━┻ ",
" ┻━┻ "]
for i in range(len(animation)):
if i != 10 and i != 11:
sys.stdout.write(animation[i] + "\r",)
time.sleep(0.2)
else:
for i in range(1, 8):
sys.stdout.write(animation[10] + "\r",)
time.sleep(0.1)
sys.stdout.write(animation[11] + "\r",)
time.sleep(0.1)
sys.stdout.flush()