Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial

Curtis Elko
2,442 PointsMASH game not functioning
I started the HTML portion of the MASH game in the digital literacy track. I have opened the workspace and tried playing the game "as is" but the game does not work- the page opens- I fill in the form and press the predict future button- the forms fields go blank and the fortune is not told. I have tried recopying the teachers notes of the HTML, same problem continues.
5 Answers

Curtis Elko
2,442 PointsI think this might be deliberate, that the project will be corrected as we go until the game is fully functional. I do not have the skills at this point to determine how to make the correction. My plan was to continue to course and see what happens.

May Loh
5,213 PointsCurtis,
I found what's amiss with the files! It's the files that left behind the task of linking up the other files to it. It's HTML is not complete, that's all. Easy peasy if you're familiar with HTML and went through the videos. Phew.. I was afraid that it was a Javascript error that is beyond the beginner's level...

Curtis Elko
2,442 PointsWhatever is lacking is beyond me- since this would be my first real project in html and java, to have something amiss with the code will make learning difficult. Since I have never seen a correctly working project, the chances that I will be able to find the problem (on my own) are slim. The videos up to this point I don't believe have given me the necessary skills to make a correction. What would you suggest?

Tyler Molyneux
2,214 PointsHave you figured this out yet? I'm having the exact same issue.

May Loh
5,213 PointsYes, Tyler, I have figured it out. Remember how to add a script tag at the bottom of the page, just above the </body> tag? That's the solution.

Curtis Elko
2,442 PointsI have left the MASH question for now and gone on to the other tutorials, working on understanding how html, css and javascript work together. Then once I have a better mastery, I intend to go back and work on MASH. Once MASH is working I'll know whether I am living in a mansion or not. Probably not;)

May Loh
5,213 PointsThe answer is very simple. Just add the script tag and point the source to the script.js file. (Eg. <script src=scripts.js><script>). Place that at the base, just before the </body> tag. The whole thing will work.
May Loh
5,213 PointsMay Loh
5,213 PointsI encountered the same problem too.