Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion bug-hercules/Password_generator/js/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ function setIndicator(color){
indicator.style.boxShadow = `0px 0px 12px 1px ${color}`;
}

setIndicator("#ccc");
// setIndicator("#ccc");

function calcStrength(){
let hasUpper = true;
Expand Down Expand Up @@ -191,6 +191,7 @@ function generatePassword(){
password = shuffleArray(Array.from(password));
passwordDisplay.value = password;
console.log('password :', password);
calcStrength();



Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
6 changes: 6 additions & 0 deletions bug-hercules/python-turtle-crossing/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,17 @@
all_cars.append(car)

counter += 1

for car in all_cars:
if player.distance(car) < 20:
game_is_on = False
scoreboard.game_over()
break
if player.distance(0,300) < 20:
game_is_on = True
scoreboard.update_level()
player.goto(0, -270)
break
car.move()

time.sleep(0.1)
Expand Down
4 changes: 2 additions & 2 deletions bug-hercules/score-keeper-project/score_keeper.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ playerTwoBtn.addEventListener('click', scoreIncreaserbtn2);
function reset() {
scoreOfOne = 0;
scoreOfTwo = 0;
input.value = "";
// input.value = "";
}

playerOneBtn.addEventListener('click' , function(e){
Expand Down Expand Up @@ -78,7 +78,7 @@ resetBtn.addEventListener('click' , function(e){
console.log("btn reset clicked");
playerOneScore.value = "0";
playerTwoScore.value = "0";
input.value = "";
// input.value = "";
playerOneScore.innerText = `${playerOneScore.value}`;
playerTwoScore.innerText = `${playerTwoScore.value}`;
playerOneScore.style.color = "black";
Expand Down