Giter Site home page Giter Site logo

gary-loayza / hicklesclassroom Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 16 KB

A simple "Guess the number game" written in python 3, to help teach students about coding. This is the original code that was shown in the classroom presentation.

Python 100.00%

hicklesclassroom's Introduction

HicklesClassroom

To play this game you need two things

  1. Download and install Git

  2. Download and install Python 3.5.2

First, ask your parents which operating system your computer has installed. Then, follow the instructions below for your operating system.

1. Download and Install Git

a) Downloading Git for Windows:

b) Downloading Git for Mac:

c) Downloading Git for Linux:

  • Depending on which distrobution of linux you are using,

    • Debian/Ubuntu linux users can run:

      $ sudo apt-get install git-all
      
    • Fedora users can run:

      $ sudo yum install git-all
      

Once Git is installed, check your installation by typing

$ git

in the terminal/command line. You should see something like this:

$ git
    usage: git [--version] [--help] [-C <path>] [-c name=value]
               [--exec-path[=<path>]] [--html-path] [--man-path] [--info-path]
               [-p | --paginate | --no-pager] [--no-replace-objects] [--bare]
               [--git-dir=<path>] [--work-tree=<path>] [--namespace=<name>]
               <command> [<args>]These are common Git commands used in various situations:

    start a working area (see also: git help tutorial)
       clone      Clone a repository into a new directory
       init       Create an empty Git repository or reinitialize an existing one

    work on the current change (see also: git help everyday)
       add        Add file contents to the index
       mv         Move or rename a file, a directory, or a symlink
       reset      Reset current HEAD to the specified state
       rm         Remove files from the working tree and from the index

      . . .

2. Download and Install Python

Finally, install Python 3.5.2. First of all check that you don't already have Python 3 installed by entering

$ python3 --version

in a command line window. It should look something like this:

$ python3 --version
  Python 3.5.2

If you see this, you are all ready TO BEGIN! If not, follow the instructions below.

a) Downloading Python for Windows:

  • Go to https://www.python.org/downloads/release/python-352/ and find "Windows x86-64 executable installer" and click the link. This should work for most Windows systems. Ask your parents or teacher if you are not sure.

  • Open the .exe file when the download is complete and follow the instructions to complete the installation.

b) Downloading Python 3.5.2 for Mac:

  • Go to https://www.python.org/downloads/release/python-352/ and find "Mac OS X 64-bit/32-bit installer" and click the link. This should work for most Mac systems. Ask your parents or teacher if you are not sure.

  • Open the .pkg file when the download is complete and follow the instructions to complete the installation.

c) Linux users should have Python 3 already installed.

Ask your parents or teacher for help if you need it.

TO BEGIN!

Once you have these two things installed, you can install this game by typing

$ git clone https://github.com/gary-loayza/HicklesClassroom

Then type

$ cd HicklesClassroom/

in your terminal to go into the folder. To see what's inside, type:

> dir

for windows, or

$ ls

for linux or mac. You will see something like this:

  $ ls
     final.py  guessTheNumber.py  README.md  second.py  start.py

You can have fun making changes to guessTheNumber.py so that it looks like Second.py or even Final.py and you can play your version with

$ python3 guessTheNumber.py

or, to play any version of the game you can type:

$ python3 <file>.py

If you ever want to start over, simply type:

$ git reset --hard HEAD

and all your changes will go back to how they were when you first installed the game.

ENJOY CODING!

       _________________________________________ 
      / This life is a test. It is only a test. \
      | Had this been an actual life, you would |
      | have received further instructions as   |
      \ to what to do and where to go.          /
       ----------------------------------------- 
       /
      /
     /     
         ..---..                                                                   
       .'  _    `.                                                                 
   __..'  (o)    :                                                                 
  `..__          ;                                                                 
       `.       /                                                                  
         ;      `..---...___                                                       
       .'                   `~-. .-')                                              
      .                         ' _.'                                              
     :                           :                                                 
     \                           '                                                 
      +                         J                                                  
       `._                   _.'                                                   
          `~--....___...---~'

hicklesclassroom's People

Contributors

gary-loayza avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.