Skip to content

Instantly share code, notes, and snippets.

View wynand1004's full-sized avatar

Christian Thompson wynand1004

View GitHub Profile
@wynand1004
wynand1004 / 2048_alpha.py
Created December 11, 2018 22:55
An simple Python implementation of the game 2048 written in Python 3.
# 2048 in Python 3 for Beginners (Alpha Version)
# By @TokyoEdTech
import turtle
import random
# Set up the screen
wn = turtle.Screen()
wn.title("2048 by @TokyoEdTech")
wn.bgcolor("black")
#Asteroids by @TokyoEdTech / Written in Python 3.5
#Part 0: Finished Demo
import os
import random
import time
import math
#Import the Turtle module
import turtle
@wynand1004
wynand1004 / simple_text_adventure.py
Created October 10, 2019 11:22
Simple Text Adventure Game in Python
# http://christianthompson.com
# Twitter: @tokyoedtech
# Welcome to my "office hours" for October 10, 2019.
# If you have any Python questions - ask in chat
# Please provide any code via pastebin.com link
# OS: Ubuntu Linux 19.04
# Programming Editor: Geany
@wynand1004
wynand1004 / patterns_to_loops.py
Last active October 21, 2020 05:38
Patterns to Loops Starter Code
# Finding Patterns
import os
os.system("clear")
# 1
print(1)
print(2)
print(3)
print(4)
print(5)
@wynand1004
wynand1004 / JavaLoopChallenge1.java
Created March 25, 2021 00:55
Java Loop Challenge 1 Starter Code
// Java Loop Challenge 1
// By @TokyoEdtech
class JavaLoopChallenge1
{
public static void main(String[] args)
{
String text = "";
String letter = "";
System.out.println("\n\n1.");
@wynand1004
wynand1004 / JavaLoopChallenge2.java
Created March 25, 2021 00:56
Java Loop Challenge 2 Starter Code
// Java Loop Challenge 2
// By @TokyoEdtech
class JavaLoopChallenge2
{
public static void main(String[] args)
{
System.out.println("\n\n1.");
// Create a loop to print the numbers 1 to 10 inclusive