zombie_ninja_X Posted July 1, 2017 Share Posted July 1, 2017 8 hours ago, WallaceErick2 said: i dont have finished yet. Yeah I noticed after it i posted it and called me an idiot haha Link to comment Share on other sites More sharing options...
WallaceErick_ Posted July 2, 2017 Share Posted July 2, 2017 On 01/07/2017 at 0:27 AM, zombie_ninja_X said: Yeah I noticed after it i posted it and called me an idiot haha hahahahahahhaha... the message was to a friend, not you... sorry bro! Link to comment Share on other sites More sharing options...
DuDuXu Posted July 2, 2017 Share Posted July 2, 2017 Found the 1000 bug too. Swapping rules order could give me answers. But I have a potential fix at https://github.com/xuyiqi/EnergyBalance/tree/FixPermatureExit. Cloned from bwoodhouse729. 1 Link to comment Share on other sites More sharing options...
zombie_ninja_X Posted July 3, 2017 Share Posted July 3, 2017 5 hours ago, WallaceErick2 said: hahahahahahhaha... the message was to a friend, not you... sorry bro! No problem haha I do hope you get this working. I've been having a hard time to even the the code to work for myself. Link to comment Share on other sites More sharing options...
DuDuXu Posted July 3, 2017 Share Posted July 3, 2017 Pushed another commit to https://github.com/xuyiqi/EnergyBalance/tree/FixPermatureExit Now the code runs at least 50 times faster. The diff is the elimination of unnecessary memcpys (arraycopy). In some cases the original run time is 2 min 11 s with an invalid output. My first fix reduced it to 11.x second. My second fix further reduced it to 0.2s. Just grab the latest code. time java Energy_Balance Position 0: -17 Position 1: -18 Position 2: -12 Position 3: -4 Position 4: -3 Position 5: 0 Position 6: 6 Position 7: -23 Position 8: 27 Position 9: 15 Position 10: -9 Position 11: 25 Position 12: -12 Position 13: 4 Position 14: -34 Position 15: 10 Position 16: 26 Position 17: -14 Position 18: -24 Position 19: -2 Position 20: -12 Position 21: 0 Position 22: 7 Position 23: 6 Position 24: 1 Position 25: -12 Position 26: 15 real 0m0.206s user 0m0.103s sys 0m0.021s 2 Link to comment Share on other sites More sharing options...
WallaceErick_ Posted July 4, 2017 Share Posted July 4, 2017 19 hours ago, DuDuXu said: Pushed another commit to https://github.com/xuyiqi/EnergyBalance/tree/FixPermatureExit Now the code runs at least 50 times faster. The diff is the elimination of unnecessary memcpys (arraycopy). In some cases the original run time is 2 min 11 s with an invalid output. My first fix reduced it to 11.x second. My second fix further reduced it to 0.2s. Just grab the latest code. Nice work! Link to comment Share on other sites More sharing options...
Rafi_004 Posted July 4, 2017 Share Posted July 4, 2017 (edited) @bwoodhouse729 Before all, thanks for your work! Could you explain how to use it for dumbs like me? I never saw something similar before. Thanks again =) EDIT: @WallaceErick2 @DuDuXu @mcgb83 Could some of you please help me? Edited July 5, 2017 by Rafi_004 Link to comment Share on other sites More sharing options...
zombie_ninja_X Posted July 7, 2017 Share Posted July 7, 2017 This game is driving me nuts Link to comment Share on other sites More sharing options...
KillLaGil Posted July 10, 2017 Share Posted July 10, 2017 (edited) For anyone who doesnt really familiar with java stuff like me , here some way to run them, hope its help Tools required Latest Java Dev Kit im using jdk-8u131-windows-x64.exe one Notepad ++ or any text editor you use Energy_Balance.java & CombinationGenerator.java from DuDuXu or bwoodhouse729 Step Instal Java SDK and Notepad++ Place Energy_Balance.java & CombinationGenerator.java in same folder, i put mine in C:/EB/ With Notepad++ modify Energy_Balance.java, yo can read some explanation in line 200 ,244, 252 , after done editing ,save the file Go to folder which you have put Energy_Balance.java & CombinationGenerator.java Hold SHIFT and right click, choose "Open Command Window Here" input this to CMD javac Energy_Balance.java Press ENTER , if you get error check your Energy_Balance.java again maybe you miss bracket or comma while editing, if no error, input : java Energy_Balance Press ENTER, now brute force will start OR you get "No Solution Found" message, if you get the latter you may check Energy_Balance.java again or restart the level to get new value Trouble shooting : 'javac' is not recognized as an internal or external command, operable program or batch file. 'java' is not recognized as an internal or external command, operable program or batch file. if you get both error while inputing comman in step 6 you need to input whole java.exe or javac.exe adress instead only java or javac example "C:\Program Files\Java\jdk1.8.0_131\bin\javac.exe" Energy_Balance.java "C:\Program Files\Java\jdk1.8.0_131\bin\java.exe" Energy_Balance Also found this solver from steam, its C++ version and seems have better user interface but have no luck to compile and test it yet Edited July 17, 2017 by KillLaGil found C++ version 4 Link to comment Share on other sites More sharing options...
Rafi_004 Posted July 10, 2017 Share Posted July 10, 2017 @KillLaGil Thank you man! Great help! I will try ir soon Link to comment Share on other sites More sharing options...
Lightsp33d1987 Posted July 12, 2017 Share Posted July 12, 2017 Latest Java Dev Kit won't install for me anyone know why? Link to comment Share on other sites More sharing options...
Christopher Posted July 12, 2017 Share Posted July 12, 2017 (edited) EDIT I'VE DONE IT! Alright, I'll bite. I've made it this far fairly, but this puzzle is killing me. Can someone help run the solution for me? I can't for the life of me figure this one out... Edited July 12, 2017 by Christopher Link to comment Share on other sites More sharing options...
Lightsp33d1987 Posted July 13, 2017 Share Posted July 13, 2017 Finally got Java kit to install but having no luck being able to actually run it now using CMD Link to comment Share on other sites More sharing options...
zombie_ninja_X Posted August 4, 2017 Share Posted August 4, 2017 So did everyone stop working on this? Link to comment Share on other sites More sharing options...
al7mrane Posted August 15, 2017 Share Posted August 15, 2017 Hi all, I'm not familiar with Java or this coding stuff. please can anyone do it for me ?? if anyone want to help me, I will appreciate it. add me ( al7mrane ) and I will give you my numbers. Link to comment Share on other sites More sharing options...
jsantosrocha Posted August 15, 2017 Share Posted August 15, 2017 9 hours ago, al7mrane said: Hi all, I'm not familiar with Java or this coding stuff. please can anyone do it for me ?? if anyone want to help me, I will appreciate it. add me ( al7mrane ) and I will give you my numbers. Hi, To pass all phases takes some time. You can easily do it by yourself, just follow the raisins below I made an adjustment in the bwoodhouse code. Now it can be run ONLINE without the need to install java / eclipse or others. Access the website http://www.browxy.com/ copy and paste the code below modifying the values of the: Code adapted to run online is in https://github.com/jsantosrocha/energy_balance/blob/master/Energy_Balance.java Values that should be modified: original_values in line 14 addends in line 19 sums in line 26 For this example I used the image below, make the adaptations as the game gives you new challenges: 3 Link to comment Share on other sites More sharing options...
EternalChaos72 Posted August 15, 2017 Share Posted August 15, 2017 Holy shit, this is definitely not a game for me as a suffer from Dyscalculia and i hate Maths in general. This game can burn in hell. 1 Link to comment Share on other sites More sharing options...
kingdominator1 Posted August 16, 2017 Share Posted August 16, 2017 The Energy Balance Solver is a great asset, it helped me with some difficult levels especially Hardcore levels. I would recommend using the solver if you're having trouble, as it'll help you get through the levels. That being said, Square levels are much easier so you should be able to solve them on your own if you solve from the top right first, go down then solve from bottom right and go left, that's the tip that I got from LightSp33d1987 and it helped me get through the levels easily. 2 Link to comment Share on other sites More sharing options...
al7mrane Posted August 17, 2017 Share Posted August 17, 2017 On 8/15/2017 at 5:20 PM, jsantosrocha said: Hi, To pass all phases takes some time. You can easily do it by yourself, just follow the raisins below I made an adjustment in the bwoodhouse code. Now it can be run ONLINE without the need to install java / eclipse or others. Access the website http://www.browxy.com/ copy and paste the code below modifying the values of the: Code adapted to run online is in https://github.com/jsantosrocha/energy_balance/blob/master/Energy_Balance.java Values that should be modified: original_values in line 14 addends in line 19 sums in line 26 For this example I used the image below, make the adaptations as the game gives you new challenges: thank you for your response. I followed what you said step by step, but it is not working. see what I did below http://imgur.com/a/qzwMz Link to comment Share on other sites More sharing options...
jsantosrocha Posted August 17, 2017 Share Posted August 17, 2017 1 hour ago, al7mrane said: thank you for your response. I followed what you said step by step, but it is not working. see what I did below http://imgur.com/a/qzwMz In the variable "addends" there can be no negative values. See in my image, in the variable "addends" you should put the index of your sum. In my image it is represented by the numbers in yellow that I put myself. The index should always start from zero, top to bottom, left to right. If you make a mistake again send me the image that the game has made available for me to analyze. Link to comment Share on other sites More sharing options...
jsantosrocha Posted August 17, 2017 Share Posted August 17, 2017 See the image that the game made available. I put the indices in the image, the numbers are yellow See how my variables got After running for a few seconds the result is in the black area Here is the solution 3 Link to comment Share on other sites More sharing options...
al7mrane Posted August 19, 2017 Share Posted August 19, 2017 (edited) thnx jsantosrocha for helping me. I stuck sometimes using these codes, but it worked well. thanks a lot Edited August 19, 2017 by al7mrane 1 Link to comment Share on other sites More sharing options...
wolverine123 Posted August 21, 2017 Share Posted August 21, 2017 Ive managed to get to stage 8 on my own but im completely stumped. Thanks alot for this @jsantosrocha Link to comment Share on other sites More sharing options...
WerneckDecanter Posted August 22, 2017 Share Posted August 22, 2017 Jsantos, how I use this code on Hard and Square leves? i did the first 12 with no problem at all using your method but I wasn't able to make any on Hard. really thank u and congrats for your easy method. Link to comment Share on other sites More sharing options...
viaene96 Posted August 22, 2017 Share Posted August 22, 2017 (edited) Great job works perfect Thank you very much. Edited August 22, 2017 by viaene96 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now