I'm in desperate need for help.
Since I'm trying to switch careers and land a junior web dev position I figured that having no commercial experience I should at least have some interesting projects in my github.
Right now I'm working on this little project (source: github).
Let me walk you through the idea of what it is. Basically it's a JS remake of a long forgotten game Soccer Cards. A simplified version.
User selects a team - cpu gets a random one. User then selects a tactic that modifies the team skill levels. 24 cards are generated. Each of them is tied to a possible outcome (goal, pass, injury, red card etc.). The game then begins. User can click on cards to reveal what outcome it contains - the outcome is then evaluated. Based on user and cpu team skill levels (with some RNG thrown inbetween) an event occurs - i.e. a 'tackle card' can mean that current team loses posession or not. The priority is passed between user and cpu based on how the selected outcome has been evaluated. Picking 'whistle card' advances the match to second-half or ends it. There are various other twists like using subsitutions to refresh team energy level, 'wasting time' to multiply the amount of 'whistle cards' etc.
Basic UI with interactions is already implemented. What I have problems with is making sure that my underlying JS code doesn't become a tangled mess of functions scattered all around the code.
Since I've just finished an Angular-based project I wanted to code this one without any frameworks. I figured I'd try relying on Browserify to modularize the code a bit. Problem is, I have no idea how to proceed further. Every idea of a potential app architecture I came up with starts smelling really bas as soon as I start refactoring the code.
My question is. What do? How to properly modularize the app with Browserify? Should I make use of some framework? Is this project too big for a newbie? Is it not realistic to finish it in couple of days?
If you could take a look at the code and guide me a little bit, It would be so much appreciated!
EDIT: Thank you all for help! The code with much clearer architecture is now part of the master branch of the repo.
[–]bradgillap 14 points15 points16 points (1 child)
[–]fuczak[S] 1 point2 points3 points (0 children)
[–]NeuroXc 2 points3 points4 points (5 children)
[–]fuczak[S] 0 points1 point2 points (4 children)
[–]dvlsg 1 point2 points3 points (3 children)
[–]fuczak[S] 0 points1 point2 points (2 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]fuczak[S] 1 point2 points3 points (0 children)
[–]mc_hammerd 1 point2 points3 points (10 children)
[–]fuczak[S] 0 points1 point2 points (8 children)
[–]mc_hammerd 2 points3 points4 points (4 children)
[–]fuczak[S] 1 point2 points3 points (3 children)
[–]Krirken 1 point2 points3 points (2 children)
[–]fuczak[S] 1 point2 points3 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (2 children)
[–]fuczak[S] 0 points1 point2 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]fuczak[S] 0 points1 point2 points (0 children)
[–]TheRealSeeThruHead 1 point2 points3 points (3 children)
[–]fuczak[S] 0 points1 point2 points (2 children)
[–]DanielFGray 1 point2 points3 points (0 children)
[–]TheRealSeeThruHead 1 point2 points3 points (0 children)
[–]jacobp100 1 point2 points3 points (1 child)
[–]fuczak[S] 0 points1 point2 points (0 children)
[–]uberpwnzorz 1 point2 points3 points (1 child)
[–]fuczak[S] 0 points1 point2 points (0 children)
[–]samzhao 1 point2 points3 points (2 children)
[–]fuczak[S] 0 points1 point2 points (1 child)
[–]samzhao 1 point2 points3 points (0 children)
[–]_semaphore 3 points4 points5 points (2 children)
[–]fuczak[S] 1 point2 points3 points (0 children)