Instructions for Creating a Game of Snakes and Ladders
click here to view an example of this game
Here is an example:
new question("c", "The plane TOOK OFF on time but landed twenty minutes late.", "The plane LEFT on time but landed twenty minutes late.", "took up", "went up", "took off", "went off"),
Each of these elements should be written within quotation marks and separated by commas. If you use and apostrophe, it should be preceded by a backslash, for example It\'s five o\'clock.
The entire question should be on ONE line and there should be a comma at the end of each of the questions except the last.
You can add as many questions as you like. The program will select a question at random each time the students roll the die.
Save the file in text format. If this adds the extension .txt to your document, you will need to change it to .js. If you change the name to something other than questions.js, you will have to edit the following line at the top of the snakes_and_ladders.htm page:
If you would like to translate the game into a different language or change the text in the instructions and/or pop-up messages, you will need to edit the corresponding variables. To make this easier to do, I have put all the editable variables together at the top of the snakes_and_ladders.htm page. To see the source code, open the page with a text editor like WordPad or click on HTML (FrontPage) or View/Code (Dreamweaver).
If you decide to post this activity, remember that you will need to upload all the necessary files and respect the path to the images, which should be in a subfolder called images. You will also need to upload the .js file into the same folder as the snakes_and_ladders.htm page.
If you would like to have 3 options instead of 4, download this zip file with an alternative version of the snakes_and_ladders.html and questions.js files.
If you have any problems using this script, you can contact me at firstname.lastname@example.org. Please send the URL of the page that is not working properly.
If you would like to share the activities you have created with other teachers, please send me an email with the URL of your activity and I will link to them from this site.