Skip to content

Instantly share code, notes, and snippets.

View Estherns's full-sized avatar

Esther Estherns

  • Kenya
View GitHub Profile
@Estherns
Estherns / tictactoe.py
Last active February 27, 2024 02:17
A terminal based tic tac toe game in Python
#Let's start by initializing our game board
board = ["-","-","-",
"-","-","-",
"-","-","-"]
#Know if game is still going on by setting it to True
game_on = True
# Initialize our current player to be X
current_player = "X"
@Estherns
Estherns / weather.py
Last active January 17, 2020 15:04
A program to get weather condition of a any city in the world
#import tkinter library
import tkinter as tk
import requests
import tkinter.messagebox
#set the height for the canvas
HEIGHT = 500
WIDTH = 600
#A function to display the weather
@Estherns
Estherns / gist:3b44d996c1fb5c6d76a30866ceb22bc8
Last active November 3, 2023 09:53
Python text-based tic tac toe game
import tkinter as tk
import tkinter.messagebox
root = tk.Tk()
#tk.title('Tic Tac Toe Game')
#game board to hold data
game_board = ["-", "-", "-",
"-", "-", "-",
@Estherns
Estherns / index.html
Created April 12, 2019 12:56
Simple quiz program
<!DOCTYPE html>
<html>
<head>
<title>Going To RC?</title>
<link href ="style.css" rel ="stylesheet">
</head>
<body>
<h1> Welcome to RC retreat self-evaluation quiz</h1>
<form id = "quiz" name = "quiz">