Skip to content

Instantly share code, notes, and snippets.

View shamikalashawn's full-sized avatar
💭
Polishing my latest app!

Shamika La Shawn shamikalashawn

💭
Polishing my latest app!
View GitHub Profile
@shamikalashawn
shamikalashawn / Guess The Number Game
Last active February 7, 2017 20:29
Guess a number between 0 and 100. You'll get clues as to whether your guess is "higher" or "lower" than the actual answer.
from random import randint
print ('---------------------------------------------' + '\n' + ' GUESS THE NUMBER APP' + '\n' + '---------------------------------------------' + '\n')
number = randint(1, 100)
while True:
guess = input('Guess a number between 0 and 100 ("quit" to stop): ')
if not guess.isdigit():
@shamikalashawn
shamikalashawn / Battleship
Created February 1, 2017 01:55
A simple game of Battleship
from random import randint
board = []
for x in range(5):
board.append(["O"] * 5)
def print_board(board):
for row in board:
print (" ".join(row))