Discuss Scratch

girlpower1313
Scratcher
100+ posts

Make a Custom Password

Example Project
when green flag clicked
set [Password v] to [0]
set [Password v] to (pick random (1) to (1000000))
add (Password) to [List v]
forever
if <[Already Used v] contains (Password) ?> then
if <[Game Finished v] contains (Password) ?> then
set [Password v] to (pick random (1) to (1000000))
end
end

when green flag clicked
if <(length of [Game Finished v] :: list) = [1000000]> then
say [No Space] for (2) secs
end

Taylor Alison Swift wrote:

People haven't always been there for me but music always has.
Hi!!




tinyness
Garamol56
Scratcher
100+ posts

Make a Custom Password

Rather than 2 IF's, use an AND block

Current Posts: 266
Code to find my posts: Z2FyYW1vbDU2
Logic will get you from A to B. Imagination will take you everywhere - Albert Einstein
wookie184
Scratcher
100+ posts

Make a Custom Password

That sounds cool. I might make a password generator with letters and numbers and options for capitals ect.
Thanks though


Google Chrome Version 76.0.3809.132 (Official Build) (64-bit)
I've been programming with Scratch for over 5 years, more recently i have learned Python and i am currently experimenting with c++



girlpower1313
Scratcher
100+ posts

Make a Custom Password

Garamol56 wrote:

Rather than 2 IF's, use an AND block
Thanks

Taylor Alison Swift wrote:

People haven't always been there for me but music always has.
Hi!!




tinyness

Powered by DjangoBB