Nick   1,249 / 17,852 Report Post Posted November 26, 2019 Hi, everyone!  December is upon us, and that means Advent of Code! 😄 Here's the description of AoC: Quote Advent of Code is an Advent calendar of small programming puzzles for a variety of skill sets and skill levels that can be solved in any programming language you like. People use them as a speed contest, interview prep, company training, university coursework, practice problems, or to challenge each other.  There'll be a channel for it on Discord under Events where you can talk about the daily challenges. We've set up a private leaderboard for GFL where you'll be able to see how others in GFL are doing. This leaderboard can be joined here (after you've logged in) with the code 103534-dd0879f0.  I hope that many of you will join us! It's a fun challenge for all skill levels, and it can also provide a fun way of learning to program. Wanna know what I am up to? Take a look at my personal Trello board or my cards on the Development Trello board! Share this post Link to post Share on other sites More sharing options...
Joshy   4,364 / 44,945 Report Post Posted December 1, 2019  Edited December 2, 2019 by Joshy - Edit Reason: Removed Not sure if it just wants the function? Sounds like we'll throw it into some conditionals for Go (or No go) and this function will help us get the upper fuel limit?  [DAY 1]   Edited December 2, 2019 by Joshy Removed Share this post Link to post Share on other sites More sharing options...
Nick   1,249 / 17,852 Report Post Posted December 1, 2019 Hey, @Joshy. Can I get you to remove your code from your post? I'd rather not have solution shared on this thread. 😄 Wanna know what I am up to? Take a look at my personal Trello board or my cards on the Development Trello board! Share this post Link to post Share on other sites More sharing options...
_Rocket_   656 / 8,277 Report Post Posted December 2, 2019 I was able to get day 1 completed in under 40 minutes 😄 Man this is already fun! I can't wait until these get hard. I can only imagine how challenging they'll start getting after a while. I don't know if I'll be able to do them each day, though. Big rip right there.  Good luck to anyone who is participating. If you are stumped on day 1, don't worry. This is very good practice. Programming is all about problem solving. It takes time to get better at solving problems quickly. This is how you do it. The only reason why I am able to do this so quickly is because I have already made games. And that? That took HOURS upon H O U R S of problem solving and bug fixing xD  It's the only reason why I know I can do crazy stuff like this with for loops: Censored so the solution isn't completely spoiled xD Don't worry I won't provide anymore code from now on. All the other solutions are up to you guys. Good luck mibois I write programs and stuff.  If you need to contact me, here is my discord tag: Dustin#6688  I am a busy person. So responses may be delayed.  Share this post Link to post Share on other sites More sharing options...
Joshy   4,364 / 44,945 Report Post Posted December 2, 2019 Was it difficult? I feel like I must have done something wrong or misunderstood (I couldn't tell) because the one minute I took to type it was too long. Share this post Link to post Share on other sites More sharing options...
_Rocket_   656 / 8,277 Report Post Posted December 2, 2019  Edited December 2, 2019 by _Rocket_ Make sure to read the instructions carefully. Read it out loud. It helps you notice small details you may have missed. The entire question description needs to be read. Edited December 2, 2019 by _Rocket_ I write programs and stuff.  If you need to contact me, here is my discord tag: Dustin#6688  I am a busy person. So responses may be delayed.  Share this post Link to post Share on other sites More sharing options...
Nick   1,249 / 17,852 Report Post Posted December 2, 2019 Yea, I really love the storytelling in Advent of Code. It teaches you to navigate through bloated descriptions and identify the central pieces which is something you'll often have to do when working with customers, haha. Wanna know what I am up to? Take a look at my personal Trello board or my cards on the Development Trello board! Share this post Link to post Share on other sites More sharing options...
_Rocket_ Â Â 656 / 8,277 Report Post Posted December 2, 2019 Oh yeah I'm getting prepared for the hell that is customer requests. You think understanding these instructions are hard? Oh boy I can only imagine. Â The goal is to find important details. Find out what requests can be variables, what can be calculations, and what can be inputs. Find any constraints as well. Â Since you are learning, I am gonna provide some hints only for day 1. Â At the start you are just being fed useless information. You still want to read it just in case, but none of if really tells you any possible details you need to consider while writing your code. Â Your first details lie within the expression to handle the fuel calculations. It gives you an exact process. n / 3, round that down. Then subtract 2. This will be your fuel count. It then gives you examples. These are just examples, so they really don't tell you any new ways to write your code. So ignore the examples unless you need them to help understand the expression better. Â Next, there's one thing that is only said once. If you do not read carefully, you'll miss this in the sea of information. It asks for the TOTAL of all the fuel amounts. This is a vital part of the equation. Every time you calculate the fuel, you are going to need to add that calculation to a total. I suggest you use an unsigned int or some other variable to store the total. You will be constantly adding to this. Â Lastly, it gives you an input. The input has MANY numbers. Like a list of them. The way you handle this is up to you, but I would suggest using a file I/O to cycle through all the inputs inside a text file. Â All this should fall into place. You got an expression, you got a request (the request being they want the total of all the fuel values), and lastly you got an input. This is all you have been provided. Now try to write a program that gives the customer what they requested. And again, remember, they requested the total. Â So yes, this means you should only be submitting a single number as the answer. Not a list of numbers. No letters or anything. Â Everything else you will be doing on your own @Joshyi hope this helped you out a little. I write programs and stuff. Â If you need to contact me, here is my discord tag: Dustin#6688 Â I am a busy person. So responses may be delayed. Â Share this post Link to post Share on other sites More sharing options...