Skip to content

Introduction

Welcome. This document will help you create a simple Python game on a Windows operating system. It will also help you upload your Python project to GitHub. The goal is to help first-term British Columbia Institute of Technology (BCIT) Computer Systems Technology (CST) students get started on their coding journey. This guide will help you become more comfortable with writing code and using developer platforms.

PythonIcon Python is a high-level programming language, which means it is easy to read and understand for humans.

GitHub is a developer platform that allows developers to create, store, manage, and share their code.

Intended Users

This guide is targeted towards first-term BCIT CST students with little experience in writing code and using developer platforms.

Prerequisites

You must have the following before proceeding:

  • PythonIcon Python v3.x.x+
  • GitHub account
  • A personal computer or laptop with a Windows operating system
  • Basic computer navigation knowledge
  • Basic command terminal knowledge
  • Google Chrome, Edge, or Firefox web browsers with the latest updates

Procedures Overview

The main sections of this document should be read in the order below:

  1. 📁 Setting Up Your Project
  2. Writing Your First Game
  3. Uploading to GitHub

You may navigate through this document using the table of contents on the left side of this document. It may also appear as a hamburger menu in the top left.

You may also navigate by clicking the next and previous section arrows at the bottom (footer) of this document.

Typographical Conventions

This document uses the following style for presenting information:

  • When clicking is mentioned, it means left-clicking on your mouse.

  • Typing in commands in regards to the terminal will look like the following:

    Type these words
    

    a. You must press the "enter" or "return" key on your keyboard after typing the command to activate the command.

  • Python code snippets will look like the following:

    print("Hello World!")
    

    a. You must write Python code in the notepad application.

    b. You must press the "enter" or "return" key after typing in the code found in the code snippet. This creates a new line and prepares you for the next line of code. For example, if you were instructed to type the previously shown code snippet three times, then it should look like the following:

    print("Hello World!")
    print("Hello World!")
    print("Hello World!")
    
  • Directory and file names will look like the following:

    a. Directory names will look like directory_name.

    b. File names will look like filename.extension with the period designating the file's extension.

  • Terminal commands and Python keywords mentioned outside of code blocks will look like the following:

    a. Python keywords like "print()" will look like print(). Variable names like "user_input" will look like user_input.

    b. Terminal commands like "git init" will look like git init.

Notes and Warning Messages

This document uses the following message block styles for presenting information:

Note

Explains additional details.

Warning

Explains steps that must be taken before proceeding. Follow the warnings to prevent errors from occuring.

Success

Explains what a successful task will look like. No issue to resolve and reader may continue with the document.

Failure

Explains what actions or errors may crash the program. The issue must be resolved before continuing with the document.

Next Steps

Once you have read all the information on this page, please proceed to Setting Up Your Project.