generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: Dragon Knowledge Hoarding #4

Previous Thread :: Next Thread 
eLunate is not online. eLunate
Joined: 29 Jul 2014
Total Posts: 13268
03 Jun 2016 03:40 PM
This is going to be a short one because such is the nature of things like this to very quickly run out of content.


Do you prefer logic or maths? Both are super important in scripting, but I personally prefer logic because then I don't have to worry myself about the numbers involved.

Have you ever tried reimplementing something which is already implemented on an API level in Roblox? Why did you do it? We had to reimplement events because Roblox screwed theirs up.

Have you contributed to any open-source projects? Why did you do it? What did you contribute?

Made any cool games? Modules? Anything?

Have you had to write documentation for anything? I have to write all the documentation for Valkyrie and let me tell you now I'm so pleased I made my own format for it.

Fact: The code for all of Lua is smaller than the code for Regex.

Challenge #4:
Make a function which, given an input string in the format of a Lua mathematical expression, evaluate the result. The function only needs to support the 4 basic operations (+ - / *) and parentheses. Bonus points for supporting various number formats, and for extra operations.

Nobody completed #3, so I won't put a solution yet. If nobody completes it soon I'll put the solution regardless.


As always, low quality responses are punishable via death by brimstone. If you have anything cool to say, go ahead, because I need content to recycle. That's right, I'm an eco-friendly dragon.
Report Abuse
TheTermaninator is not online. TheTermaninator
Joined: 02 Jun 2015
Total Posts: 7
03 Jun 2016 03:42 PM
k...
Report Abuse
eLunate is not online. eLunate
Joined: 29 Jul 2014
Total Posts: 13268
03 Jun 2016 03:43 PM
And so, we have a prime example of the few people who are so completely useless in every situation known to a scripter.

I pity you Termaninator.
Report Abuse
YellowTide is not online. YellowTide
Joined: 20 May 2011
Total Posts: 267
03 Jun 2016 03:44 PM
^ Get the brimstone


Report Abuse
eLunate is not online. eLunate
Joined: 29 Jul 2014
Total Posts: 13268
03 Jun 2016 03:49 PM
<< TheTermaninator was killed by Brimstone >>
Report Abuse
Flux_Capacitor is not online. Flux_Capacitor
Joined: 07 Apr 2008
Total Posts: 45720
03 Jun 2016 04:58 PM
"Do you prefer logic or maths?" Neither, I'm bad at both D:

"Have you ever tried reimplementing something which is already implemented on an API level in Roblox? Why did you do it?" Yes, Vector2s. They don't have a Dot product method for them.

"Have you contributed to any open-source projects? Why did you do it? What did you contribute?" Sort of. I corrected like 3 "bugs" of other people's projects but that's it.

"Made any cool games? Modules? Anything?" No

"Have you had to write documentation for anything?" Yes, and I hate doing it

"Fact: The code for all of Lua is smaller than the code for Regex." Swag
Report Abuse
Kodran is not online. Kodran
Joined: 15 Aug 2013
Total Posts: 5330
03 Jun 2016 05:01 PM
It depends, some days I'm a logic guy some days I'm a math guy. I feel much more proud when I figure something out using maths.

Nothing major, I made my own vector3s and applied matrices to them cause I was learning about them and I was bored.

Nope I've never contributed to any open-source projects. I probably would if it was something that interested me. I code for fun so helping create something I'm actually interested in would be pretty cool.

In roblox, nothing really. Otherwise, I made a kind of puzzle game where you have to navigate through dungeons using solely sound. Close to walls, a static sound gets louder. Close to death holes, eerie sounds start to play, closer to the finish the music gets gradually higher pitch and quicker. It was nothing major, took about two days.

Nope, I'd probably not be very good at keeping any documentation very organized. It's not exactly my strong suit.

Challenge:
dumb person way: bunch of if statements
my way: bunch of if statements

:)
Report Abuse
ExtremeBuilder15 is not online. ExtremeBuilder15
Joined: 01 May 2012
Total Posts: 3176
03 Jun 2016 05:18 PM
I prefer maths, idk why. Maybe just because numbers are fun.

No :( I'm boring.

See above.

Maths to make this https://www.roblox.com/games/397900670/RPG-Testing

Again, I'm boring.



Do you have anything on global positioning? And do you like quaternions? (;p)
Report Abuse
eLunate is not online. eLunate
Joined: 29 Jul 2014
Total Posts: 13268
03 Jun 2016 05:37 PM
I love quaternions. Also, we're going to assume that loadstring blows up your computer for the sake of this challenge.
Report Abuse
Slappy826 is not online. Slappy826
Joined: 25 Feb 2012
Total Posts: 75
03 Jun 2016 06:40 PM
would it be considered cheating if you used http? ( ͡° ͜ʖ ͡°)
Report Abuse
eLunate is not online. eLunate
Joined: 29 Jul 2014
Total Posts: 13268
03 Jun 2016 06:50 PM
Yes. Because you're supposed to use vanilla Lua stuff for this, but you're supposed to assume that loadstring blows up your computer. No modules, no C bindings, nothing fancy.

It's trivial if you know what you're doing.
Or if you happen to be a dragon.
Report Abuse
Kishero is not online. Kishero
Joined: 02 Nov 2015
Total Posts: 214
03 Jun 2016 06:56 PM
"Do you prefer logic or maths?"
What preference? They work together beautifully.

"Have you ever tried reimplementing something which is already implemented on an API level in Roblox? Why did you do it?"
Yes, why not do it?

"Have you contributed to any open-source projects? Why did you do it? What did you contribute?"
Yes, I made it, most of it.

"Made any cool games? Modules? Anything?"
That's an opinion.

"Have you had to write documentation for anything?"
Open source code.

"Challenge #4:
Make a function which, given an input string in the format of a Lua mathematical expression, evaluate the result. The function only needs to support the 4 basic operations (+ - / *) and parentheses. Bonus points for supporting various number formats, and for extra operations."

Elaborate.

Report Abuse
eLunate is not online. eLunate
Joined: 29 Jul 2014
Total Posts: 13268
03 Jun 2016 07:06 PM
Given a string in the format of a Lua arithmetic expression, consisting only of numbers and operators, evaluate the result of the expression.

magicFunction("7*3 +6 - 9 /2") --> 22.5
Report Abuse
eLunate is not online. eLunate
Joined: 29 Jul 2014
Total Posts: 13268
03 Jun 2016 07:08 PM
Also the maze of sounds, uh, sounds interesting.
Report Abuse
Kishero is not online. Kishero
Joined: 02 Nov 2015
Total Posts: 214
03 Jun 2016 07:09 PM
Ohh, where do I post solutions?
Report Abuse
eLunate is not online. eLunate
Joined: 29 Jul 2014
Total Posts: 13268
03 Jun 2016 07:23 PM
Message them to me so not to spoil the fun.
Report Abuse
Kishero is not online. Kishero
Joined: 02 Nov 2015
Total Posts: 214
03 Jun 2016 07:35 PM
Alright, I might do it.
Report Abuse
eLunate is not online. eLunate
Joined: 29 Jul 2014
Total Posts: 13268
03 Jun 2016 07:57 PM
It should be simple enough once you get the concept. In fact, once you get the concept down, it's a matter of copy-pasting your lines a few times.
Report Abuse
Kishero is not online. Kishero
Joined: 02 Nov 2015
Total Posts: 214
03 Jun 2016 08:09 PM
If I do it I'll allow parentheses stacking.
Report Abuse
eLunate is not online. eLunate
Joined: 29 Jul 2014
Total Posts: 13268
03 Jun 2016 08:11 PM
You don't have a choice. The challenge states that it needs to support parentheses.
Report Abuse
Flux_Capacitor is not online. Flux_Capacitor
Joined: 07 Apr 2008
Total Posts: 45720
03 Jun 2016 08:12 PM
kek
Report Abuse
Kishero is not online. Kishero
Joined: 02 Nov 2015
Total Posts: 214
03 Jun 2016 08:17 PM
I said parentheses stacking. =p
Report Abuse
eLunate is not online. eLunate
Joined: 29 Jul 2014
Total Posts: 13268
03 Jun 2016 08:27 PM
And I said you don't have a choice, because if it doesn't support parentheses then it's not a proper solution. I don't care what fancy name you want to give it, just so long as you understand the challenge.
Report Abuse
Kishero is not online. Kishero
Joined: 02 Nov 2015
Total Posts: 214
03 Jun 2016 09:20 PM
I think I might start on this now.
Report Abuse
Kishero is not online. Kishero
Joined: 02 Nov 2015
Total Posts: 214
03 Jun 2016 09:31 PM
I finished it but can't message you.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image