Skip to content

Commit c01c1cc

Browse files
authored
Virus Visualization (#68)
* Spam Bot It will spam anything u save in spam.txt, on WhatsApp Instagram etc * Snake Game This is the retro snake game I made , it uses turtle, randrange, square and vector library , for the implementation I made three functions change, inside and move responsible for changing direction, to check if it is within boundaries and to move respectively, and onkey is also used to define to change the snake's direction to left right up and down * Rock Paper Scissors Game A simple rock paper scissor game program , random library used to use randInt, the user inputs what he has to choose between rock paper scissor which are labelled as 1, 2,0 respectively and random integer generated for the computer and if u win lose or match drawn , the message is displayed accordingly. * Delete rock_paper_scissors.py * Virus It is a virus program which duplicates itself into all the files with extension .py , .pyw ,.cpp , .c containing in the same folder as this file. For its implementation sys and glob libraries used to open the files and reading their extensions respectively . A loop is used , to check whether the file is corrupted or not with the checking condition "#START OF VIRUS#" , like if start of virus not present in the file then it will be corrupted. * Virus Visualization It is a program which draws a virus in green with a black background . Turtle library and its various functions used , implemented using while loop with appropriate conditions.
1 parent 9769b31 commit c01c1cc

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

virus_graphic.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
import turtle
2+
3+
a = 0
4+
b = 0
5+
6+
turtle.bgcolor("black")
7+
turtle.speed(0)
8+
turtle.pencolor("green")
9+
turtle.penup()
10+
turtle.goto(0, 200)
11+
turtle.pendown()
12+
13+
while True:
14+
turtle.forward(a)
15+
turtle.right(b)
16+
a += 3
17+
b += 1
18+
if b == 200:
19+
break
20+
turtle.exitonclick()

0 commit comments

Comments
 (0)