>roll it
>code it
>post it
Any language you want
Pro/g/ramming Exercise Thread
Decided to try Basic on a whim and made this last night. Tell me how bad I did
[start]
i = INT(21*RND(1))
guess = i
cls
[input]
input "Enter your guess from 1 to 20. Type 0 to display the answer: ";answer
if answer = 0 then [print] else [first]
[first]
if answer = guess then [correct] else [check]
[check]
if answer > guess then
Print "Too high, try again: "
goto [input]
end if
if answer < guess then
Print "Too low, try again: "
goto [input]
end if
[correct]
Print "Nice job!"
goto [prompt]
[prompt]
input "Play again? [y/n] ";playagain$
if playagain$ = "y" then [start] else [exit]
[print]
print i
goto [prompt]
[exit]
print "Goodbye"
Looks fun, I'll give it a try.
Fuck it, I need to get good. Rolling.
What should I do it in? C++ java or php?
LOOKS LIKE IM LEARNING DATA ENCRYPTION
roll
roll
time to neck myself I guess
Want to trade, I dont know about image encryption?
roll
ok, 2nd beer in, I h
Rollin baby
just use ascii values as rgb values
Rollan
Roll
You make it sounds easy, looks like I am going to be reading for a while
Count me in.
Rolling
Rolling
oh, welp, looks like I am using JAVA
rolls
Rolling
rolling
nonogram -> too hard
rerolling
rollingo
There, I got it working, kind of. It iterates through a fixed movement pattern so it always gives this result. Might add a randomizer later.
roll
rollxx
roll
roll
Rollllllll
!!
yolo
Rolling
roll
hope it's something fun
not at my pc, but still curious
roll
I'm at coderbyte trying to learn JS by doing exercises. This is the easiest one, a string reversal. I'm beyond retarded, mind you. What am I doing wrong?
meh, rollhan.
Rolling
I'm here to post without doing anything because I'm retarded
It's some fun BASIC dialect.
Rolling, even though I'll probably just watch anime instead
roll, i'll do it unless its something stupidly tedious like window manager or enigma simulator with a configuratino file
yep, that's really boring. reroll
probably can't do any of these, definitely this one
reroll
Worth a try. Roll
you have to do str.length - 1 since arrays start from 0
I hope it's not too hard...
Rolling
True -_-
Thanks user!
roll
rol
roll
rollz
Why not let's roll.
roll
Rolling
rolll
roll
lemme
How exactly do lambda work in C++ and what is their usage? I'm a brainlet and I struggle to properly understand what it even is
Rolling. Daddy needs another project to distract him from the existential pain of everyday life.
the point of these reverse string excercises is for you to do them with no supplementary helpers like the reversed one
Here we go
roll
they're just functions you can use in an expression instead of statically declaring them at runtime
Rolll
ROOOOL
Roll
>battleships with ai
i tried but fuck it, i give up. this is why ill never get a job.
>clock, fizzbuzz
vs
>DnD with AI
who made this retarded image?
rolling
Sure, why not
yee
r ol l i n n g
Reeeee i already did this one
Reroll
alternative version for your consideration
Not very robust but here’s a quick one:
static void Main()
{
Console.WriteLine("Enter the requested password length:");
var input = Console.ReadLine();
var length = int.Parse(input);
const string alphaNumericSymbols =
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!@#$%&";
var pwd = "";
var rando = new Random();
while (pwd.Length
Shoop ditty poop
rollin' like a wrecking ball
Anybody got either/both of those tables in plain text?
I am thinking of writing up a site to roll you one of these instead of doing the actual algos. Might be fun and wouldn't take much front-end fuckery.
I guess I could fuck around with OCR (or throw a neural network at it, once I have hardware for that again) to get the items as an alternative if not.
Roll
Or you could just type them all out
hh
re
Rollerino
Rollan
noice!
Roll
roll
roll
roll
roll :^)
I hope it's something I can do.
rolling
ez
rolling