2048 organize functions | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 4

2048 organize functions

Hello I made a special 2048 that works 100% I'd really like to make more functions though but I can't figure out how I need to change the operator in order to create the function so If someone could help me out here if it's possible it will be nice code: Ps: I made a function just for the random that's it https://code.sololearn.com/ct6w4h9j04Gi/?ref=app

15th Aug 2019, 7:04 PM
Cout
Cout - avatar
3 Answers
+ 1
I orginzed 80% of it I am almost done most is done though https://code.sololearn.com/c1n0dRgN9wwZ/?ref=app
16th Aug 2019, 1:08 PM
Cout
Cout - avatar
+ 3
Hello. I would like to help you but cant figure out where you need help. I also created a 2048 (https://play.google.com/store/apps/details?id=xiv.rainbow.dragon.game2048 ) game with extra functions so i might be able to help you if you explain your problem in more detail.
16th Aug 2019, 5:09 AM
Dragonxiv
Dragonxiv - avatar
0
Dragonxiv it's not really a problem... It's just orginze the code more for example I wrote a code a couple of times in main but I need to change the operator of the code in different situations btw your link doesn't work
16th Aug 2019, 5:11 AM
Cout
Cout - avatar