Harvey Hellewell

@HarveyH (93) • Netherwood Academy
i like turtles
22
HOS (Hellewell Operating System)
HOS is a basic text based operating system that is similar to DOS. HOS is only able to do a limited amount of things. However, in the future I will be adding more to HOS. Since this is an operating system, you can link me your python repls to me and I will try my best to add them in (I will credit your name). New features: 29/09/18: BTB, converts binary to backslashes (made by @HappyFakeboulde), add, subtract, time and divide are all now implemented. 30/09/18: 1d Terrain Gen v2 (made by @HappyFakeboulde) makes 1d randomly generated terrain. The system is now faster at installing. You can now see how much space is left (You can still install everything)! The feature 'install everything' has been removed due to difficulties with the new storage system. 2/10/18: 'squared' and 'cubed' have been added. The storage space has been increased from 75 bytes to 90 bytes. News: 29/09/18: We have reached the 5 upvotes goal! Can we reach 10? We have reached the 300 lines of code goal! Can we reach 400? We have been upvoted by @timmy_i_chen! We have had our first usercreated programme! Can we reach 5 of them? 30/9/18: We have reached the 400 lines of code mark! Can we reach 500? 2/10/18: We have reached the 500 lines of code mark! Can we reach 750? This is now my most popular repl in terms of upvotes in front of LuaH ( https://repl.it/@HarveyH/LuaH ) and have the same amount of comments! 3/10/18: GREAT NEWS, I have been put on the repl.it newsletter, I am very honoured 😁 5/10/18: We have reached the 10 upvotes goal! It would be amazing if we could 15! 16/10/18: I can't believe it! We have reached 15 upvotes! Can we reach 20 (because right now, that would be amazing!)?
39
posted to Share by HarveyH (93) 8 months ago
9
Ideas for the Challenge Tab
Here is a couple of ideas for the Challenge tab repl.it team, you could do OS's, or maybe programming languages. You could also have connect4. I have seen a lot of these in the repl.it 'share' section so those could be a possibility for the next challenge.
12
posted to Ask by HarveyH (93) 5 months ago
7
Ideas for Games
I have ran out of ideas for Python (games specifically), so if you could give me any ideas for games, that would be great!
9
posted to Ask by HarveyH (93) 5 months ago
5
LuaH, my own coding language!
This is my own coding language I have developed! To learn and for details, check out https://repl.it/@HarveyH/LuaH-Learning ! From now on, I will be recreating my previous repls with LuaH. Here is my list so far: https://repl.it/@HarveyH/NanoClocklh I have now added a 'Userhelp folder' for anyone who needs help. It includes already written code for you to copy and paste (Imports.lh) and a tutorial for you to learn (Tutorial.txt). You do the actual coding for LuaH at the bottom underneath environment.
24
posted to Share by HarveyH (93) 10 months ago
4
Connect 4 Terminal Edition
It's just connect 4, but in the terminal!
5
posted to Share by HarveyH (93) 5 months ago
answered
4
Will I get banned for my new profile pic?
(For the repl team).
8
posted to Ask by HarveyH (93) 7 months ago
answered
5
What else could I do in python? (again)
I am a beginner in python and I do not know what to do next. I have already done a clock, calculator, random number generator, a simple coding language and a tutorial on how to use that programming language. Does anyone have any ideas?
8
posted to Ask by HarveyH (93) 9 months ago
answered
2
My python repl isn't working...
My notepad i am coding isn't working, can you tell me why? ![Capture1](https://storage.googleapis.com/replit/images/1533636908312_500b6c12e6ade9c77a1365ab0e7743c9.pn)
14
posted to Ask by HarveyH (93) 10 months ago
2
Connect4 - PyGame Edition (8-Bit Graphics!)
Connect4! The well known meme of all games that aren't video games, now in PyGame! It has 8-Bit graphics to enjoy! It also supports touch-screen! So you can play it on the go! There is a bug where when you drop a piece it might be a couple of pixels off but I will be updating it to fix that! I will also be adding an game over screen and possibly an animation for pieces dropping! Graphics may also be updated. I hope you like my first graphics game on repl.it using the new feature as of this post!
3
posted to Share by HarveyH (93) 2 months ago
3
NanoClock
It's a simple clock that I have developed. If you want to check out my recreation of this using my own coding language, LuaH, go here --> https://repl.it/@HarveyH/NanoClocklh
9
posted to Share by HarveyH (93) 10 months ago
3
How to learn LuaH!
This is a tutorial to get you started on my very own coding language, LuaH! To practice your code, go to https://repl.it/@HarveyH/LuaH . If you want to use this code for yourself, copy all the code at https://repl.it/@HarveyH/LuaH and credit the creators name. From now on, I will be recreating my previous repls with LuaH. Here is my list so far: https://repl.it/@HarveyH/NanoClocklh
6
posted to Share by HarveyH (93) 10 months ago
answered
2
Help on Python Turtle
Can you convert this code so that it'll work on repl.it please? ```py wn.onkeypress(circle, "o") ``` The variables are all defined.
6
posted to Ask by HarveyH (93) 7 months ago
answered
1
How do I fix this bug?
I have a bug in my game but I don't know how to fix... ![Capture3](https://storage.googleapis.com/replit/images/1535009103116_32af127a4ccee708c3ce55498df116d1.pn) It is where you can type in the question to get the question right.
10
posted to Ask by HarveyH (93) 9 months ago
answered
2
I have a little problem.
I have a minor problem that I hope you'll fix. It's just a little bit annoying. But, when i run my programme, sometimes half the word is on one line and the other on the line below. Can you fix this pls?
6
posted to Ask by HarveyH (93) 10 months ago
answered
3
Will you ever be able to search repls in repl talk?
What the title says
2
posted to Ask by HarveyH (93) 9 months ago
2
Multiplayer Maths Game
This is a fun multiplayer maths game where you have to get more questions right than the other player. It starts out easy at first but slowly becomes harder the more answers you get right. If you get an answer wrong, than it's player two's turn and if they get an answer wrong... Then the game ends and decide who has won. This is my first ACTUAL game so I hope you enjoy! Here is different difficulty's of the game: https://repl.it/@HarveyH/MULTI-MATHS-VERY-EASY-MODE https://repl.it/@HarveyH/MULTI-MATHS-EASY-MODE https://repl.it/@HarveyH/MULTI-MATHS-HARD-MODE https://repl.it/@HarveyH/MULTI-MATHS-VERY-HARD-MODE
4
posted to Share by HarveyH (93) 9 months ago
2
Random Number Generator
A basic number generator with built in error messages to stop you having to restart the software. Here is a list of versions: https://repl.it/@HarveyH/Random-Number-Generator-v101 https://repl.it/@HarveyH/Random-Number-Generator
4
posted to Share by HarveyH (93) 10 months ago
3
Decoder
This is something I made for fun. After you've got the secret code, put the code into this repl https://repl.it/@HarveyH/Decoder-Output to get your original message.
1
posted to Share by HarveyH (93) 9 months ago
2
Mistakes folder
If you are having any errors, pop bye to see if the solution is in here. This folder will grow the more mistake I encounter. Also, you can tell me some mistakes you've encountered so that this mistakes folder expands as well. This is just for anyone having some trouble with python. However, if you tell me of an error, make sure to tell me wich language it is so I can make a folder for that language. I hope this helps you! I will be updating the folder every 10am Great Britian Time.
3
posted to Share by HarveyH (93) 9 months ago
2
Calculator.py
This is my calculator! And yes, I know, percentage, fraction and divide doesn't give the correct answer sometimes. I don't know how to fix that yet... If you could help me or tell me about a bug other then the one mentioned above, that would be great!
3
posted to Share by HarveyH (93) 10 months ago
1
Expansion - Simulation
*Note: if you want to play the game, export the folder 'Expansion' to your computer and open the exe file as it is made from small basic which isn't supported on repl.it. Do NOT run this on repl.it, or else it will tell you basically what I just said. Expansion is a simulation where you pick from a variety of maps and click on a point on the land to spawn a person and the person tries to explore the map and leaves a trail where it was. Warning, zooming and panning the camera is kind of buggy so try not do it. Feel free to make and share any mods in this comment thread. For example a mod that adds more maps, changes the behaviour of the person or just one which changes up the colour.
2
posted to Share by HarveyH (93) 1 month ago
2
What is the resolution of the console at full size?
:|
2
posted to Ask by HarveyH (93) 8 months ago
answered
1
Proof for MS SmallBasic for repl.it?
I tried messing about with the ability to drag files into repl.it. I stumbled across this: ![sb_proof_for_replit1](https://storage.googleapis.com/replit/images/1546365704368_67547c30d6190f3da07742d174150242.pn) So repl team, are you making Microsoft Small Basic for Repl.it?
3
posted to Ask by HarveyH (93) 5 months ago
2
PolyBit
PolyBit is a C++ Kernel (or OS if you prefer that) and is very early in development. *** # How to get your software into PolyBit Just send me the repl (it has to be in C++ or C++11), specify if you want the standard blue colour, a different colo(u)r, or plain old white. Here is a list of colo(u)rs you can use: + Red + Magenta (basically purple) + Orange (basically yellow) + Green + Cyan + White Have any ideas for the OS/kernel and I will try to implement them. *** # Stages of Development + Pre-Alpha: Build 0 - 19 + Alpha: Build 20 - 36 + Beta: Build 37 - Current Version *** I hope you enjoy it as it is my first C++ post!
0
posted to Share by HarveyH (93) 4 months ago
1
Export Files
Can you add the ability to export file from the website onto your computer? I think that would be really cool! I know it would be REALLY hard to this, but if you can, that would be great!
3
posted to Ask by HarveyH (93) 5 months ago
1
HScript (Programming Language)
HScript is a sequal to LuaH and is currently early in development. If you find any errors, or come up with any ideas, just comment them down bellow.
3
posted to Share by HarveyH (93) 5 months ago
1
Connect4 Money Edition - 8-Bit Graphics
The money version of Connect4!
2
posted to Share by HarveyH (93) 2 months ago
2
PONG
# **Not Exactly on Repl.it... ** **Since repl.it is a bit weird with Python Turtle, I'll just give you the code to copy and paste in to another program that's not online, something like PyCharm.** *** # **PONG - Multiplayer** ```py import turtle import time import random #import winsound wn = turtle.Screen() wn.title("PONG") wn.bgcolor("black") wn.setup(width=800, height=600) wn.tracer(0) # score score_a = 0 score_b = 0 # Paddle 1 paddle_a = turtle.Turtle() paddle_a.speed(0) paddle_a.shape("square") paddle_a.color("red") paddle_a.shapesize(5, 1) paddle_a.penup() paddle_a.goto(-350, -50) # Paddle 2 paddle_b = turtle.Turtle() paddle_b.speed(0) paddle_b.shape("square") paddle_b.color("blue") paddle_b.shapesize(5, 1) paddle_b.penup() paddle_b.goto(350, 0) # Ball ball = turtle.Turtle() ball.speed(0) ball.shape("circle") ball.color("green") ball.shapesize(1, 1) ball.penup() ball.goto(345, 0) ball.dx = 1 ball.dy = 1 # Function wait = time.sleep # pen pen = turtle.Turtle() pen.speed(0) pen.color("white") pen.penup() pen.hideturtle() pen.goto(0, 260) pen.write("Controls, w and s for left, and Up arrow and Down arrow for right.", align="center", font=("Courier", 14, "normal")) wait(3) pen.clear() pen.write("When the ball is going to your opponent, do NOT press any keys.", align="center", font=("Courier", 14, "normal")) wait(3) pen.clear() pen.write("Player: 0 Player B: 0", align="center", font=("Courier", 24, "normal")) def paddle_a_up(): y = paddle_a.ycor() y += 25 paddle_a.sety(y) def paddle_a_down(): y = paddle_a.ycor() y += -25 paddle_a.sety(y) def paddle_b_up(): y = paddle_b.ycor() y += 25 paddle_b.sety(y) def paddle_b_down(): y = paddle_b.ycor() y += -25 paddle_b.sety(y) # Keyboard Binding wn.listen() wn.onkeypress(paddle_a_up, "w") wn.listen() wn.onkeypress(paddle_a_down, "s") wn.listen() wn.onkeypress(paddle_b_up, "Up") wn.listen() wn.onkeypress(paddle_b_down, "Down") # Main Game Loop while True: wn.update() # move ball ball.setx(ball.xcor() + ball.dx) ball.sety(ball.ycor() + ball.dy) # border check if ball.ycor() > 290: ball.sety(290) ball.dy *= -1 #winsound.PlaySound("C:/Users/kerry/Desktop/sound.wav", winsound.SND_ASYNC) if paddle_a.ycor() > 245: paddle_a.sety(245) if paddle_b.ycor() > 245: paddle_b.sety(245) if paddle_a.ycor() < -245: paddle_a.sety(-245) if paddle_b.ycor() < -245: paddle_b.sety(-245) if ball.ycor() < -284: ball.sety(-284) ball.dy *= -1 #winsound.PlaySound("C:/Users/kerry/Desktop/sound.wav", winsound.SND_ASYNC) if ball.xcor() > 390: ball.setx(-345) ball.sety(0) ball.dx = 1 ran1 = random.randint(int(1), int(11)) if ran1 == 1: ball.dy = 1.2 elif ran1 == 2: ball.dy = 1.15 elif ran1 == 3: ball.dy = 1.1 elif ran1 == 4: ball.dy = 1.05 elif ran1 == 5: ball.dy = 1 elif ran1 == 6: ball.dy = 0.95 elif ran1 == 7: ball.dy = 1.175 elif ran1 == 8: ball.dy = 1.125 elif ran1 == 9: ball.dy = 1.075 elif ran1 == 10: ball.dy = 1.025 elif ran1 == 11: ball.dy = 0.975 paddle_a.goto(-350, 0) paddle_b.goto(350, -50) ball.dx *= -1 score_a += 1 pen.clear() pen.write("Player A: {} Player B: {}".format(score_a, score_b), align="center", font=("Courier", 24, "normal")) if ball.xcor() < -390: ball.setx(345) ball.sety(0) ball.dx = 1 ran1 = random.randint(int(1), int(11)) if ran1 == 1: ball.dy = 1.2 elif ran1 == 2: ball.dy = 1.15 elif ran1 == 3: ball.dy = 1.1 elif ran1 == 4: ball.dy = 1.05 elif ran1 == 5: ball.dy = 1 elif ran1 == 6: ball.dy = 0.95 elif ran1 == 7: ball.dy = 1.175 elif ran1 == 8: ball.dy = 1.125 elif ran1 == 9: ball.dy = 1.075 elif ran1 == 10: ball.dy = 1.025 elif ran1 == 11: ball.dy = 0.975 paddle_a.goto(-350, -50) paddle_b.goto(350, 0) ball.dx *= -1 score_b += 1 pen.clear() pen.write("Player A: {} Player B: {}".format(score_a, score_b), align="center", font=("Courier", 24, "normal")) # paddle ball collision if (ball.xcor() > 340 and ball.xcor() < 350) and (ball.ycor() < paddle_b.ycor() + 60 and ball.ycor() > paddle_b.ycor() - 60): ball.setx(340) ball.dx *= -1 ball.dx += 0.1 ball.dy += (random.randint(-2, 2) / 10) #winsound.PlaySound("C:/Users/kerry/Desktop/sound.wav", winsound.SND_ASYNC) if (ball.xcor() < -340 and ball.xcor() > -350) and (ball.ycor() < paddle_a.ycor() + 60 and ball.ycor() > paddle_a.ycor() - 60): ball.setx(-340) ball.dx *= -1 ball.dx += 0.1 ball.dy += (random.randint(-2, 2) / 10) #winsound.PlaySound("C:/Users/kerry/Desktop/sound.wav", winsound.SND_ASYNC) ``` *** # **PONG - Single Player** ```py import turtle import time import random #import winsound wn = turtle.Screen() wn.title("PONG - Single Player") wn.bgcolor("black") wn.setup(width=800, height=600) wn.tracer(0) # score score_a = 0 score_b = 0 # Paddle 1 paddle_a = turtle.Turtle() paddle_a.speed(0) paddle_a.shape("square") paddle_a.color("red") paddle_a.shapesize(5, 1) paddle_a.penup() paddle_a.goto(-350, -50) # Paddle 2 paddle_b = turtle.Turtle() paddle_b.speed(0) paddle_b.shape("square") paddle_b.color("blue") paddle_b.shapesize(5, 1) paddle_b.penup() paddle_b.goto(350, 0) # Ball ball = turtle.Turtle() ball.speed(0) ball.shape("circle") ball.color("green") ball.shapesize(1, 1) ball.penup() ball.goto(345, 0) ball.dx = 1 ball.dy = 1 # Function wait = time.sleep # pen pen = turtle.Turtle() pen.speed(0) pen.color("white") pen.penup() pen.hideturtle() pen.goto(0, 260) pen.write("Controls, w and s, and you are on the left side.", align="center", font=("Courier", 14, "normal")) wait(3) pen.clear() pen.write("Player: 0 Player B: 0", align="center", font=("Courier", 24, "normal")) def paddle_a_up(): y = paddle_a.ycor() y += 25 paddle_a.sety(y) def paddle_a_down(): y = paddle_a.ycor() y += -25 paddle_a.sety(y) def paddle_b_up(): y = paddle_b.ycor() y += 25 paddle_b.sety(y) def paddle_b_down(): y = paddle_b.ycor() y += -25 paddle_b.sety(y) # Keyboard Binding wn.listen() wn.onkeypress(paddle_a_up, "w") wn.listen() wn.onkeypress(paddle_a_down, "s") # Main Game Loop while True: wn.update() #computer by = ball.ycor() py = paddle_b.ycor() if by < py: paddle_b.sety(paddle_b.ycor() - 1) if by > py: paddle_b.sety(paddle_b.ycor() + 1) # move ball ball.setx(ball.xcor() + ball.dx) ball.sety(ball.ycor() + ball.dy) # border check if ball.ycor() > 290: ball.sety(290) ball.dy *= -1 #winsound.PlaySound("C:/Users/kerry/Desktop/sound.wav", winsound.SND_ASYNC) if paddle_a.ycor() > 245: paddle_a.sety(245) if paddle_b.ycor() > 245: paddle_b.sety(245) if paddle_a.ycor() < -245: paddle_a.sety(-245) if paddle_b.ycor() < -245: paddle_b.sety(-245) if ball.ycor() < -284: ball.sety(-284) ball.dy *= -1 #winsound.PlaySound("C:/Users/kerry/Desktop/sound.wav", winsound.SND_ASYNC) if ball.xcor() > 390: ball.setx(-345) ball.sety(0) ball.dx = 1 ran1 = random.randint(int(1), int(11)) if ran1 == 1: ball.dy = 1.2 elif ran1 == 2: ball.dy = 1.15 elif ran1 == 3: ball.dy = 1.1 elif ran1 == 4: ball.dy = 1.05 elif ran1 == 5: ball.dy = 1 elif ran1 == 6: ball.dy = 0.95 elif ran1 == 7: ball.dy = 1.175 elif ran1 == 8: ball.dy = 1.125 elif ran1 == 9: ball.dy = 1.075 elif ran1 == 10: ball.dy = 1.025 elif ran1 == 11: ball.dy = 0.975 paddle_a.goto(-350, 0) paddle_b.goto(350, -50) ball.dx *= -1 score_a += 1 pen.clear() pen.write("Player A: {} Player B: {}".format(score_a, score_b), align="center", font=("Courier", 24, "normal")) if ball.xcor() < -390: ball.setx(345) ball.sety(0) ball.dx = 1 ran1 = random.randint(int(1), int(11)) if ran1 == 1: ball.dy = 1.2 elif ran1 == 2: ball.dy = 1.15 elif ran1 == 3: ball.dy = 1.1 elif ran1 == 4: ball.dy = 1.05 elif ran1 == 5: ball.dy = 1 elif ran1 == 6: ball.dy = 0.95 elif ran1 == 7: ball.dy = 1.175 elif ran1 == 8: ball.dy = 1.125 elif ran1 == 9: ball.dy = 1.075 elif ran1 == 10: ball.dy = 1.025 elif ran1 == 11: ball.dy = 0.975 paddle_a.goto(-350, -50) paddle_b.goto(350, 0) ball.dx *= -1 score_b += 1 pen.clear() pen.write("Player A: {} Player B: {}".format(score_a, score_b), align="center", font=("Courier", 24, "normal")) # paddle ball collision if (ball.xcor() > 340 and ball.xcor() < 350) and (ball.ycor() < paddle_b.ycor() + 60 and ball.ycor() > paddle_b.ycor() - 60): ball.setx(340) ball.dx *= -1 ball.dx += 0.1 ball.dy += (random.randint(-2, 2) / 10) #winsound.PlaySound("C:/Users/kerry/Desktop/sound.wav", winsound.SND_ASYNC) if (ball.xcor() < -340 and ball.xcor() > -350) and (ball.ycor() < paddle_a.ycor() + 60 and ball.ycor() > paddle_a.ycor() - 60): ball.setx(-340) ball.dx *= -1 ball.dx += 0.1 ball.dy += (random.randint(-2, 2) / 10) #winsound.PlaySound("C:/Users/kerry/Desktop/sound.wav", winsound.SND_ASYNC) ```
0
posted to Share by HarveyH (93) 5 months ago
2
Merry Christmas!
Merry Christmas too you all! (This post is only relevant for 3 days since it was posted)
0
posted to Share by HarveyH (93) 5 months ago
1
.wav files
How do you play .wav sound files in python?
3
posted to Ask by HarveyH (93) 8 months ago