It looks like you're using an Ad Blocker.

Please white-list or disable AboveTopSecret.com in your ad-blocking tool.

Thank you.

 

Some features of ATS will be disabled while you continue to use an ad-blocker.

 

I need the help of a programmer

page: 1
3

log in

join
share:

posted on Mar, 6 2016 @ 06:57 PM
link   
Hello, so I am trying to make a basic 2D Rubik Cube 3x3 in Java but I am having a problem with the squares colors, I can make them change the position, but, the problem comes when I start mixing the positions causing the colors to change not accordingly and I dont know how to fix it. Alone the movements behave as I thought but once they mix together is all chaos.

Since I cant put the code in here, those that want to help me out just message me or comment in here and I will message you back.

Thanks in advance!




posted on Mar, 6 2016 @ 07:09 PM
link   
a reply to: nito92

i find there's very good help at www stackoverflow com
insert missing dots.
They let you post your code and plenty will try to help.
edit on 6-3-2016 by VoidHawk because: (no reason given)



posted on Mar, 6 2016 @ 07:11 PM
link   
a reply to: VoidHawk

Thanks, tried that, no help yet.



posted on Mar, 6 2016 @ 07:11 PM
link   

originally posted by: nito92
a reply to: VoidHawk

Thanks, tried that, no help yet.

Is your code posted there? Got a link?



posted on Mar, 6 2016 @ 07:13 PM
link   
Question are you using fifo arrays for the lines and columns and sides?

I could see the minimum amount of arrays being 36 different array sets, 6 for each side. allowing for error correction. to prevent any invalid color patterns.

then it would be a roll array to array situation.

But then Java and Html are my weaker almost nonexistent languages.

CoBaZ



posted on Mar, 6 2016 @ 07:13 PM
link   
Try using www.jsfiddle.com... and paste your code there then paste the link in this thread...



posted on Mar, 6 2016 @ 07:17 PM
link   
a reply to: VoidHawk

Yes, I created the account yesterday and just made the post, I just code for fun.

Link

I just saw that someone posted a possible solution so I will try that, please share your thoughts about it in here if you like or there. If you want the entire code (less than 200 lines) I can P.M. you.



posted on Mar, 6 2016 @ 07:19 PM
link   
a reply to: CoBaZ

Just posted in your thread and was gonna say to you there's a guy who could use some help from your array Knowledge, you beat me to it.



posted on Mar, 6 2016 @ 07:21 PM
link   
a reply to: CoBaZ

No, just a LinkedList that countains an array of JButton then I swamp them with the Collections class. If you want click the link below or if you want the full code tell me and I will gladly send it to you. Thanks friend



posted on Mar, 6 2016 @ 07:23 PM
link   
a reply to: nito92

looks like its been answered on stackoverflow?



posted on Mar, 6 2016 @ 07:27 PM
link   
a reply to: VoidHawk

Yes I am gonna try that and let you guys know. No problem, I dont know much really but if I can help that would be great



posted on Mar, 6 2016 @ 07:27 PM
link   
a reply to: nito92

www.coolmath-games.com...

why reinvent the wheel?



posted on Mar, 6 2016 @ 07:28 PM
link   

originally posted by: pryingopen3rdeye
a reply to: nito92

www.coolmath-games.com...

why reinvent the wheel?


Its the best way to learn!



posted on Mar, 6 2016 @ 07:30 PM
link   
a reply to: VoidHawk

fair enough,

maybe give it a new twist then, like neon colors and disco lights, idk.



posted on Mar, 6 2016 @ 07:32 PM
link   
a reply to: UberL33t

Cant there, here is the pastebin


Link
edit on 6-3-2016 by nito92 because: (no reason given)



posted on Mar, 6 2016 @ 07:35 PM
link   
Will dig into it later, Best of luck on the attempts, I Just remembered the best advise I ever got when I was just starting to learn to code...

Write your program, debug it, love it like it was a puppy... Then save a copy of the finished code off system and Then Throw it away and start over trying to do the same thing from scratch. Repeat 4 times.

The Reason for that is the first 4 builds of your program you will discover errors in organization and how you did things by the fifth time you have all those bugs accounted for in the Build process.

CoBaZ



posted on Mar, 6 2016 @ 08:42 PM
link   
I fixed it guys, the answer given in stackoverflow did it, thank you very much



posted on Mar, 6 2016 @ 08:44 PM
link   
a reply to: CoBaZ

Thank you for the advice CoBaZ will keep that in mind and remake this a few times from scratch. If you still want the full code just P.M. and I will give it to you. Its annoying how sometimes if not most times you have the answer right there! thinking out of the box and / or step by step really is key...



posted on Apr, 7 2016 @ 05:53 AM
link   
 


off-topic post removed to prevent thread-drift


 



posted on Apr, 7 2016 @ 09:33 AM
link   
a reply to: CoBaZ

It also really helps cement the concept that there is rarely a "right" way to code something. There is optimization of course, but in re-writing code like this, one can stumble across some very clever solutions and tools. Sometimes purely by mistake!

I would also personally suggest sites like codeacademy, and even phone apps, that help teach code in an interactive fashion. Even for experienced programmers, going back to the basics can frequently make something new "click."




top topics



 
3

log in

join