Created
July 28, 2015 14:33
-
-
Save Virako/b7fbe4a3446e54e91a8f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy | |
import os | |
def clear(): | |
if os.name == "posix": # Comprueba si nuestro SO es linux/unix/mac/bsd | |
os.system ("clear") | |
elif os.name == ("ce", "nt", "dos"):# Comprueba si si el SO es win2 o msdos | |
os.system ("cls") | |
def paint_board(): | |
board = numpy.zeros((4, 3)) | |
print(board) | |
inp = "Aqui aparecera lo que el usuario escriba, el turno, etc ..." | |
while 1: | |
if inp == "exit": | |
break | |
else: | |
clear() | |
paint_board() | |
print(inp) | |
inp = raw_input("Escribe algo para probar. exit para salir: ") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment