#💻︱programming

1 messages · Page 2 of 1

minor roost
#

@quiet arrow

quiet arrow
#

Yeah true

#

Should just start counting at 0 instead of 1 kappa

pliant nexus
#

Laugh in Lua paradigm

quiet arrow
#

😭

minor roost
#

cries in not having port 80 and 443 free as its already taken

#

😭

pliant nexus
#

^

minor roost
#

Well gl geting a certificate on other port

#

Plus I will need those ports sooner or later anyway

minor roost
#

Browsers require certificate for some domains

tawdry radish
#

hello guys

#

same it is best port blobwarm

minor roost
#

No i mean both

minor roost
#

Ig yes but I rather test not locally to actually make sure everything works correctly

#

Testing after pushing to production with force push is really the only way

ebon phoenix
#

I'm trying to get into coding mods and stuff but it's just too hard exporting the files to mc

ebon phoenix
#

Anyone know any good like tutorials to get into coding/mods?

ebon phoenix
#

Ok hope I didn't get hacked

torpid crypt
#

You'd want to get into Java first as Minecraft is written in Java (and mod loaders like Forge or Fabric uses Java). Learn the fundamentals as well as OOP. After that I'd say you know enough to start with modding.

ebon phoenix
#

Isn't there a difference from JavaScript and C,++?

torpid crypt
#

Yes, several big differences

ebon phoenix
#

So why would I. Learn 2 , languages rather than 1

torpid crypt
#

Don't be confused though. Java and JavaScript are not the same

ebon phoenix
#

Wtf

#

Bruh

torpid crypt
#

They're 2 different languages

ebon phoenix
#

Are there differences between java and C++?

#

Long typing..

torpid crypt
#

Well, they both use a C style syntax meaning that if you know how to read/write in one language, it'll be easy to switch to the other.

As for differences, Java is an interpreted language whilst C++ is compiled. Compiled means that it's been "translated" to binary code that the computer understands while interpreted means that it needs an interpreter (a different program) to understand the Java code

#

Compiled languages tend to be much faster than interpreted languages

#

Java uses the JVM (Java Virtual Machine) as an interpreter to run Java programs

ebon phoenix
#

Too complicated I'll just learn C++

torpid crypt
#

C++ does have more complexity than Java, but if you're intetested in Minecraft modding you can't use C++

ebon phoenix
#

Huh?

#

Is moding and createing clients the same thing?

torpid crypt
#

No

ebon phoenix
#

Bruh

#

What language is it for client creating

#

I think ur trolling me🤔

torpid crypt
#

Modding is just modifying the client. Creating a client is creating one from complete scratch, although don't be confused by names like BadlionClient or LunarClient. What those clients do is take the vanilla client and modify its code but directly in the client

ebon phoenix
#

Bro I'm talking about bedrock

torpid crypt
#

Oh. Bedrock doesn't support modding

ebon phoenix
#

It does

torpid crypt
#

They have their own scripting ways of doing things

ebon phoenix
#

And ur talking about java this whole time?

torpid crypt
#

Yes. For future reference, when you mention "modding", most people will go with that you mean modding the Java Edition of Minecraft. If you mean Bedrock, make sure to point that out

ebon phoenix
#

Lamo

#

So everyone here does java modding?

torpid crypt
#

I don't think everyone in this channel has done modding xD This channel is kind of a general purpose thing related to programming

ebon phoenix
#

Bruh

#

I'm out

#

Need to find a bedrock modding server

#

In discord

#

Cya

torpid crypt
#

Microsoft has some documentation of their behaviour packs. I believe there's also a wiki called bedrock.dev or something like that which a bunch of information

ebon phoenix
#

Ik ik

#

I'm not that dumb

dense zinc
#

Modding bedrock is significantly harder as it isn’t possible to decompile it

torpid crypt
#

Never said you were 🙂

ebon phoenix
#

Bruh

#

Alr cya

torpid crypt
ebon phoenix
#

Bro

torpid crypt
#

Technically, making a custom Bedrock client is possible. Make it from scratch and just use their protocol and authentication

ebon phoenix
#

There are bedrock clients

#

Like onix

#

There are hundreds

torpid crypt
#

Is that really a client or just an injection/pack/whatever the name is?

ebon phoenix
#

Onix is a injector

#

It has 50 features

#

Just search up on yt "Onix client patathd"

torpid crypt
#

I'm not familiar with Bedrock injections as I've never really looked into it

ebon phoenix
#

For the third time cya

plush walrus
#

reminds me of this

C++ is a horrible language. It's made more horrible by the fact that a lot of substandard programmers use it, to the point where it's much much easier to generate total and utter crap with it. Quite frankly, even if the choice of C were to do nothing but keep the C++ programmers out, that in itself would be a huge reason to use C.

In other words: the choice of C is the only sane choice. I know Miles Bader jokingly said "----", but it's actually true. I've come to the conclusion that any programmer that would prefer the project to be in C++ over C is likely a programmer that I really would prefer to ----, so that he doesn't come and screw up any project I'm involved with.

C++ leads to really really bad design choices. You invariably start using the "nice" library features of the language like STL and Boost and other total and utter crap, that may "help" you program, but causes:

- infinite amounts of pain when they don't work (and anybody who tells me that STL and especially Boost are stable and portable is just so full of -- that it's not even funny)

- inefficient abstracted programming models where two years down the road you notice that some abstraction wasn't very efficient, but now all your code depends on all the nice object models around it, and you cannot fix it without rewriting your app.

In other words, the only way to do good, efficient, and system-level and portable C++ ends up to limit yourself to all the things that are basically available in C. And limiting your project to C means that people don't screw that up, and also means that you get a lot of programmers that do actually understand low-level issues and don't screw things up with any idiotic "object model" crap.
tawdry radish
#

guys

#

anyone used nannou? is it good?

torpid crypt
tawdry radish
#

yo

torpid crypt
#

Never heard of it

tawdry radish
#

it is like processing for rust

tired elbow
#

alex😞

plush walrus
tawdry radish
tired elbow
#

alex

tawdry radish
#

i just saw it on utube

#

while looking for creative coding in rust

plush walrus
#

it has 4k stars on github

torpid crypt
plush walrus
#

but does not look maintained anymore (?)

tired elbow
tawdry radish
#

3 months*

#

2 months*

plush walrus
#

more like 21 days

tawdry radish
#

2 months

plush walrus
tawdry radish
#

it says jul 18 here

tawdry radish
plush walrus
#

the ex cubecraft content creator 🙂

pliant nexus
#

I don't understand how calm you were with this person @torpid crypt, so direspectful yet you still provide him a lot of informations. You're a saint tho

tawdry radish
#

anyways @plush walrus did you ever make a image to simple shapes thinge?

plush walrus
#

no

tawdry radish
#

oh alr

brisk badge
true mantle
brisk badge
fallow canyon
vapid bobcat
#

so it will be completely ineffective against disputes between you and Discord

torpid crypt
minor roost
#

the smartness of ppl here makes me feel dumb

north siren
#

why is it always me and landon getting pinged for no reason

pliant nexus
#

You literally tell computer to go beep boop

minor roost
#

u say?

#

make me a program

pliant nexus
#

What program do you want

#

Litterally compiling an empty C file is technically a program

minor roost
pliant nexus
#

Maybe because you answered some technical questions

#

Idk

true mantle
pliant nexus
#

I know that's my job

#

But in the end

#

Its simple instructions for simple machine

#

Computer are dumb

#

Most programming out there isn't even challenging

#

Basic knowledge and understanding of procedural paradigm will get you through 90% of what being made

#

The hardest thing in programming is time management

plush walrus
#
function getElements(): Array<HTMLElement> {
    return Array.prototype.slice.call(document.body.getElementsByTagName("*"), 0);
};

const allElements = getElements();
var allWords: Array<string> = []

allElements.forEach((element) => {
    var innerText = element.innerText
    
    if (innerText != undefined && innerText != "" && innerText.length != 0) { // <--- THIS CONDITION
        var innerWords: Array<string> = innerText.split(/[ \n]/)
        innerWords.forEach((word) => {
            allWords.push(word);
        });
    };
});

console.log(allWords);```
#

How is it possible that all the empty strings pass all the conditions?

spring tiger
rain sierra
#

amngus\

tawdry radish
#

bro you used 18+ emoji and are saying 13+ only ._.

#

i swear sus people are getting dumber and dumber every day

paper python
#

lol

twilit lava
#

Hui hui

brisk badge
twilit lava
#

I guess so

brisk badge
twilit lava
#

Maybe this one is not that good

#

Children may only use discord for school groups

#

Then it would be better

true mantle
pliant nexus
#

Using != and == evaluates your statement after type conversion so that both operands have the same type. Meaning that 6 and "6" are equal in that matter

#

=== and !== Is checking that both type and value are the same

pliant nexus
#

Never used typescript but as far as I know it only provides strong typing and more class features and interfaces so I would say no

#

You should google it

plush walrus
tawdry radish
#

traps are soo smooth brained these days

plush walrus
#

but it does filter out <empt string> && undefined but "" still remains

spring tiger
#

It might be empty string inside of a string I.e """"

So you'd have to check for "\"\""

plush walrus
#

oh wait

#

yea I realized only now

#

I am splitting the text after the condition. meaning the string is not empty before I split it

#

but then I split it and push to the array which has no check for empty string

#

🤦‍♂️

vast sundial
#

Hi

brisk badge
#

Player p = (Player) sender

#

Instead of -

#

And probably on what line and character too :)

quiet arrow
#

Use ``` instead of `

#

:p

#

Then you can also use markup

pliant nexus
#

By the way @plush walrus

Array.split()

Will keep empty group as default regex behaviour also match them

#
  • adds an empty group if your input is ended with a separator
plush walrus
#

thanks

vapid relic
minor roost
#

add java at the top so its ```java
```

#

next time

minor roost
minor roost
#

hey can anyone smart code me a quick addon that makes blue ice 10x more slippery

quiet arrow
#

Best bot

minor roost
#

Indeed

tawdry radish
#

@quiet arrow what do you call your your main class thinges in your apps?

quiet arrow
#

main? idk

tawdry radish
#

am doing rust stuff that gonna cause problems

quiet arrow
#

The name of the program maybe? Not sure, haven't had the problem yet

tawdry radish
#

name of my program too long
same, but i finaly got an idea, am gonna call it App

sharp crystal
#

Call it "FluffyUnicorn" :D

tawdry radish
#

thx for the help

tawdry radish
lusty pagoda
quiet arrow
rustic zephyr
tawdry radish
#

too long, need it to be under 7 letters

quiet arrow
#

Stay safe everyone, and don’t code in Scheme

tawdry radish
#

alr bluesus

graceful holly
#

🫡

#

Oh external emojis are off

#

:(

brisk badge
#

java hater

graceful holly
#

o.o

plush walrus
#

We're gonna have java at school

#

I mean we already do

minor roost
#

java is lovely

vernal reef
#

I pray for you

tawdry radish
#

we have exam next month and there is nothing about python in the textbook AAAAAAA

tawdry radish
#

could atleast teach us c instead 😔

#

old batches all had c

minor roost
#

You guys know how coding works?

plush walrus
#

Yes

minor roost
#

Explain 10101010111101001110110001010

tawdry radish
#

that doesn't mean anything

#

it is not even 4 bytes ._.

plush walrus
minor roost
#

Ohh I think I get it

brisk badge
#

Low voltage or high voltage

tawdry radish
#

a very nice video about how it works

#

there is an other video about how it remembers too

indigo nacelle
#

If I send a windows user a .py file and they download it, but they don’t have python installed, what will show on their screen? Will it prompt them to download python from the Microsoft store, or something else?

spring tiger
#

It will just say "Windows cannot open this file" and prompt the user to select a program to open it

minor roost
minor roost
#

Someone explain

indigo nacelle
#

Since most devs are lazy probably the right one

minor roost
#

Still dont get that meme xD

plush walrus
minor roost
#

Oh

#

Makes sense now

#

Ty

pliant nexus
#

To me it's not a matter of laziness or whatever, to make the snake responsive in the way that both viewport has the same content, it must be the right one

#

Left one is not even the same asset tho

#

And "Not lazy" Approch would be to convert the Snake to some SVG

#

so that no matter the viewport you can display it the same way

quiet arrow
#

o

karmic canopy
untold dagger
#

"tests" table is updated automatically with github actions

untold dagger
# minor roost

if you need to show the whole length of the snake go with the first option

tawdry radish
minor roost
quiet arrow
#

Mit made me choose Go tho, no regrets on that part

untold dagger
quiet arrow
#

I've been loving Go

untold dagger
#

I like how it feels high-level without actually being high-level/using interpreters/jits

quiet arrow
#

I think I love the package system most, it's amazing to have several files that share all variables/functions. And not having to import it all constantly
While not exposing it all to the other ones

#

Quite a big change compared to Python

minor roost
#

can u even make a website game with java?

#

i srs dislike js bs

plush walrus
#

Java applets were small applications written in the Java programming language, or another programming language that compiles to Java bytecode, and delivered to users in the form of Java bytecode. The user launched the Java applet from a web page, and the applet was then executed within a Java virtual machine (JVM) in a process separate from the ...

brisk badge
brisk badge
#

🤣

#

I have a book about java from my dad that is about java 1.1 or smth lol

#

Java applets (and oop in general) are talked about as the most modern and innovative thing ever

minor roost
#

Well Ig no game then

#

Not willing to learn js

#

🤢

brisk badge
minor roost
#

Yep i know

#

Sadly

#

I ain't saying its bad, but I dislike it and wanna stay as far from it as possible

spring tiger
#

If you don't like Javascript for those reasons, then I highly suggest you try out Typescript

untold dagger
#

they are not supported in chrome since... version 60?

#

not sure

untold dagger
#

es modules, classes, arrow functions

#

if you prefer strongly typed languages, there's TypeScript

untold dagger
#

but loading times wouldn't be great

untold dagger
# minor roost

0.1+0.2==0.3 is false in all languages that use floating point numbers, even java

spring tiger
#

look at the one above it though

#

0.5 + 0.1 is true

spring tiger
#

😏

untold dagger
#

that's how it's defined in the floating point standard, it's like that everywhere

tawdry radish
#

hello homies i heard someone talk about ts am here

quiet arrow
# minor roost

The math.max and math.min are mathematically correct so smoll brain meme

#

Or well, their infinum and supremum

tawdry radish
#

YEH BOI LETS GO

pliant nexus
hazy talon
#

Hi

#

How give me rank YouTuber

minor roost
hazy talon
#

Ok , thanks 👍🏻

#

Do you in rank mini YouTuber?

#

I wish added is the rank mini YouTuber

minor roost
#

We do not have such rank

hazy talon
#

When will added ?

brisk blaze
#

How can I link my acc?

#

I mean my minecraft acc to this server

minor roost
#

Guys, please make a ticket as this is a channel for discussing the programming topic

brisk blaze
#

oh sry

true mantle
indigo nacelle
tawdry radish
#

bro school just started after two weeks...
and they released hacking google on the last 3 days of my holidays ;-;

#

and i can't even take part in the ctf

tawdry radish
#

docu, i finished it when i woke up today morning, there is a ctf as an easter egg in one of the videos :)

#

more then one tbh, they gave us the link

minor roost
#

When can I be unbanned from java

untold dagger
#

Uh maybe the not best place to ask but where can I find a good bad apple pv midi that matches the original video

#

and uses a single track

#

I want to parse it to play it in a game with a lua controller

#

or maybe a tool that can "convert" a regular audio file

#

without producing garbage consisting of 15 tracks and lots of overlapping notes

pliant nexus
#

Looking Youtube might be the best place to start

tawdry radish
#

bro go to h4ck1ng google with dot inbetween them

tawdry radish
#

oh

quasi oasis
#

Hello govs

#

Give me code please

fallow canyon
lusty pagoda
lusty pagoda
#

Send me this sticker as a photo pls

plush walrus
#

Pretty sure that works

lusty pagoda
#

Phone

plush walrus
#

Same xd

lusty pagoda
#

I'm on phone

plush walrus
#

Yea I am too

#

Xd

lusty pagoda
#

That doesn't work

plush walrus
#

I know

lusty pagoda
#

Ohhh

#

I got it

plush walrus
#

Lmao

tawdry radish
#

why does it look like vscode but like visual studio at the same time

small blade
#

Hey all I’m looking to start learning Java script so I can move on and start helping with small developer work on different Mc servers and looking for anyone to send me videos or links to help me get started in learning to code. Any helps appreciated!

brisk badge
#

W3schools

civic trout
civic trout
minor roost
#

Theres nothing more frustrating and comforting like coding in a mobile device

civic trout
#

true

minor roost
#

You lay down, then you can code

civic trout
#

but i didnt had the patience

minor roost
#

Though i would prefer coding in a bigger device like an ipad

#

Gives more room to be like a mini computer

brisk badge
#

Why not use a laptop or pc

civic trout
#

just download visual studio code

minor roost
#

Can the laptop or pc do tht?

civic trout
#

ye

#

a laptop can

minor roost
civic trout
#

i mean sit in a couch sure but lie down

minor roost
civic trout
#

well then go ahead

minor roost
tawdry radish
civic trout
fallow canyon
small blade
#

Ahhhh okay lol Ty for letting me know

civic trout
#

but you aint gonna make programs with that

polar scaffold
#

I have heard that python is a great beginner language (it also has a lot different functionality) but I only just started leaning about computer science

tawdry radish
tawdry radish
fallow canyon
tawdry radish
#

i still hate java doe
it memory hog

fallow canyon
#

Haha yeah it’s not for everyone

tawdry radish
#

how do you guy use java instead of a more performant language?

#

could write a c++ or c# software instead of java

#

or maybe rust

fallow canyon
# tawdry radish how do you guy use java instead of a more performant language?

Minecraft was written in Java. Our server software might be custom but it was built off a popular software also written in Java. The API for customizing Minecraft is also written in Java. We didn’t choose Java, Java chose us. Also much of the world enterprise software is written in Java. It’s cross platform, widely used, decently fast, and you can limit the resources used.

#

You would be doing yourself a disservice using another language with Minecraft development, reinventing the wheel.

#

Java is my favorite language, it’s a preference thing. It grows on you over time 😆

tawdry radish
#

from my exp it is still a memory hog

fallow canyon
#

Splitting our codebase between Java and Kotlin wouldn’t be beneficial for costs and then only certain people can change stuff but yes Kotlin is a cool language and definitely useable but you should learn Java first.

tawdry radish
#

i mean slowly translating it will not cost that much

#

besides i don't see cubecraft dieing anytime soon

fallow canyon
#

Eh.. It costs a lot of money to pay devs.

tawdry radish
fallow canyon
#

Varies based on experience and time at CubeCraft 😆

torpid crypt
# fallow canyon You would be doing yourself a disservice using another language with Minecraft d...

Sometimes reinventing the wheel is needed to improve on things 🙂 A friend and I are making our own 1.19.2 server software in Go and we're doing pretty great atm. Got some basic stuff going atm like player movement, chunks, chat, etc. The purpose for it though is mostly for minigame servers than something like survival. I aint touching too much on world generation 😂 We're getting incredible server performance from it too, which was kindof the main reason for making our own software from scratch

fallow canyon
#

Sounds like a fun project 😄

torpid crypt
#

We even implemented our own stuff to it that Spigot can't achieve programatically such as adding/removing/changing custom biomes on runtime 😛

fallow canyon
torpid crypt
#

Go is just for the project that I mentioned. In Java for example I have 7 years in that xD

fallow canyon
#

That’s good, my advice was for beginners but that is a lot of experience. Think I started learning 9 years ago.

torpid crypt
#

Ah, yea. Java is very good I'd say for beginners. It was indeed what I started out with and it's very useful if one day they'd like to try out any other C style language ^-^

#

or mostly any other language, doesn't have to be explicitly C style

tawdry radish
#

my parents still disappointed in me because i didn't code up any apps ;-;
they don't like my image to painting project thinge

#

anyways guys can yall suggest me a way to use my second disc for linux without deleting the windows files init ;-;

tawdry radish
#

or should i just get a ssd

copper ice
#

For linux since programming doesnt take much space

#

It only takes someone else code on github

plush walrus
#

Or use wsl

#

That's what I do

tawdry radish
#

@copper ice suggestion for distro?

plush walrus
#

Arch 😈

copper ice
#

Cuz it looks like windows

vernal basin
#

e

hard roost
minor roost
#

silly me decided to have a go with android studio

#

the thing is i want to have a login system

#

hovewer i can't find a good tutorial that would explain how to:

  1. Securely store passwords and other user data in DB
  2. Securely communicate in an encrypted way with backend servers
spring tiger
#

you'll want to look into salting databases for safe storage practices

vernal basin
#

yo

#

wassup

tawdry radish
# minor roost hovewer i can't find a good tutorial that would explain how to: 1) Securely sto...

Security of users' passwords should be at the forefront of every web developer's mind. Tom takes us through the insecure ways in which some websites deal with passwords.

Note: At circa 8mins, the animation does not show how the 'salt' is also stored in the database alongside the username.

Hashing Algorithms and Security: http://youtu.be/b4b8kt...

▶ Play video
#

just don't make a database for that
instead use oauth2 with google or discord

#

best thing you can do

#

every person basicly has gmail

#

it will be little bit harder make alts since new gmail per account

indigo nacelle
minor roost
#

i dont want it to be linked with google facebook or anything

minor roost
#

i guess i have to use hash and salt

#

but i dont understand how it works

lusty pagoda
minor roost
#

like if salt is diffrent every time, how can i compare password stored in database(in hash + salt format) with the one the user wrote. Like without knowing what salt was used theres no way

#

like i would have to store the salt used in my db next to hash-salted password and user name

#

and then it makes no sense

hard roost
plush walrus
#

Cuz salts are useless for an attacker

minor roost
#

Alright thanks

topaz bluff
#

I like Python

#

Sadly you can't code anything in minecraft with it.

torpid crypt
# topaz bluff Sadly you can't code anything in minecraft with it.

You could make a client/server with it from scratch, or if there's server software that's made in python that supports "plugins", you could make those in python as well. But yea, keep in mind that you'd be on your own without a lot of help if you go down that path since no one really does that

minor roost
quiet arrow
minor roost
#

There's a coding book from mojang??

shut estuary
#

Good practice involves generating a secure random salt every time a user signs up

hard roost
plush walrus
#

Hash won't match hash with salt ever

#

practically

plush walrus
shut estuary
plush walrus
shut estuary
tranquil ice
shut estuary
#

Misunderstood that in that case, my bad

hollow gorge
#

How do you program ShrekLooking

indigo nacelle
#

How would I have a python file with the playsound module play the audio file, but continue to run more code in that program? Like if I were to do:

playsound(“coolsong.mp3”)
print(“hey”)

The song would play properly, but “hey” wouldn’t print until the audio is done playing. Any suggestions?

#

Python 3 btw

#

Though I’m sure you would assume that 0_o

quiet arrow
#

@indigo nacelle You can use threading (overkill) or make them async functions and asyncio.gather() both of them

quiet arrow
#

Asyncio is part of the standard lib so that’s great as well

indigo nacelle
quiet arrow
#

Well, that’s a first threading being easier. But great to hear you can continue

thorn lintel
#

The duel servers are embarrassing

tawdry radish
#

they are embarrassment to the server community tbh

#

only few did it right imo

arctic loom
#

Fak

karmic canopy
urban grail
muted harness
#

Can someone learn me

#

I want know how make server on minecraft

plush walrus
#

No not really

#

Well you just gotta read some tutorials online and follow up with your deployment

dusty plover
#

Hello

#

I need help

#

We can see him walking

#

Ohhh sorry

#

I’ll delete that

tawdry radish
muted harness
#

Lol

wise spade
#

やあやまはたやはたらた

#

ちらはたやたほたや

tawdry radish
#

@quiet arrow keyboard suggestion pls

quiet arrow
#

euh

#

I know nothing about keyboard

tawdry radish
#

oh

quiet arrow
#

I don't even know which one I have

tawdry radish
#

i want to buy mechanical keyboard i need suggestions ;-;

sharp crystal
quiet arrow
#

I have a logitec, apart from my alt dying because I used it as a hotkey in mc I'm happy with it

#

So maybe don't bc alt is important 😭

tawdry radish
sharp crystal
sharp crystal
tawdry radish
#

it is 300$ o_o

#

an't that rich need under 100$

tawdry radish
#

even alt fine

quiet arrow
#

I got a French one

#

That's probably why it's bad

tawdry radish
#

rip

true mantle
tawdry radish
#

am in need of them back ticks am a programmer💀

#

NVM i saw that escape key got backticks

brisk badge
brisk badge
tawdry radish
tawdry radish
#

but i like the arrow keys so i might just get 65 or 75

brisk badge
#

id go for 75

#

its only higher than a 65; doesnt really take extra space on ur desk

true mantle
#

Useless buttons!

drifting tangle
true mantle
drifting tangle
true mantle
#

No.

drifting tangle
#

sorry

tawdry radish
tawdry radish
karmic canopy
brisk badge
brisk badge
# true mantle Useless buttons!

I agree on that the right side is a bit useless, but having no arrows (without having to press combinations) just isn't efficient

#

For example

minor roost
#

cuz with 60% the buttons are to small

#

tbh

minor roost
#

sudo unban Dinerbone6511

#

@steep axle done 👍

quiet arrow
minor roost
#

😎

minor roost
#

I remember that username :/

#

Sentinel saved me

karmic canopy
mystic gate
#

whats a good cheap laptop to play java on

#

is the lenovo legion 5 good?

novel fiber
sleek fulcrum
zinc steppe
#

was bored

#

ps: never done phyton

brisk badge
#

nice!

zinc steppe
#

this shows your saved wifi passwords

#

wont work on mac for some reason

cyan flame
quiet arrow
#

You could look into f-strings and regex, if you want to make it look nicer and more readable

The split and indexing is really confusing since you’ve got no clue what it does and how the output looks

quiet arrow
#

Macs will be darwin, and windows win64 I think? Not sure

plush walrus
#

please

#

absolutely hate .format()

#
txt1 = "My name is {0}, I'm {1}".format("John",36)
txt2 = f"My name is {name}, I'm {age}"
minor roost
brisk badge
# minor roost

Just make a second script that generates a line for every integer from -2147483648 to 2147483647

minor roost
quiet arrow
#

🤨

quiet arrow
#

But not sure when you’d need the same var several times in the same string

plush walrus
#

Yea that's a good question

spring tiger
#

also, f strings weren't released until 3.6, so .format has always been the standard for most people

quiet arrow
#

f string slightly faster o.o

brisk badge
# quiet arrow

Ah yes when I am formatting a million strings I will use f string next time

quiet arrow
#

The more you know

mystic gate
#

anyone good at making roles for a server?

minor roost
#

How could I implement queue like system in my sql database?

quiet arrow
#

What does that mean?

plush walrus
minor roost
minor roost
#

so when 1 ends, another starts etc etc

#

but i want to be able to move songs in the queue, insert/ delete them etc

#

and i want to store that in sql db

plush walrus
#

well add a song, when it's played remove it and play the one with an id + 1 of the previous one or something like that

#

aka have a table with an id which is just 1, 2, 3, 4, ... and then the url of the song for example

minor roost
#

ye but its gets tricky when i want to be able to delete songs and move them in the queue cuz changing ID of hundreds of songs seems dumb and wouldnt be even sure how to do it

plush walrus
#

well you can just call a song with a different id when you want to shuffle

quiet arrow
#

If you're displaying the queue you can just with as in your query to fetch song info instead of ids I think

minor roost
quiet arrow
#

You don't have queue ids, only song ids

#

If you input 4 songs for the first time your queue could be
1,2,3,4
if you then move 3 to play second you just change the column in the queue table to
1,3,2,4

#

You can then either remove song info after the bot leaves the voice channel or keep it, and check against it to not need to requests it wherever you did it before

#

If you're in python, you can also just use asyncio queue if you don't care about keeping the queue if your bot dies

minor roost
#

dont get it tbh

#

theres no explicit "order" in sql unless u specify one

#

so like the order of the ids can be diffrent depending on how i querry for them

quiet arrow
#

Your song info table has a ID column that increments with each song info you add to it

#

In the queue table you have a column that has a list (or string with ,) that references these numbers

minor roost
#

ah a list or string

#

yes that makes more sense

#

tho its not gonna be a discord bot, trying to make an android app

#

thanks for help

quiet arrow
#

Aah, your sql would probably be sqlite then? Not sure if that has auto increment

minor roost
#

rn yea sqllite but i would rather move to a not local db

quiet arrow
#

oh

#

PostgreSQL HoloLove

minor roost
#

yup

#

never used it tho, sadly picked MySql and never had time to migrate

quiet arrow
#

Well, good luck with the app :p

minor roost
#

ty

plush walrus
#

💀

minor roost
#

Ight bet

indigo nacelle
#

Thanks db ur a lifesaver

wet yoke
#

i’m a lifeguard

serene niche
#

Why does frontend programming suck so much?

plush walrus
#

fr bro

minor roost
#

well thats new

plush walrus
minor roost
#

This button to click view repo

#

Or so I think

#

🤔

plush walrus
#

oh you need to be in a git repo

#

like have .git in the folder

quiet arrow
#

How in the word do I align four words in a cross

#

@sharp crystal help uwubread

plush walrus
#

?

minor roost
#

Do someone know how to make mods for minecraft bedrock edition or java Edition for 1.19

quiet arrow
#

Just changed the teams to |||| so they’re same width

#

Alex big brain

plush walrus
#
zinc steppe
#

mdae this in like, 2 hours

signal marsh
#

Looks nice

winged rose
zinc steppe
#

Ye

winged rose
subtle island
#

plemiesmp Cygan_Gan45

tidal scarab
quiet arrow
#

It all uses the same code, so it didn't work

real lodge
#

What's a good budget laptop

#

Ranging from 250$-500

zinc steppe
#

idk

#

but mine was R$3000,00(robux)

minor roost
#

hi

#

anyone know how to make custom skies to go over a texture pack#

lament thunder
minor roost
#

?

civic pendant
# minor roost anyone know how to make custom skies to go over a texture pack#

I hope you enjoy!
--------------------------------------------------------------------------------------------------------------------------(Editing stuff)

▶ Play video

Thanks for watching! I make texture packs for both Minecraft Java and Bedrock on this channel, so subscribe to see all of those packs.

Method 2 - 12:05

▶️Music: Lil Uzi Vert - 1600 (Instrumental)

IF YOU HAVE ANY QUESTIONS, LEAVE A COMMENT! :D

Sky Template + MCPatcher Folder:
http://www.mediafire.com/folder/ts13xfn4cxr9r/Sky_Files

Cube The S...

▶ Play video
minor roost
#

ok i'll try that

brisk badge
#

Anyone familiar with Forge?
I am trying to get the developments environment of Forge 1.19 working. Everything goes okay, until i try to run the "runClient". Instead of opening Minecraft, it shows an error. Does anyone know what could be wrong here? Things I tried:

  • Reinstalling JDK (I am using 17.0.5)
  • Trying different IDEs (Eclipse and IntelliJ)
  • Doing the entire setup over several times
  • Uninstalling older versions of the JDK

(I used this tutorial https://www.youtube.com/watch?v=LpoSy091wYI)

quiet arrow
#

@torpid crypt

#

xoxo

brisk badge
minor roost
#

As I cannot

minor roost
#

people looking for yt wallpaper makers?

minor roost
#

Qrmees I swear I see u in ffa everywhere

robust axle
#

When is winter games coming out???

vale ridge
#

Exit code 1 is very broad

brisk badge
#

This problem is most of the time caused when having not the latest jdk - or multiple versions of the jdk installed on the machine, but that's not the case for me. I am also using the latest forge versions (tried multiple)

vale ridge
#

So you've tried --stacktrace and that was the only thing you saw?

brisk badge
vale ridge
#

Okiii

ebon phoenix
#

Anyone here does bedrock coding cuz I'm trying to get into it

indigo nacelle
#

And I would suggestion watching detailed videos to learn more about something

ebon phoenix
#

Idk program

#

I have none

#

I do hàve a bit of python knowledge but that's it

minor roost
#

maybe this can help as theres some explenation

#

and this

zinc steppe
#

ill try making a website in 2 days

#

wish me luck

rocky crypt
#

yoooo

#

will it be on a server tho

indigo nacelle
plush walrus
#

🥶

indigo nacelle
#

Idk it works on my machine 🤷‍♂️

plush walrus
#

I am sure it does, send over the code and I'll take a look 😈

zinc steppe
#

ill use infinity free

zinc steppe
minor roost
zinc steppe
#

brasil?

zinc steppe
#

@minor roost B)

minor roost
zinc steppe
#

ah, continua bom

#

:D

minor roost
#

😄

wild mist
#

xD

tiny shale
#

poop

zinc steppe
#

last hours to finish

#

its still 11pm

#

here

#

so i have around an hour to finish

zinc steppe
#

its done

#

but i'm afraid that if i send the link here ill get muted

#

so yeah

minor roost
wild mist
zinc steppe
wild mist
#

Sim, sim, eu falei pelo meme, mas eu não faria isso

#

Você faz esses sites como uma forma de praticar o que sabe ou também vende?

zinc steppe
#

São projetos de escola

wild mist
#

Ah, entendi

#

Aliás, são bem feitos, parabéns

zinc steppe
#

Mas eu faço trabalho pra um pessoal da sala

zinc steppe
zinc steppe
wild mist
#

Você estuda há quanto tempo?

zinc steppe
wild mist
#

Bom

#

Pretendo começar em breve

zinc steppe
#

Faço curso integrado ae ensino medio

#

ETEC

wild mist
#

Está se preparando para fazer vestibular(es)?

minor roost
#

English por favor

quasi oasis
indigo nacelle
true mantle
#

i have a little problem

minor roost
#

yea

#

?

brisk badge
true mantle
#

here i have a logo

minor roost
#

Okay

true mantle
#

and i have some weird login button

#

it all worked before i added a video

#

but after i added this

#

it didnt showed my logo and login button anymore

brisk badge
#

where did you add that?

true mantle
#

but it did show all my other buttons

brisk badge
true mantle
#

here

#

dont focus on that weird buttons

#

i need to fix that

#

but ik how

#

top left should be a logo

#

top right a login button

brisk badge
#

isnt it just behind the video?

true mantle
#

it is

#

when i refresh

#

u have a few ms

#

where u can see it

#

but how to get it infront of the video

brisk badge
#

its been a while since i did css or html, but i believe there is a thing in the css called "z-index"

#

if you set that to -1, it should be rendered last

true mantle
#

it works

#

ty :)

brisk badge
#

np, it looks very good btw

true mantle
#

so still alot to do

vital summit
#

i wanna make inventory button invisible

#

How to hide this button, Send me the texture of the inventory button

indigo nacelle
vital summit
#

Can you just show me the texture of inventory button

exotic escarp
#

Anyone know how to code for Onix client ?

indigo nacelle
#

It can do C, Ruby, Js, write HTML, python, C#, Java, R, and more

#

Would y’all invite this bot to ur own servers? (If it was based on programming) If not, I would appreciate suggestions

brisk badge
brisk badge
quiet arrow
#

They’re also called lists in python not arrays

quiet arrow
#

If you want to code in python in discord, I think you'll have more fun with a bot of your own and an eval command

brisk badge
minor roost
#

@quiet arrow how did u get that active dev badge

quiet arrow
#

I have a bot

minor roost
#

XD

quiet arrow
indigo nacelle
#

I forgot to put to a limit on it and it slaughtered my api request rate when it bugged out

quiet arrow
#

$Find implement generators in scheme pls ty

indigo nacelle
#

😮‍💨

quiet arrow
#

Can you run that

#

:D

indigo nacelle
#

If the bot was online right now 💀

quiet arrow
#

ah

brisk badge
quiet arrow
quiet arrow
brisk badge
#

task: return highest number
lines: 142

quiet arrow
#

number = 0
while number + 1 > number:
number += 1
return number

brisk badge
#

Lol

plush walrus
#

But I assume it is ai right?

true mantle
#

i have one class with form--hidden and one without but it doesnt display the one without that class

#

when i remove the class i get this:

#

i gtg eat so if you need more information just ask it and u will receive it about 30-60 minutes

indigo nacelle
#

It’s only slightly worse and 10x cheaper than the davinci series

brisk badge
vital summit
#

send me texturepack by you

#

if u can make

turbid grail
#

I think its HTML

vital summit
#

I thought @true mantle is mod

#

wasnt he?

true mantle
vital summit
#

i thought u are

true mantle
#

Html/css

umbral dock
#

hello there

violet flare
#

Hi how are you

umbral dock
#

fine.
mainly works on minecraft bedrock protocols

true mantle
#

anyone knows how to fix this? discord.js v14

quiet arrow
#

Not that I know js, but command.data seems to be null/undefined

spring tiger
quiet arrow
#

That’s not true

#

Danny resumed development last year

#

The 2.0 rewrite is out (2.1 already I think) and supports everything as far as I know

spring tiger
#

Oh they did? That went quiet

quiet arrow
#

[2021-8-28] Danny stops dpy development: https://gist.github.com/Rapptz/4a2f62751b9600a31a0d3c78100287f1
[2022-3-06] Danny starts dpy development again, after announcement of v10: https://gist.github.com/Rapptz/c4324f17a80c94776832430007ad40e6
[2022-3-14] Danny reworks async stuff, breaking changes for all! https://gist.github.com/Rapptz/6706e1c8f23ac27c98cee4dd985c8120
[2022-8-18] Danny releases discord.py 2.0, officially supporting slash commands and other modern discord features <#381965829857738772 message>

#

I didn’t get muted 🥳😎

sharp crystal
brisk badge
#

does anyone have feedback on the looks?

#

this is a double pendulum simulator for school btw (dont want to spend too much time on it)

plush walrus
#

then check if that path is valid

quiet arrow
# brisk badge does anyone have feedback on the looks?

Any reason why the variables values are displayed twice?
I’d either remove the bottom left part or add the slider constraints at the top and remove their values there. Don’t think info should be available twice

The energy bar is really fun. But but weird, if you split it up in colours I’d except to have the values for each colour in each colour and total absent or below/above

And then as a “mathematician” axes should be labelled, always with name & scale.

Looks really amazing btw! Will you share it once it’s done, I’d love to play with it

brisk badge
quiet arrow
#

You currently can’t see how much energy is potential and how much is kinetic

#

I’ll try and make a drawing

#

Like this. But then good

brisk badge
#

Ah, that makes a lot more sense. That looks a lot better, indeedc

brisk badge
#

that is fast

quiet arrow
#

Haha amazing

#

Might want to lower the precision

brisk badge
#

yeah but the tens are barely readable too

#

maybe i just should do it on every frame

#

@quiet arrow thank you

quiet arrow
#

Very amazing

minor roost
#

hey cubecraft do you want to add all games from Java edition to bedrock edition games that fail on bedrock version please update skyblok the end added and update survival gmaes all games update and added all java missing games on bedrock edition

quiet arrow
#

Can I have these show for all options, at all times in IntellIJ?

quiet arrow
#

Ty

#

Wrong IDE but probably similar

brisk badge
#

yep

#

or this

quiet arrow
#

eey ty

#

I just deleted the excluded list

indigo nacelle
#

Let’s go I’ve been waiting for this 🤩

brisk badge
rotund prairie
#

bank update

#

PC Heath Check

hard roost
#

PC Heath Check

stiff basin
#

Yes but that’s not it worth

stiff basin
minor roost
#

well lowkey forgot about it

#

and forgot how to do it again >-<

spring tiger
#

What type of SQL database are you using?
For example with Microsoft SQL you'd use their Service Brooker for making queues. With other SQL providers they might have something different or you make your own

minor roost
minor roost
#

like i can just have this

class Queue:

    def __init__(self):
        self.items = []

    def __str__(self):
        return str(self.items)

    def is_empty(self):
        return self.items == []

    def add(self, item):

        self.items.append(item)

    def remove(self, index):
        if index < 0 or index >= len(self.items):
            return None
        else:
            self.items.pop(index)

    def size(self):
        return len(self.items)

    def peek(self, index):
        if index < 0 or index >= len(self.items):
            return None
        else:
            return self.items[index]

    def move(self, start, end):
        if start < 0 or start >= len(self.items) or end < 0 or end >= len(self.items):
            return None
        else:
            self.items.insert(end, self.items.pop(start))

#

but the data would be lost incase the program dies

plush walrus
#

never really tried it and not sure if it fits your needs but I'd check it out if I were you

spring tiger
#

bare in mind the built in queue is not persistent

#

you'll want to have your SQLite server setup in serialized mode so you can support using it in a multi-threaded application without the risk of concurrency issues (i.e if two threads pop the queue at the same time)
https://www.sqlite.org/threadsafe.html

then in your queue implementation you would just add your SQL queries into your methods as you would normally and it should be thread safe

minor roost
minor roost
spring tiger
#

well that depends on what data type the queue is storing

#

if its just strings then you'd just have one column (primary key) for position in queue, and second column for the string

minor roost
#

ye just strings but its get tricky when moving those strings in the queue

#

or deleting them/inserting at the start etc

spring tiger
#

this sounds more like an array implementation and not a queue. generally with a queue you do not insert into it at an index. you only pop the front element, and insert into the back

minor roost
#

and ideally it would be persistent

#

i have a working alternative with just an array but the data is lost if the program dies

spring tiger
#

well you'd do the same logic as your code with what you would do with your SQL queries
in the case of your move method, you would first get the song in the database with an ID of start, and then get the song with the ID of end, and just switch their string values

#

all other actions are trivial, you're just doing regular database inserts, select, and deletes

minor roost
#

hmm ig, but it just seems much less time efficient tbh

fallow summit
#

Hi

indigo nacelle
#

I’ve used google, but can’t find the answer I’m looking for, so I’ll ask it here:
(Python)
How do I ignore keyboard interrupts throughout the entire program? At any point in the program, let’s say the user does crtl + c. I want there to be no effect on the program, and no errors.
Thanks in advance 🙂

spring tiger
frosty shore
#

Ff

indigo nacelle
frosty shore
minor roost
tough verge
minor roost
tough verge
quiet arrow
#

Two people with this pfp

#

What a mess

true mantle
#

Time to turn on light mode🙄

#

Wow

#

That doesnt work

lusty pagoda
silent quail
#

MERRY CHRISTMAS

true mantle
lusty pagoda
brisk badge
thorny hollow
#

they should def just time u out

open needle
outer nexus
#

Hey are there any devs in here? I was wondering what code the bedrock server is based on. Is it completely reverse engineered and built in house, or has Microsoft/Mojang struck a deal with the major servers to share the code/protocol? Thanks

dense zinc
#

@outer nexus

outer nexus
hushed folio
#

Leaderboard maybe For like highest level or somethin idk

cosmic spruce
#

Ye

minor roost
#

🤨

#

this isn't suggestions

winged turret
#

Hey can I get 1 help

#

I wanna know how to put toggle sprint in mcpe

wheat relic
#

Anyone know how to fix downwards KB in Java? 1.19+?

#

In waterfall(spigot/paper)*

brisk badge
# winged turret I wanna know how to put toggle sprint in mcpe

In this video...

In this video, I show you how to get toggle sprint discovered by Oranjus

Side note this video was rushed and I didn't really like it but I should upload so yeah your welcome

Oranjus: https://www.youtube.com/channel/UCjhQ707wV8SiGiCxItH5M4Q
Second Voice: https://www.youtube.com/channel/UClWkQwJzo-gBEOu6enJRYgw

Texture Pack:...

▶ Play video
winged turret
brisk badge
#

Oh

indigo nacelle
minor roost
#

how muxj y'all think this pretty much new PC is

minor roost
#

with everything there included

minor roost
lavish wolf
#

and dont let that paragraph fool you, a single 140mm fan is not enough to keep that pc cool

minor roost
#

bro with all fancy graphics on and 12 rendered in cubecraft 50v50 my friends PC was doing 100 fps and his GPU is 1060

dusky marten
#

Hi

#

Why was I kicked from the server for cheating when I didn't cheat?

minor roost
#

what's the hint

minor roost
dusky marten
#

What

minor roost
#

so technically I could get it for easily less then 500$

dusky marten
#

the message say im fly

#

but I didn't

minor roost
#

Not the suppliers I'm able to reach

dusky marten
#

Hell+o ===>Hell(o)

minor roost
#

unfortunate

#

you're in the programming channel complaining about a ban

dusky marten
#

it's in cube craft server

#

I'm looking for help but the programmer can't help

minor roost
dusky marten
#

what

minor roost
# dusky marten what

you got banned for cheating right? follow the instructions listed on the ban screen

dusky marten
#

I can't join server again so I make new account in minecraft

nocturne crag
#

Bro wants to keep hacking

true mantle
#

No way you can game on 4k with a 1660

#

And you can get that pc for like 600 euro

#

Maybe less

late cosmos
brisk badge
#
  • it's 900 cad
#

1 cad = .69 euro

minor roost
#

Also 1660 super is heavily underrated

minor roost
#

it's now 700 cad / 483 euro so the 600 euro you said isn't worth it anymore

brisk badge
fallow summit
#

anyone down to wager

minor roost
minor roost
#

best duo

fallow summit
jovial heron
#
import random

USER_WINS = 0
COMPRBKNUTER_WINS = 0
WINNING_POINTS = 20
availableOptions = ["rock", "paper", "scissors"]


while True:
    computerChoice = availableOptions[random.randint(0,2)]
    if USER_WINS >= WINNING_POINTS and COMPRBKNUTER_WINS >= WINNING_POINTS:
        WINNING_POINTS += 1
        print("\n>> Extra point for DRAW! ( {} - {} )".format(USER_WINS,COMPRBKNUTER_WINS))
        continue
    elif COMPRBKNUTER_WINS >= WINNING_POINTS:
        print("\n[SYSTEM] The computer wins with the result:"
              "\n( {} - {} )".format(USER_WINS,COMPRBKNUTER_WINS), "\n~~~~~~~~~~~~~~~~~~~~~~~~~~~"
              "\n> 1st Place: COMPUTER\n> 2nd Place: YOU\n~~~~~~~~~~~~~~~~~~~~~~~~~~~")
        break
    elif USER_WINS >= WINNING_POINTS:
        print("\n[SYSTEM] YOU win with the result:"
              "\n( {} - {} )".format(USER_WINS,COMPRBKNUTER_WINS), "\n~~~~~~~~~~~~~~~~~~~~~~~~~~~"
              "\n> 1st Place: YOU\n> 2nd Place: COMPUTER\n~~~~~~~~~~~~~~~~~~~~~~~~~~~")
        break 
        
    atPlay = input("Choose: Rock, Paper, or Scissors [Type Q to Quit]."
                "\n=>> ")
    if atPlay.lower() == "q":
        break
    elif atPlay.lower() not in availableOptions:
        print("\nPlease pay attention to the three available options.\n")
        continue
    elif atPlay.lower() == "rock":
        if computerChoice == "rock":
            USER_WINS += 0.5
            COMPRBKNUTER_WINS += 0.5
            print("\nThe Computer Chose {:s}\n\nDRAW!\n({:.1f} - {:.1f})\n"
                  .format(computerChoice,USER_WINS,COMPRBKNUTER_WINS))
            continue
        elif computerChoice == "paper":
            COMPRBKNUTER_WINS += 1
            print("\nThe Computer Chose {:s}\n\nTHE COMPUTER WINS!\n({:.1f} - {:.1f})\n"
                  .format(computerChoice,USER_WINS,COMPRBKNUTER_WINS))
            continue
        elif computerChoice == "scissors":
            USER_WINS += 1
            print("\nThe Computer Chose {:s}\n\nYOU WIN!\n({:.1f} - {:.1f})\n"
                  .format(computerChoice,USER_WINS,COMPRBKNUTER_WINS))
            continue
    elif atPlay.lower() == "paper":
        if computerChoice == "rock":
            USER_WINS += 1
            print("\nThe Computer Chose {:s}\n\nYOU WIN!\n({:.1f} - {:.1f})\n"
                  .format(computerChoice,USER_WINS,COMPRBKNUTER_WINS))
            continue
        elif computerChoice == "paper":
            USER_WINS += 0.5
            COMPRBKNUTER_WINS += 0.5
            print("\nThe Computer Chose {:s}\n\nDRAW!\n({:.1f} - {:.1f})\n"
                  .format(computerChoice,USER_WINS,COMPRBKNUTER_WINS))
            continue
        elif computerChoice == "scissors":
            COMPRBKNUTER_WINS += 1
            print("\nThe Computer Chose {:s}\n\nTHE COMPUTER WINS!\n({:.1f} - {:.1f})\n"
                  .format(computerChoice,USER_WINS,COMPRBKNUTER_WINS))
            continue
    elif atPlay.lower() == "scissors":
        if computerChoice == "rock":
            COMPRBKNUTER_WINS += 1
            print("\nThe Computer Chose {:s}\n\nTHE COMPUTER WINS!\n({:.1f} - {:.1f})\n"
                  .format(computerChoice,USER_WINS,COMPRBKNUTER_WINS))
            continue
        elif computerChoice == "paper":
            USER_WINS += 1
            print("\nThe Computer Chose {:s}\n\nYOU WIN!\n({:.1f} - {:.1f})\n"
                  .format(computerChoice,USER_WINS,COMPRBKNUTER_WINS))
            continue
        elif computerChoice == "scissors":
            USER_WINS += 0.5
            COMPRBKNUTER_WINS += 0.5
            print("\nThe Computer Chose {:s}\n\nDRAW!\n({:.1f} - {:.1f})\n"
                  .format(computerChoice,USER_WINS,COMPRBKNUTER_WINS))
            continue

is there any problem with dis?

brisk badge
jovial heron
hard roost
#

Work smart, not hard

minor roost
#

true...

quiet arrow
# jovial heron ```py import random USER_WINS = 0 COMPRBKNUTER_WINS = 0 WINNING_POINTS = 20 ava...

Yes, it's not very readable. Pretty hard to figure out what's going on. So hard to see
So for a few tips;

  • I believe there is a random.choice to pick from a list
  • Try to extract some code that looks similar out to functions and give them a descriptive name
  • Use f strings instead of .format, I think they're more readable; and if you scroll up you'll see that it's faster 🤣
  • I don't like while True a lot, what I've been doing lately for loops is having functions call themselves / call in a loop. I find it pretty beautiful

Here, I'd try to make it 3 main functions. user_play, computer_play, results You start the loop by calling user_play which handles the input, which could then calls computer_play with the user's choice as argument, etc...
This would also completely remove the need for the global vars you're using now as you can just keep passing them through the arguments of functions if you'd want.
I've been having to much functional scheme 😭

If you really want to make it harder for yourself, try to find a way to check who wins with positions in your options list, so you don't have to hardcore the results. If you do it right, you should be able to just add an extra option to the list and it will keep working in the cyclic way the game doesn't work then so nvm

#

I'll try and make my own solution to the last part as well

jovial heron