Hero image

Mr King's Code Shop

Average Rating4.00
(based on 8 reviews)

Resources and activities for python and javascript.

Resources and activities for python and javascript.
The 'Pyrate' Game
ClassimagoClassimago

The 'Pyrate' Game

(1)
The “Pyrate” Game: A python script for playing “The Pirate Game” For use with worksheets by Paul Collins. Getting Started Requires python to be installed on your computer. Simply extract the file from the compressed folder and double click to run. The script can also be run through python IDLE. Playing the Game Press enter to start when prompted. The script will generate a random coordinate each turn. Coordinates will not be repeated during the game. If required, you can choose the next coordinate by pressing 1 and enter when prompted. The script will check the coordinate you have entered to prevent duplicates, and the turn number will be updated accordingly. Pirate-themed ASCII art will be displayed randomly throughout the game. Press enter after the Game Over prompt to end the game.
Email Writing Simulator
ClassimagoClassimago

Email Writing Simulator

(3)
Available online! An interactive writing frame for emails. Ideal for functional skills English. Offline Use Simply extract the folder and transfer it to your pupils’ computers. Open the folder and double click Cmail to run the app. Inbox Sample emails are on the left of the screen. The full message can be displayed by clicking on it. New Mail Pupils can click the new mail button to open a blank message window. Reply Emails in the inbox can be replied to by clicking the reply button. Writing Emails Pupils can write their message in the text window. When they are ready to complete the task they can click the send button to go to the print page. From their they can either send the email to the printer or save it to pdf. Draft Emails If pupils click back or forward in the browser while before pressing the send button, they will be prompted to save the email as a draft. The next time they open the new message window they will be asked if they want to load their previous work. This will remain in the email draft until the browsing data is cleared, or the print button is pressed. Closing the browser before saving the draft email will cause it to be lost!
Python: strings, numbers, bools and lists
ClassimagoClassimago

Python: strings, numbers, bools and lists

(0)
Automatically checked python coding challenges for strings, numbers, booleans and lists. For use as formative or summative assessment in your lessons. To use the test script, simple run test.py in IDLE or the command line interface of your choice. The tests will fail at first. To get them to pass, complete the return statements in the files found in the python-introduction. The answers are included in a separate folder and instructions are available on a handout. for example: def say_hello(string): return Should be: def say_hello(string): return 'Hello, ' + string + '!'
The Pirate Game GUI
ClassimagoClassimago

The Pirate Game GUI

(2)
The Pirate GUI Try it online here! Take your end of term “Pirate Game” to the next level with this graphical interface. Simply click the Go! button to randomly select a grid reference. One of the players needs to select the next square? No problem! Select the square on the map and then press Go!. The squares on the map change color as they are selected and the turn order is recorded in the captains log. Files included so page can be used offline. Simply extract the folder and open index.html in a web browser.
Python Strings Interactive Tests
ClassimagoClassimago

Python Strings Interactive Tests

(1)
Automatically checked python coding challenges. To use test script simple run test.py in IDLE or the command line interface of your choice. The tests will fail at first. To get them to pass, complete the return statements in src/strings.py. The answers are included in a separate folder, with the surrounding test framework so you can see what the test look like when they pass. for example: def say_hello(string): return Should be: def say_hello(string): return 'Hello, ' + string + '!'