Saturday, 20 June 2020

Coding

Recently, I have been into coding, especially coding discord bots. In fact, if you are one of my classmates, you should totally go to our P5 GEP discord. I contributed a 'HW HELP' bot, which tells you all the hw for the day, and you can add more homework into there if you think that there is more.
Please do go there as it really helps keeping track of homework and you can take advantage of the bot

Hello again!

I know it has been a long time since I have posted anything, I'm sorry, but I have a feeling that I can revive this blog! I will continue posting every 2-3 days from now on. Thank you if you are reading this, it really means a lot to me.

Tuesday, 15 October 2019

My website

Hey guys!!!

Come and sub to me please!
Do also consider going to my google site for updates for new videos!

Thanks in advance!

Monday, 14 October 2019

Python Turtle Race

Hey guys! Sorry for the late posts, I was learning python(a coding language). I made a turtle race game where you can bet on a turtle and see if it wins!

Update in Brawl Stars:
No brawlers unlocked yet... *sigh*

Python:
Anyway, the 151 lines of code for the turtle race are down below. Here are steps to be able to bet and play in the turtle race game.


  1. Go and download pycharm
  2. Create a new folder
  3. Create a new python project called 'Turtle Race Game'
  4. Copy the code at the bottom of this post
  5. Run the project by clicking the green arrow button!

The Code to copy at step 4:

import turtle
import random
import time

wn = turtle.Screen()
wn.bgcolor("lightgreen")
wn.tracer(2)

sign = turtle.Turtle()
sign.penup()
sign.color("red")
sign.hideturtle()
sign.setposition(-360, -225)
word = ["T", "U", "R", "T", 'L', "E", " ", "R", "A", "C", "E"]
colour = ["red", "blue", "green", "yellow", "purple"]
for i in range(11):
    sign.setposition(sign.xcor() + 35, -225)
    sign.write(word[i], True, font=("Arial", 40, "normal"))
    if i > 5:
        sign.color(colour[i%5])
    else:
        sign.color(colour[i - 1])

winner = 0win = turtle.Turtle()
win.color("black")
win.shape("triangle")
win.penup()
win.hideturtle()

finish = turtle.Turtle()
finish.color("black")
finish.shape("triangle")
finish.penup()
finish.setposition(-250, 200)
finish.pendown()
finish.pensize(5)
finish.forward(500)
finish.hideturtle()
finish.penup()

t1 = turtle.Turtle()
t1.shape("turtle")
t1.color("red")
t1.penup()
t1.setposition(-200, -150)
t1.left(90)


t2 = turtle.Turtle()
t2.shape("turtle")
t2.color("blue")
t2.penup()
t2.setposition(-100, -150)
t2.left(90)

t3 = turtle.Turtle()
t3.shape("turtle")
t3.color("green")
t3.penup()
t3.setposition(-0, -150)
t3.left(90)

t4 = turtle.Turtle()
t4.shape("turtle")
t4.color("yellow")
t4.penup()
t4.setposition(100, -150)
t4.left(90)

t5 = turtle.Turtle()
t5.shape("turtle")
t5.color("purple")
t5.penup()
t5.setposition(200, -150)
t5.left(90)

def write(text, x, y):
    win.clear()
    win.setposition(x, y)
    win.write(text, True, font=("Arial", 18, "normal"))

t1.pendown()
t2.pendown()
t3.pendown()
t4.pendown()
t5.pendown()
wn.tracer(1)
write(3, 0, 250)
time.sleep(1)
write(2, 0, 250)
time.sleep(1)
write(1, 0, 250)
time.sleep(1)
write("Begin!", -25, 250)

while True:
    if t1.ycor() < 200:
        t1.forward(random.randint(0, 1))
    else:
        t1.setposition(t1.xcor(), 200)
        if winner == 0:
            winner = 1            write("Red turtle wins!", -80, 250)
        t1.right(20)

    if t2.ycor() < 200:
        t2.forward(random.randint(0, 1))
    else:
        t2.setposition(t2.xcor(), 200)
        if winner == 0:
            winner = 1            write("Blue turtle wins!", -85, 250)
        t2.right(20)

    if t3.ycor() < 200:
        t3.forward(random.randint(0, 1))
    else:
        t3.setposition(t3.xcor(), 200)
        if winner == 0:
            winner = 1            write("Green turtle wins!", -90, 250)
        t3.right(20)

    if t4.ycor() < 200:
        t4.forward(random.randint(0, 1))
    else:
        t4.setposition(t4.xcor(), 200)
        if winner == 0:
            winner = 1            write("Yellow turtle wins!", -95, 250)
        t4.right(20)

    if t5.ycor() < 200:
        t5.forward(random.randint(0, 100)/100)
    else:
        t5.setposition(t5.xcor(), 200)
        if winner == 0:
            winner = 1            write("Purple turtle wins!", -95, 250)
        t5.right(20)

Now, its time to enjoy the project! YAY :D !!!

Wednesday, 7 August 2019

6/8/2019

HELLO!!!
Today I won soccer!!! YEET!!! Also, during assembly, someone showed us a list of unsafe passwords. And guess what??? Mine is in there!!! AHHHHH!!! PANIC!!!

Sunday, 4 August 2019

5/8/2019

I’m sad. I can’t find my HW IN file!!! (Please comment if you can find it)

Anyway, today I LOST a match in soccer against the other team. 5 - 4. Seriously!!! Just 1 freaking point. All those shots are always out, out, and out. !!! Looks like i'll have to upgrade my skill.







4/8/2019

For P4 Gen/Fai:
Please finish your RRJ by tomorrow or you will be dead(I am doing it)

For P4 Gen/Fai/Pat
Recorder bring (I wrote this only because I have forgot to bring my recorder 4 times in a row)

For everyone
Please also note that I will try to post something every day but don't be shocked if I did not log in on a day. I must be busy.