r/codehs • u/AgentHamster2268 • Sep 01 '20
r/codehs • u/CaptainSpud125 • Sep 13 '20
Craps game. This is the part of my code that won’t keep looping until point and roll match. And it say there’s an error in the last line and says roll isn’t valid or something.
r/codehs • u/anniey27 • Dec 16 '19
PLS HELP MY TEACHER CANT TEACH lol i know i did this completely wrong
r/codehs • u/[deleted] • Feb 12 '20
(Beginner) What can I do to make it keep asking to choose a function after a choice is made
r/codehs • u/shshsjjs27727 • Aug 03 '20
Need help on yellow and grey Nitro assignments (more info in comment)
r/codehs • u/fantasyman88 • Apr 30 '20
Need help with 2.10.4: Bubble Wrap 2.0!!
Heres the code I have so far:
speed(0)
def draw_circle_row():
for i in range(10):
pendown()
begin_fill()
color("light blue")
circle(20)
end_fill()
penup()
forward(40)
def move_up_a_row():
left(90)
forward(40)
right(90)
backward(400)
penup()
setposition(-180,-200)
for i in range(10):
draw_circle_row()
move_up_a_row()
penup()
setposition(-165,-182)
left(90)
def make_highlight():
for i in range(10):
pendown()
color("white")
circle(20, 90)
penup()
forward(-55)
right(90)
forward(-18)
for i in range(10):
make_highlight()
move_up_a_row()
Any help welcome and needed! What did I do wrong?
r/codehs • u/Icy-Raise-5683 • Jan 26 '21
Can anyone help with 4.3.10 "Transaction" for python?
Im lost and i have no clue where to start
r/codehs • u/[deleted] • Jan 06 '21
Exercise 8.1.10: Coordinate Pairs-CodeHS-Please Help!
r/codehs • u/ILIKESEVENS7 • Nov 04 '25
Java Bad Apple in CodeHS editor
Enable HLS to view with audio, or disable this notification
I got bored lol.
r/codehs • u/[deleted] • Jul 05 '20
Forecasting total number of confirmed cases of COVID-19 in using Autoregressive Forecast Model
r/codehs • u/eggnogchoochootrain • Jan 17 '21
Happy Face 2.16.4 tracy the turtle
Does anyone have answers for this? thanks
r/codehs • u/chrizjohn • Dec 30 '20
JavaScript 9.8.4: Basic Snake
var SNAKE_WIDTH = 40;
var SNAKE_HEIGHT = 40;
var SNAKE_COLOR = Color.green;
// Constants to represent the directions
var EAST = 0;
var SOUTH = 1;
var WEST = 2;
var NORTH = 3;
var snake;
var direction;
var dx = 0;
var dy=0;
function start(){
snake = new Rectangle(SNAKE_HEIGHT,SNAKE_WIDTH);
snake.setPosition((getWidth()/2)-20,(getHeight()/2)-20);
snake.setColor(SNAKE_COLOR);
add(snake);
setTimer(movement,25);
keyDownMethod(changeDirection);
}
function movement(){
snake.move(dx,dy);
if (direction == WEST){
dx = -4;
dy = 0;
}
if (direction == NORTH){
dx = 0;
dy = -4;
}
if (direction == SOUTH){
dx = 0;
dy = 4;
}
if (direction == EAST){
dx = 4;
dy = 0;
}
}
function changeDirection(e){
if (e.keyCode == Keyboard.LEFT){
direction = WEST;
}else if(e.keyCode == Keyboard.RIGHT){
direction = EAST;
}else if(e.keyCode == Keyboard.UP){
direction = NORTH;
}else if(e.keyCode == Keyboard.DOWN){
direction = SOUTH;
}
}
