#dev-general
1 messages ยท Page 265 of 1
what
|| i figured it out by looking at the binary representations ||
<o/
solid 0%
|| it's true if the number is all 1s in binary, therefore if it's 1 away from a power of 2 ||
o.o
i just checked if it was 5
lmao
think mine is perfect
lol
why do you even know this
it was kind of a guess
I truly suck at maths so I assumed it was maths
lol same
why did my code only get 80%
but a power of 2 number is 100000000000000000000 (any number of 0s)
i actually dont kno
is there another one?
moar
now that I have some idea whats going on
yeah
ALL the maths
how is shortness determined
characters
oof so rip java then?
yeah any characters
dammit
shortest is rigged
i might try python thunder claps
Was waiting for everyone
nice
lol
look at my code yeet
from what?
gg bm
that code is tight
yeet
gg
uh wut

its not multiple lines
you need to print to the same line
just use print instead of println
and add a space
or pipe to String.concat " " ๐
Haskell does it once again
trim the string
efe u have an extra space yeet
I ahve no idea what this error means
every haskell error ever
lol
wtf is a RealFrac
real fek
efe, String#trim()
a fraction?
it does, but I havent used division
logarithms?
ยฏ_(ใ)_/ยฏ
uff efe
concat them all to a string
print that
but trim the concatenated string
or String.join it
which is probably the better way of doing it
less than a minute left bois
100% ez
I don't understand what is the question lmao
efe code
damn flexing with the ternary operators
moar clash
moahr
lowkey didnt understand the question for like half the time
lol
took me 4 mins to get it haha
i didnt understand the output they gave
too much information
@quiet depot wanna join
o/ yeet
go go
allons-y
looks like a lisp lol
ohhhhh
-_-
-_-
hmm this one is weird
What's the most efficient way of detecting if a person is standing over a certain block
If I use PlayerMoveEvent the player can just not move and not be affected
So a runnable perhaps?
how the hell
-_-
o
lets see what the fuss is about
o
i hate this
1 middle section, and the other sections are a even split
<o/
just hard code the answers
ez
xd
Failure
Found:
(-(-(-_(-(-(-_(-(-(-_(-(-(-_(-_-)-)...
Expected:
(-(-(-_(-_(-_-)_-)_-)-)-)
``` oofins
What's latest shadow version
o shit i think i know how to do this
thank you ๐
console.success("answer"); ๐
ok it's actually tricky
After watching my lectures I can only think of making a context free grammar for this ๐ฅฒ
24th march
i given up
And once again
smh I am still trying to figure out the question
The HASKELL has done it
atleast for once
failed me last 2 times ๐ฅฒ
xD
THE FACE
((face "(-" hh) ++ (face "(-_" hh) ++ "(-_-)" ++ (face "_-)" hh) ++ (face "-)" hh)
god
I cant see that ๐
it didnt expect you to print something out
but you did
You probably outputed more lines than neccessary
that one was so hard
100%
damn 15 on the dot
mine didnt even compile ๐
Can you check block types async?
i butchered it
Should be able to ye?
had to hack it a little to work
smh .repeat when I used StringUtils it said that there's no package called ..
Only a bit
BM, you'll know the answer to my question
ok it appears we all did pretty much the same
thought you could do (string * amount) but apparently not
You can in python
oh you thought you were being smart
moOAr
well the public tests are part of your score
They werent in 1 game for some reason john xD. Someone did this that round and got 0%
actually wait
there's already a bot that lets you execute code
i think that has an api
=eval
we need to try and get 100 person game at some point
undefined
ez
just build the 'clash of' thing around that bot
??
cube should add coc to barry
thereโs undocumented api iirc
thereโs wrappers in other languages
might even be one in js
I found one a while ago
think it was python
should be a relatively easy translation
iโll link u soon if i can find it again
?
cube...
it was on github
#dev-general is fine
you're HadZakee right
that would be me
ah
how do I change language again
oh my god
I mean outside of contest
I'm a massive idiot
.
is there no way to set a default language or something
python was opened so I had to do in python ๐คฆโโ๏ธ
doesn't it keep whichever one you last used
It opens up the last language you use
Yes
there should be a dropdown menu or something
@pallid gale https://github.com/takos22/codingame
fastest
jeez that took long enough
this match ends in less than 2 mins

most of these problems are so much nicer functionally
done now
these problems reflect the people who made em up
yeah reverse is the best
reverse is fun
fastest kinda boring
We can do reverse only modes after this then I guess
time to win in shortest using java ๐
Shall I start?
wait someone said shortest doesn't use whitespace right
it does
darn
ggs
that F# code looks so clean
ikr
i love it
|> List.map (fun _ -> int(Console.In.ReadLine())) apart from this
this sucks
way too many parentheses ๐ฆ
Is the game finished?
there are still 3 people
3 peeps left
including you thien xd
indentation fucked my time up, f# is kinda strict on where you put everything
Erm.. I said that I would leave after 15mins lol
I just joined to see if the test were any easier
working on adding something to barry for you peeps
๐ฎ
o.o
wait and see
How to leave the match after that 
aw well if you're not gonna do it then submit your code, so we dont have to wait the entire timer out
submit the template
Yeah already
noice
ok
are those last two afk
possibly
moar?
What is the code though?
open System
let HuntersCount = int(Console.In.ReadLine())
let DucksCount = int(Console.In.ReadLine())
let killed =
[ 0 .. HuntersCount - 1]
|> List.map (fun _ -> int(Console.In.ReadLine()))
|> List.distinct
|> List.length
printfn "%d" (DucksCount - killed)
Can't seem to figure the logic here
obviously
it's like ducks and hunters and how many are left alive
My english is not good at this point ._.
new round?
i pride myself on my communications skills
dab might be afk
developer perk?!?!?!
Why is that plural
is that everyone
ew
fight me
launch
come over
covid, cant fly
dammit
hmm
get gud
oh no its shortest
ur probably gonna win
who's HadZakee
that would again be me
how ?
i used [^0] as the regex
what is []
o.o
open System
open System.Text.RegularExpressions
Regex.Split(Console.In.ReadLine(), "[^0]")
|> Array.map Seq.length
|> Array.max
|> printfn "%d"
this is my uncompressed code and it's beautiful
anyway brb
getting food
shame
node go brr brr
k next clash code invite should get barry-ifed assuming a developer role person sends it
I give up ._.
I just added a feature to minecraft, which I don't know why it doesn't exist in the game itself.
dammit
Java be bad on me this time lol..
Allmost
๐ฎ
o.o
old link ik
i tried making it work in java but it wasnt getting anywhere near small enough ๐ข
how to invite?
just send a link in chat
Completed already 
with no other text
Would starting a game be possible?
requires dev role or staff and only works in #dev-general
#developer-chat ๐
Someone needed to guide me play Fastest mode thoroughly ._.
I failed like every Fatest so far
where to buy developer role
o lol
Lol

1 sec will fix
u dont
I will pay in cash
paypal then ?
;-;
Make a Barry account and use that as the login
hmm
I am proficient in php
That's not something to be proud of
moar
would that earn me the dev role tho
Someone else host I'm afk
If you have like 3 projects yes
bruh
I can carry in bw
๐ฅฒ

Yugi use elara as one of the projects 
Do I link 2 projects?
oh
fixed it
fc
ok then
you gotta get that admin rank so you can do bot commangs in #general lmao
this ^
where do I buy
i kinda cheesed it but it's fine
FUNNYCUBE say this^ to my message omg
funnycube did notice me
the owner knows who i am
i was recognized by the owner LETS GO
Rick Astley's official music video for โNever Gonna Give You Upโ Listen to Rick Astley: https://RickAstley.lnk.to/_listenYDSubscribe to the official Rick Ast...
won't happen again

subtle bro
you have to put <> around ur link so it doesnt embed obviously discord 101
ik
How do you cast something within a stream?
map()
Rick Astley's official music video for โNever Gonna Give You Upโ Listen to Rick Astley: https://RickAstley.lnk.to/_listenYDSubscribe to the official Rick Ast...
any updates on the tutorials
.map(entity -> (Sheep) entity)
i kenew it
banned
we need to know
byeeeeeeeeeee
gonna see what i can do today
but i have stuff to do
/releases and /blog always redirect
lets gooo
have fun with that information
o
got to speedrun a plugin today so i might not have time
if u need help with editing or anything talk to me
kk
use <> smh
brister pls pasta CoC link, need to test if working
ok
this is true
o it works
hawt
it does
delete what message
do ctrl + r
make it 5 mins
oh
can do
client
gltich
do ctrl + r
smh
@prisma wave invited you to join their game, click here to join.
will delete after 180000ms
ok it worked that time
earn it
how
by being a dev 
๐ญ
k that invite wont get deleted cause i rebooted barry
Developer (Any language*):
- Link to Github profile with
proof that you own it.- 2+ Active projects of your
own.- An understanding and attempt
at following your chosen languages'
principles and conventions.
*No scripting languages
but new links delete after 3 mins
can take awhile to get approved/dennied
depends on the lang
what's the definition of "active"
why isnt this working
not something you made 10 years ago and never touched since
i forgot to upload a project to github
how about 11 days ago
thats fine
O_O
if I am creating a discord bot and a mc plugin for some other server
do those count
any development project is fine
dkim dm me your app if it gets accepted wink
depends on the lang dk
pig/lemmo most likely
I swear the โdeveloperโ role is pretty useless though
xd
not now :))))
It has?
stalk them from the helpchat org
What is the perk then?
They need to see understanding of premise
quality is checked
But I donโt believe itโs needed to be godlike
they are pretty strict on it
denied for static abuse ๐
Full OOP?
You just need to meet An understanding and attempt at following your chosen languages' principles and conventions.
dmik did u just apply
I don't manage dev requests so dont sue me
So as long as you arenโt a complete idiot you should be fine
i am rn
Whatโs the perk anyway?
CoC invite thingo
Hard asf
lol
hmmm
I keep forgetting Math.max and Math.min exists
1 year?
You realise you are talking about devs right?
You may be lucky to get it looked into in 2030
soonโข๏ธ
hmm
๐
I mean, whats the rush?
Yeah honestly I donโt really see the purpose of me doing it
Iโd have to give access to private projects and that sounds like effort
hopefully not
Believe you have to be the true owner
that doesnt mean you can claim the owner title
Also the size of community matters
bad manners
I cant host a $1.60 server for 5 people and then claim that title
Ohh dam that is actually quite low
btw project size for dev application does matter
we can't accurately review small projects
they don't show your abilities
How small is small?
wdym
oh
uh
ok
i have low chance then
no idea why we're so strict anyway
I donโt see the perks to make it worth the effort
I have 2 projects with 15 subclasses o.o
should of applied when i managed the dev role requests
yeah cube was way easier
you got approved if you had a public plugin
Like all I can really do is go look I have a dev tag
lol
all my projects of any significant size are private lul
dkim that's a really shitty number and you shouldn't go off it
That isnโt a lot....
i pulled it out of my ass
no wonder bm got developer role
jerry the idea is that it's a fairly exclusive role
pig reviewed mine iirc
Oof poor BM
you have to be objectively good to be able to get it
honestly easier to get admin and give the role to yourself then pass pigs requirements
aren't I good?
and it gives you access to a channel with a bunch of other developers who are also objectively graded
I like being unique
and me
oh a channel with big technical words
can i ask for help in it then ;3
sure
cool people chats
You should add a minor XP boost to it
despite it being the hardest role to get, it has the most members out of our requestable roles
it's probably got over 100 members
dead chat
well this is a development server
stop chatting and review apps ;-;
I got approved a bit of time ago and 99% of my stuff is contributions to other projects and archived or W.I.P half-finished crap
oh yeah contributions is another no go
if your only activity on github is contributions, you probably won't get accepted
why is that though?
wonder if we could change role request so current dev role people vote on incoming people
because likewise to small projects, it's impossible to gauge how good you actually are
what about developers who, like me, don't have the creativity?
developers don't become developers for creativity lol
Then you arenโt a developer purge the heretic
developers usually lack creativity, no?
true
that's why all their sites look like shit
@prisma wave Is clash over?
If you just want the Coc invite thing just be helpful to others, wait for support application to open and apply
but I mostly don't make projects from scratch because I lack the ideas or I'm just lazy
๐ฎ
actually i have one decently sized public project
https://github.com/Ivan8or/Ball
it's not the cream of the crop but it's not tiny
yeah ive got stuff to do rn
i bet i can beat cube
with my 300+ ping?
yes
ivan I'd actually say that's the bare minimum on size
good
yeah that's not that big
u use maven
that's actually really small then
@pallid gale btw i wanna make it so you only need 1 active project
๐
I have 350
you got a problem with that 
yeah
what are https://github.com/BomBardyGamer/punishments and https://github.com/BomBardyGamer/bardybot like for size btw?
if you're going to change up the system so it's community based, jsut wait till then to change the message
too bad ๐๐ฅ
oh so I can just merge my discord bot and mc plugin, and boom, a big project with variety
I just wanna know for comparison
well community would help lighten our load
like if I should still have the dev role lol
if there isnt enough votes then it falls back on us
might want to still make it have a final say by a staff member
to avoid people getting their friends to vote for them
Dam SupremeRiding do be looking hella sexy @obtuse gale
no github pro 
this is long term changes here
@jovial warren both projects are small to medium sized
what about unfinished projects
doesn't matter if they're finished
or if they even work
we care about if your code is good or not
i see
wait
that's equally scary
What about a long abandoned anticheat
how long ago does it have to be last updated?
also, idk who you got to review my projects, as those projects are both in Kotlin lol
lemmo probably did
me
did you actually bm?
@obtuse gale yeet
excuse my terrible circle
cya
nah but if you ever wanted an extra reviewer :))
eeee
BM probably knows the most about Kotlin conventions out of pretty much any of us here
hm
can I give bm access?
nah
to what
lets talk later about it
๐๏ธ
the only thing with BM is that he will tend to flame you for shitty code lol
but I think most of us do that anyway
lol I remember a while back I had one guy have a go at me when I denied his app
he said conventions are optional
????
I mean, technically true, but if you're one of those who doesn't follow the conventions, most people look at you like a right mug
not sure why he even applied if he had no interest in following conventions
the requirements are pretty clear
anyway to anyone who has a pending app
i'll try get through them soonish
before I go back to school
apart from non-java ones
you'll have to bug lemmo for those
the developer role is meant for developers who have experience in following the principles conventions of their chosen language, and can show an example to the rest of the community on how it's meant to be done, isn't it?
that's the point
hi guys and girls
everyone can use externals in clips pings
put the code above the code that runs later
why would that be a thing?
before the code that runs later starts
if you have no knowledge of what's going to happen or when, you can't look into the future and predict when it's going to happen
relatively speaking, very fast
you intending on having the tasks run on separate threads to each other?
if so, there is no way to make one run before the other without synchronising them, which would basically block one thread whilst the other is executing
just schedule two things?
one with a 1ms delay
and another with a 2ms
but those are ticks not ms I think?
@quiet depot no guarantee that they'll definitely run before though
I would just run all the tasks you want to happen in sync with one another in the same thread
then they will always run in that order
discord sent them in the wrong order :sadge:
very sadge
howw
mine takes like 16 seconds
maybe it has to startup the daemon
startup time is like 5-7 seconds
what are you building then?
Can someone link me triumph chat repo
xD
@ocean quartz you also have to disable the plugin when doing return; inside onEnable()
lmao
craftbukkit 
lmao i love that
ive once been on a craftbukkit server
wait
Oh damn I like the parsers
in this day and age who honestly doesnt use paper
they have a server?
does /version have a permission?
?
yea
probably op
oh damn tought you meant a discord server
The following are all the server commands either a server administrator or admin in-game can enter with CraftBukkit out-of-the-box. In addition to the original vanilla SMP commands there are 4 additional commands which are specific to CraftBukkit. CraftBukkit provides built-in permissions which can be used in a permissions manager. Defaults are ...
Hell yeah, self delete
Make sure you're on development, plus i got push some stuff, big changes
Should I wait for the push or?
Might be, i changed it to use adventure builder instead of my own, give me 5 minutes
kk
๐ญ when I work on a plugin for someone for countless hours and then they dm me saying they don't need it anymore
Paid?
classic
yes
That's why you get paid beforehand.
I mean what kind of plugin is it?
@prisma wave I need git help
kinda like a rewards plugin, sorta like a mcmmo lite lite lite
which is why i needed help for perks and stuff yesterday
What is this shit
lol
I've not committed anything yet, and it detects no fucking changes
There's no files within ignored files (which was the fix last time)
frosty wtf is ur nick 
idk blame piggy or cube
but why 
My status
u dont have 1
yus
happy new year
efe, test out this piece of code
final UUID uuid = player.getUniqueId();
final Set<Sheep> nearbySheep = player.getNearbyEntities(0.5, 0.5, 0.5).stream()
.filter(entity -> entity instanceof Sheep)
.map(entity -> (Sheep) entity)
.collect(Collectors.toSet());
if (nearbySheep.isEmpty()) {
if (player.isOnGround())
damageListener.removePlayer(uuid);
return;
}
final Vector playerVelocity = player.getVelocity();
player.setVelocity(new Vector(playerVelocity.getX(), velocityMultiplier, playerVelocity.getZ()));
damageListener.addPlayer(uuid);
Does wonders
showcase
I'll push to GH
When it decides to fucking work
Github Desktop 
lol
GitKraken 
Command Line 
Git Bash
Fucking sadge
You can install GitHub Desktop on Windows 7 64-bit or later.
@hot hull happy freaking bday u absolute dodo
thanks
guess it can't be installed on windows xp darn
electron apps on windows 98 ๐ฅฒ
O
Smart Barry
well you tried
just testing