Skip to content

Instantly share code, notes, and snippets.

@Virako
Created July 28, 2015 14:33
Show Gist options
  • Save Virako/b7fbe4a3446e54e91a8f to your computer and use it in GitHub Desktop.
Save Virako/b7fbe4a3446e54e91a8f to your computer and use it in GitHub Desktop.
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