diff --git a/.DS_Store b/.DS_Store deleted file mode 100644 index eeb51de..0000000 Binary files a/.DS_Store and /dev/null differ diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e43b0f9 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.DS_Store diff --git a/module-1/.DS_Store b/module-1/.DS_Store deleted file mode 100644 index dc90db0..0000000 Binary files a/module-1/.DS_Store and /dev/null differ diff --git a/module-1/lab-advanced-mysql/.DS_Store b/module-1/lab-advanced-mysql/.DS_Store deleted file mode 100644 index dc0ae86..0000000 Binary files a/module-1/lab-advanced-mysql/.DS_Store and /dev/null differ diff --git a/module-1/lab-advanced-regex/.DS_Store b/module-1/lab-advanced-regex/.DS_Store deleted file mode 100644 index dc0ae86..0000000 Binary files a/module-1/lab-advanced-regex/.DS_Store and /dev/null differ diff --git a/module-1/lab-advanced-web-scraping/.DS_Store b/module-1/lab-advanced-web-scraping/.DS_Store deleted file mode 100644 index 67cf565..0000000 Binary files a/module-1/lab-advanced-web-scraping/.DS_Store and /dev/null differ diff --git a/module-1/lab-api-scavenger-game/.DS_Store b/module-1/lab-api-scavenger-game/.DS_Store deleted file mode 100644 index bbc5389..0000000 Binary files a/module-1/lab-api-scavenger-game/.DS_Store and /dev/null differ diff --git a/module-1/lab-bag-of-words/.DS_Store b/module-1/lab-bag-of-words/.DS_Store deleted file mode 100644 index 395bf35..0000000 Binary files a/module-1/lab-bag-of-words/.DS_Store and /dev/null differ diff --git a/module-1/lab-bash/.DS_Store b/module-1/lab-bash/.DS_Store deleted file mode 100644 index e95cef0..0000000 Binary files a/module-1/lab-bash/.DS_Store and /dev/null differ diff --git a/module-1/lab-code-simplicity-efficiency/.DS_Store b/module-1/lab-code-simplicity-efficiency/.DS_Store deleted file mode 100644 index 215eb8a..0000000 Binary files a/module-1/lab-code-simplicity-efficiency/.DS_Store and /dev/null differ diff --git a/module-1/lab-data_cleaning/.DS_Store b/module-1/lab-data_cleaning/.DS_Store deleted file mode 100644 index 150a76f..0000000 Binary files a/module-1/lab-data_cleaning/.DS_Store and /dev/null differ diff --git a/module-1/lab-error-handling/.DS_Store b/module-1/lab-error-handling/.DS_Store deleted file mode 100644 index dc0ae86..0000000 Binary files a/module-1/lab-error-handling/.DS_Store and /dev/null differ diff --git a/module-1/lab-functional-programming/.DS_Store b/module-1/lab-functional-programming/.DS_Store deleted file mode 100644 index 62b1ad6..0000000 Binary files a/module-1/lab-functional-programming/.DS_Store and /dev/null differ diff --git a/module-1/lab-import-export/.DS_Store b/module-1/lab-import-export/.DS_Store deleted file mode 100644 index dc0ae86..0000000 Binary files a/module-1/lab-import-export/.DS_Store and /dev/null differ diff --git a/module-1/lab-intro-pandas/.DS_Store b/module-1/lab-intro-pandas/.DS_Store deleted file mode 100644 index dc0ae86..0000000 Binary files a/module-1/lab-intro-pandas/.DS_Store and /dev/null differ diff --git a/module-1/lab-job-board-scraping/.DS_Store b/module-1/lab-job-board-scraping/.DS_Store deleted file mode 100644 index dc0ae86..0000000 Binary files a/module-1/lab-job-board-scraping/.DS_Store and /dev/null differ diff --git a/module-1/lab-lambda-functions/.DS_Store b/module-1/lab-lambda-functions/.DS_Store deleted file mode 100644 index dc0ae86..0000000 Binary files a/module-1/lab-lambda-functions/.DS_Store and /dev/null differ diff --git a/module-1/lab-list-comprehensions/.DS_Store b/module-1/lab-list-comprehensions/.DS_Store deleted file mode 100644 index 12ea5e1..0000000 Binary files a/module-1/lab-list-comprehensions/.DS_Store and /dev/null differ diff --git a/module-1/lab-map-reduce-filter/.DS_Store b/module-1/lab-map-reduce-filter/.DS_Store deleted file mode 100644 index a3a96e1..0000000 Binary files a/module-1/lab-map-reduce-filter/.DS_Store and /dev/null differ diff --git a/module-1/lab-mysql-select/.DS_Store b/module-1/lab-mysql-select/.DS_Store deleted file mode 100644 index bd89667..0000000 Binary files a/module-1/lab-mysql-select/.DS_Store and /dev/null differ diff --git a/module-1/lab-mysql/.DS_Store b/module-1/lab-mysql/.DS_Store deleted file mode 100644 index dc0ae86..0000000 Binary files a/module-1/lab-mysql/.DS_Store and /dev/null differ diff --git a/module-1/lab-numpy/.DS_Store b/module-1/lab-numpy/.DS_Store deleted file mode 100644 index dc0ae86..0000000 Binary files a/module-1/lab-numpy/.DS_Store and /dev/null differ diff --git a/module-1/lab-object-oriented-programming/.DS_Store b/module-1/lab-object-oriented-programming/.DS_Store deleted file mode 100644 index dc0ae86..0000000 Binary files a/module-1/lab-object-oriented-programming/.DS_Store and /dev/null differ diff --git a/module-1/lab-parallelization/.DS_Store b/module-1/lab-parallelization/.DS_Store deleted file mode 100644 index dc0ae86..0000000 Binary files a/module-1/lab-parallelization/.DS_Store and /dev/null differ diff --git a/module-1/lab-parsing-api/.DS_Store b/module-1/lab-parsing-api/.DS_Store deleted file mode 100644 index dc0ae86..0000000 Binary files a/module-1/lab-parsing-api/.DS_Store and /dev/null differ diff --git a/module-1/lab-resolving-git-conflicts/.DS_Store b/module-1/lab-resolving-git-conflicts/.DS_Store deleted file mode 100644 index 045803a..0000000 Binary files a/module-1/lab-resolving-git-conflicts/.DS_Store and /dev/null differ diff --git a/module-1/lab-resolving-git-conflicts/your-code/about-me.md b/module-1/lab-resolving-git-conflicts/your-code/about-me.md index 30a999d..584f19f 100755 --- a/module-1/lab-resolving-git-conflicts/your-code/about-me.md +++ b/module-1/lab-resolving-git-conflicts/your-code/about-me.md @@ -5,3 +5,4 @@ Ut porttitor iaculis tellus bibendum euismod. Morbi porta, ante nec tempus porta Suspendisse ut malesuada ex. Nulla ultricies nisl et nisi rhoncus sollicitudin. Vestibulum maximus iaculis ligula, nec commodo nunc ullamcorper nec. Duis quis condimentum sapien. Cras vestibulum interdum felis eu auctor. Quisque semper, magna at dapibus faucibus, felis risus semper ligula, id aliquam lectus ligula vel nisi. In hac habitasse platea dictumst. Donec arcu sapien, suscipit ac dictum et, imperdiet id tortor. Maecenas ornare sodales interdum. Mauris dictum felis eu eros vestibulum cursus. Phasellus accumsan, turpis ut malesuada sollicitudin, augue leo venenatis ante, vel convallis tellus diam sit amet lacus. Aenean eu mauris eros. Praesent ante lacus, gravida sit amet tellus nec, laoreet ultrices lacus. Integer commodo semper vestibulum. Fusce felis massa, consectetur facilisis rutrum nec, pulvinar et nisi. Morbi fermentum ultricies tortor, vehicula ultrices eros elementum a. Duis ornare aliquam facilisis. Proin aliquam tincidunt odio vitae dignissim. Sed malesuada lacinia massa, nec blandit urna auctor elementum. Duis auctor non tortor in consequat. Mauris id vestibulum risus. In eget erat sed lacus efficitur viverra sed eu est. Aliquam interdum consequat molestie. Aliquam metus nisi, blandit non semper ut, blandit vel leo. Cras dictum turpis erat, sed iaculis ligula facilisis dapibus. Aliquam posuere dignissim fermentum. Praesent at neque sit amet lectus ornare iaculis. Curabitur id urna quis lorem varius ultrices eu sit amet sapien. Curabitur maximus volutpat suscipit. Proin imperdiet elementum lacus a eleifend. Sed tempor lacus posuere diam vehicula iaculis. +Agregando cualquier cosa diff --git a/module-1/lab-rss/.DS_Store b/module-1/lab-rss/.DS_Store deleted file mode 100644 index dc0ae86..0000000 Binary files a/module-1/lab-rss/.DS_Store and /dev/null differ diff --git a/module-1/lab-string-operations/.DS_Store b/module-1/lab-string-operations/.DS_Store deleted file mode 100644 index dc0ae86..0000000 Binary files a/module-1/lab-string-operations/.DS_Store and /dev/null differ diff --git a/module-1/lab-tuple-set-dict/.DS_Store b/module-1/lab-tuple-set-dict/.DS_Store deleted file mode 100644 index 498ec4b..0000000 Binary files a/module-1/lab-tuple-set-dict/.DS_Store and /dev/null differ diff --git a/module-1/lab-web-scraping/.DS_Store b/module-1/lab-web-scraping/.DS_Store deleted file mode 100644 index dc0ae86..0000000 Binary files a/module-1/lab-web-scraping/.DS_Store and /dev/null differ diff --git a/module-1/pandas-project/.DS_Store b/module-1/pandas-project/.DS_Store deleted file mode 100644 index 75fc8fe..0000000 Binary files a/module-1/pandas-project/.DS_Store and /dev/null differ diff --git a/module-1/python-project/your-code/.gitkeep b/module-1/python-project/your-code/.gitkeep deleted file mode 100755 index e69de29..0000000 diff --git a/module-1/python-project/your-code/Readme.md b/module-1/python-project/your-code/Readme.md new file mode 100644 index 0000000..fbfdf54 --- /dev/null +++ b/module-1/python-project/your-code/Readme.md @@ -0,0 +1,23 @@ +{\rtf1\ansi\ansicpg1252\cocoartf1561\cocoasubrtf610 +{\fonttbl\f0\fswiss\fcharset0 Helvetica;} +{\colortbl;\red255\green255\blue255;} +{\*\expandedcolortbl;;} +\margl1440\margr1440\vieww10800\viewh8400\viewkind0 +\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\pardirnatural\partightenfactor0 + +\f0\fs28 \cf0 \ +### Juego Snake\ +\ +En \'e9ste sencillo juego deveras direccionar la snake con las flechas de direcci\'f3n y control de tu teclado. \ +\ +**El juego iniciar\'e1 con el snake al centro de la pantalla y tu eliges hacia donde debe moverse, solo ten cuidado porque en caso de tocar el l\'edmite del \'e1rea o tocar el cuerpo del snake perder\'e1s.**\ + \ +Pero no te preocupes, podr\'e1s intentarlo cuantas veces quieras y as\'ed poder superar tu propio r\'e9cord\ +\ +\ +\ +El juego inicia abriendo una terminal y ejecutar el siguiente c\'f3digo :\ +\ + - Python3 snake1.py\ +\ +**Nota: Dentro de terminal debes posicionarte en la carpeta donde esta el archivo Snake1.py**} \ No newline at end of file diff --git a/module-1/python-project/your-code/sample-code.ipynb b/module-1/python-project/your-code/sample-code.ipynb deleted file mode 100755 index a6f8a94..0000000 --- a/module-1/python-project/your-code/sample-code.ipynb +++ /dev/null @@ -1,248 +0,0 @@ -{ - "cells": [ - { - "cell_type": "code", - "execution_count": 1, - "metadata": {}, - "outputs": [], - "source": [ - "# define rooms and items\n", - "\n", - "couch = {\n", - " \"name\": \"couch\",\n", - " \"type\": \"furniture\",\n", - "}\n", - "\n", - "door_a = {\n", - " \"name\": \"door a\",\n", - " \"type\": \"door\",\n", - "}\n", - "\n", - "key_a = {\n", - " \"name\": \"key for door a\",\n", - " \"type\": \"key\",\n", - " \"target\": door_a,\n", - "}\n", - "\n", - "piano = {\n", - " \"name\": \"piano\",\n", - " \"type\": \"furniture\",\n", - "}\n", - "\n", - "game_room = {\n", - " \"name\": \"game room\",\n", - " \"type\": \"room\",\n", - "}\n", - "\n", - "outside = {\n", - " \"name\": \"outside\"\n", - "}\n", - "\n", - "all_rooms = [game_room, outside]\n", - "\n", - "all_doors = [door_a]\n", - "\n", - "# define which items/rooms are related\n", - "\n", - "object_relations = {\n", - " \"game room\": [couch, piano, door_a],\n", - " \"piano\": [key_a],\n", - " \"outside\": [door_a],\n", - " \"door a\": [game_room, outside]\n", - "}\n", - "\n", - "# define game state. Do not directly change this dict. \n", - "# Instead, when a new game starts, make a copy of this\n", - "# dict and use the copy to store gameplay state. This \n", - "# way you can replay the game multiple times.\n", - "\n", - "INIT_GAME_STATE = {\n", - " \"current_room\": game_room,\n", - " \"keys_collected\": [],\n", - " \"target_room\": outside\n", - "}" - ] - }, - { - "cell_type": "code", - "execution_count": 2, - "metadata": {}, - "outputs": [], - "source": [ - "def linebreak():\n", - " \"\"\"\n", - " Print a line break\n", - " \"\"\"\n", - " print(\"\\n\\n\")\n", - "\n", - "def start_game():\n", - " \"\"\"\n", - " Start the game\n", - " \"\"\"\n", - " print(\"You wake up on a couch and find yourself in a strange house with no windows which you have never been to before. You don't remember why you are here and what had happened before. You feel some unknown danger is approaching and you must get out of the house, NOW!\")\n", - " play_room(game_state[\"current_room\"])\n", - "\n", - "def play_room(room):\n", - " \"\"\"\n", - " Play a room. First check if the room being played is the target room.\n", - " If it is, the game will end with success. Otherwise, let player either \n", - " explore (list all items in this room) or examine an item found here.\n", - " \"\"\"\n", - " game_state[\"current_room\"] = room\n", - " if(game_state[\"current_room\"] == game_state[\"target_room\"]):\n", - " print(\"Congrats! You escaped the room!\")\n", - " else:\n", - " print(\"You are now in \" + room[\"name\"])\n", - " intended_action = input(\"What would you like to do? Type 'explore' or 'examine'?\").strip()\n", - " if intended_action == \"explore\":\n", - " explore_room(room)\n", - " play_room(room)\n", - " elif intended_action == \"examine\":\n", - " examine_item(input(\"What would you like to examine?\").strip())\n", - " else:\n", - " print(\"Not sure what you mean. Type 'explore' or 'examine'.\")\n", - " play_room(room)\n", - " linebreak()\n", - "\n", - "def explore_room(room):\n", - " \"\"\"\n", - " Explore a room. List all items belonging to this room.\n", - " \"\"\"\n", - " items = [i[\"name\"] for i in object_relations[room[\"name\"]]]\n", - " print(\"You explore the room. This is \" + room[\"name\"] + \". You find \" + \", \".join(items))\n", - "\n", - "def get_next_room_of_door(door, current_room):\n", - " \"\"\"\n", - " From object_relations, find the two rooms connected to the given door.\n", - " Return the room that is not the current_room.\n", - " \"\"\"\n", - " connected_rooms = object_relations[door[\"name\"]]\n", - " for room in connected_rooms:\n", - " if(not current_room == room):\n", - " return room\n", - "\n", - "def examine_item(item_name):\n", - " \"\"\"\n", - " Examine an item which can be a door or furniture.\n", - " First make sure the intended item belongs to the current room.\n", - " Then check if the item is a door. Tell player if key hasn't been \n", - " collected yet. Otherwise ask player if they want to go to the next\n", - " room. If the item is not a door, then check if it contains keys.\n", - " Collect the key if found and update the game state. At the end,\n", - " play either the current or the next room depending on the game state\n", - " to keep playing.\n", - " \"\"\"\n", - " current_room = game_state[\"current_room\"]\n", - " next_room = \"\"\n", - " output = None\n", - " \n", - " for item in object_relations[current_room[\"name\"]]:\n", - " if(item[\"name\"] == item_name):\n", - " output = \"You examine \" + item_name + \". \"\n", - " if(item[\"type\"] == \"door\"):\n", - " have_key = False\n", - " for key in game_state[\"keys_collected\"]:\n", - " if(key[\"target\"] == item):\n", - " have_key = True\n", - " if(have_key):\n", - " output += \"You unlock it with a key you have.\"\n", - " next_room = get_next_room_of_door(item, current_room)\n", - " else:\n", - " output += \"It is locked but you don't have the key.\"\n", - " else:\n", - " if(item[\"name\"] in object_relations and len(object_relations[item[\"name\"]])>0):\n", - " item_found = object_relations[item[\"name\"]].pop()\n", - " game_state[\"keys_collected\"].append(item_found)\n", - " output += \"You find \" + item_found[\"name\"] + \".\"\n", - " else:\n", - " output += \"There isn't anything interesting about it.\"\n", - " print(output)\n", - " break\n", - "\n", - " if(output is None):\n", - " print(\"The item you requested is not found in the current room.\")\n", - " \n", - " if(next_room and input(\"Do you want to go to the next room? Ener 'yes' or 'no'\").strip() == 'yes'):\n", - " play_room(next_room)\n", - " else:\n", - " play_room(current_room)" - ] - }, - { - "cell_type": "code", - "execution_count": 3, - "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "You wake up on a couch and find yourself in a strange house with no windows which you have never been to before. You don't remember why you are here and what had happened before. You feel some unknown danger is approaching and you must get out of the house, NOW!\n", - "You are now in game room\n", - "What would you like to do? Type 'explore' or 'examine'?explore\n", - "You explore the room. This is game room. You find couch, piano, door a\n", - "You are now in game room\n", - "What would you like to do? Type 'explore' or 'examine'?examine\n", - "What would you like to examine?door a\n", - "You examine door a. It is locked but you don't have the key.\n", - "You are now in game room\n", - "What would you like to do? Type 'explore' or 'examine'?examine\n", - "What would you like to examine?piano\n", - "You examine piano. You find key for door a.\n", - "You are now in game room\n", - "What would you like to do? Type 'explore' or 'examine'?examine\n", - "What would you like to examine?door a\n", - "You examine door a. You unlock it with a key you have.\n", - "Do you want to go to the next room? Ener 'yes' or 'no'yes\n", - "Congrats! You escaped the room!\n", - "\n", - "\n", - "\n", - "\n", - "\n", - "\n", - "\n", - "\n", - "\n", - "\n", - "\n", - "\n" - ] - } - ], - "source": [ - "game_state = INIT_GAME_STATE.copy()\n", - "\n", - "start_game()" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [] - } - ], - "metadata": { - "kernelspec": { - "display_name": "Python 3", - "language": "python", - "name": "python3" - }, - "language_info": { - "codemirror_mode": { - "name": "ipython", - "version": 3 - }, - "file_extension": ".py", - "mimetype": "text/x-python", - "name": "python", - "nbconvert_exporter": "python", - "pygments_lexer": "ipython3", - "version": "3.7.2" - } - }, - "nbformat": 4, - "nbformat_minor": 2 -} diff --git a/module-1/python-project/your-code/snake1.py b/module-1/python-project/your-code/snake1.py new file mode 100755 index 0000000..e1f7e29 --- /dev/null +++ b/module-1/python-project/your-code/snake1.py @@ -0,0 +1,187 @@ +#from time import * +import time # Importe tiempo para darle delay al snake +import turtle # Importe Turtle para usar sus métodos +import random # importe ramndom para crear los puntos alatoriamente + +delay = 0.14 # Indico que el programa tenda un delay de una decima de segundo +score = 0 +hight_score = 0 + +print('\nListo para jugar?, Utiliza las flechas de dirección y control de tu teclado para desplazarte') +print('Recuerda que no puedes chocar con el muro y tampoco puedes chocar con el cuerpo de la Snake') +print(' de lo contrario perderas!!!!\n') +input("Presiona Enter para empezar") + +mensaje = turtle.Turtle() +mensaje.color('white') +mensaje.penup() +mensaje.hideturtle() +mensaje.goto(0,325) +mensaje.write('Este es el juego de la Snake', align= 'center', font = ('Arial',18,'normal')) + +# Set Window +ventana = turtle.Screen() # Se crea la ventana objeto de Turtle +ventana.bgcolor('black') # Le configuro color a la ventana +ventana.title('Snake') # Le agrego título +ventana.setup(width = 700 , height = 700) # Configuro tamaño de ventana +ventana.tracer(0) # Se inicia la animación de turtle + +# Marcador +marcador = turtle.Turtle() +marcador.speed(0) +marcador.color('white') +marcador.penup() +marcador.hideturtle() +marcador.goto(0,302) +marcador.write('Score: Hight Score: ', align= 'center', font = ('Arial',20,'normal')) + + +# Head +head = turtle.Turtle() # Se crea Head objeto de turtle +head.speed(0) # La velocidad inicial del head +head.shape('circle') # Forma de cabeza snake +head.penup() # Con esta instruccion no se deja rastro al desplazarse la snake +head.goto(0,0) # Posición inicial de head +head.direction = 'stop' # Para que no se mueva la snake al empezar el juego +head.color('green') # Color de la cabeza + +# Body Snake +body = [] # Se crea lista para appendear el cuerpo que se crea en el ciclo while > if + + +# Points (cuerpo) + +puntos = turtle.Turtle() # Se crea 'Puntos' objeto de turtle +puntos.speed(0) # Para que aparezcan los puntos en pantalla +puntos.shape('circle') # Forma de los puntos (cuerpo) +puntos.penup() # Con esta instruccion no se deja rastro al desplazarse la snake +puntos.goto(-200,0) # Posicion inicial de los puntos +puntos.color('yellow') + + +# Funciones +def hacia_arriba(): # Para indicar que el 'head' debera tomar una dirección una vez llamado el método + head.direction = 'up' + +def hacia_abajo(): + head.direction = 'down' + +def hacia_la_derecha(): + head.direction = 'right' + +def hacia_la_izquierda(): + head.direction = 'left' + + +def movimiento(): # Definimos método para el movimiento del Snake + if head.direction =='up': + ejey = head.ycor() + head.sety(ejey + 20) + + if head.direction =='down': + ejey = head.ycor() + head.sety(ejey - 20) + + if head.direction =='right': + ejex = head.xcor() + head.setx(ejex + 20) + + if head.direction =='left': + ejex = head.xcor() + head.setx(ejex - 20) + +ventana.listen() # Aqui la ventana está pendiente de lo que presionemos en el teclado +ventana.onkeypress(hacia_arriba,'Up') # Mandamos llamar alguna funcion para modificar dirección del 'Head' +ventana.onkeypress(hacia_abajo,'Down') +ventana.onkeypress(hacia_la_derecha,'Right') +ventana.onkeypress(hacia_la_izquierda,'Left') + +while True: # Mientras la condición se cumpla + + ventana.update() # Se actualizará la ventana y el movimiento + + + + # Delimitando área ed juego + + if head.xcor() > 350 or head.xcor() < -350 or head.ycor() > 350 or head.ycor() < -350: + time.sleep(1) + #print('Has perdido, presiona enter para intentarlo de nuevo: ') + #input("Presiona Enter para empezar") + head.goto(0,0) + head.direction = 'stop' + + for i in body: + i.goto(2000,2000) + + body.clear() + + score = 0 + marcador.clear() + marcador.write('Score: {} Hight Score: {}'.format(score,hight_score), align= 'center', font = ('Arial',20,'normal')) + + + # Comiendo :P + + if head.distance(puntos)<20: # Si la posición del 'head' es menor que 20 el cual esta entre los rangos de X y Y, se actualizará + x = random.randint(-345,345) # la posición del punto (puntos.goto) + y = random.randint(-345,299) + puntos.goto(x,y) + + add_body = turtle.Turtle() # Si se cumple la condición anterior se creará un nuevo objeto turtle + add_body.speed(0) # Con forma,color y se posiciona en pantalla con speed(0) + add_body.shape('circle') + add_body.color('green') + add_body.penup() + body.append(add_body) # Cumplido lo anterior se appendea la lista body para la longitud del snake + + score += 1 + + + if score > hight_score: + hight_score = score + marcador.clear() + marcador.write('Score: {} Hight Score: {}'.format(score,hight_score), align= 'center', font = ('Arial',20,'normal')) + + + + # Movimiento de cuerpo + + body_total = len(body) # Se declara que el cuerpo total es igual al número de elementos de la lista 'body' + for i in range(body_total -1,0,-1): # Se crea bucle para indicar que cada elemento de 'body_total' asignará diferentes cordenadas + x = body[i -1].xcor() # en 'body con respecto al numero de elemetos de 'body' menos 1. + y = body[i -1].ycor() + body[i].goto(x,y) + + if body_total > 0: # Modificamos las cordenadas del 'head' tanto en X como en Y + x = head.xcor() + y = head.ycor() + body[0].goto(x,y) # indicamos que para el primer elemento de 'body' las cordenadas serán las ultimas del 'head' + + + + movimiento() + + + for b in body : + if b.distance(head) < 20: + time.sleep(1) + head.goto(0,0) + head.direction = 'stop' + + for b in body: + b.goto(2000,2000) + body.clear() + + score = 0 + marcador.clear() + marcador.write('Score: {} Hight Score: {}'.format(score,hight_score), align= 'center', font = ('Arial',20,'normal')) + + + + + time.sleep(delay) + + +# Esperar para cierre de ventana +#sleep(30) \ No newline at end of file diff --git a/module-1/web-project/.DS_Store b/module-1/web-project/.DS_Store deleted file mode 100644 index 36d1bcc..0000000 Binary files a/module-1/web-project/.DS_Store and /dev/null differ diff --git a/module-2/.DS_Store b/module-2/.DS_Store deleted file mode 100644 index b08810b..0000000 Binary files a/module-2/.DS_Store and /dev/null differ diff --git a/module-2/lab-advance-querying-mongo/.DS_Store b/module-2/lab-advance-querying-mongo/.DS_Store deleted file mode 100644 index 9412ab5..0000000 Binary files a/module-2/lab-advance-querying-mongo/.DS_Store and /dev/null differ diff --git a/module-2/lab-bayesian-statistics/.DS_Store b/module-2/lab-bayesian-statistics/.DS_Store deleted file mode 100644 index dc0ae86..0000000 Binary files a/module-2/lab-bayesian-statistics/.DS_Store and /dev/null differ diff --git a/module-2/lab-continuous-probability-distribution/.DS_Store b/module-2/lab-continuous-probability-distribution/.DS_Store deleted file mode 100644 index dc0ae86..0000000 Binary files a/module-2/lab-continuous-probability-distribution/.DS_Store and /dev/null differ diff --git a/module-2/lab-correlation-tests-with-scipy/.DS_Store b/module-2/lab-correlation-tests-with-scipy/.DS_Store deleted file mode 100644 index dc0ae86..0000000 Binary files a/module-2/lab-correlation-tests-with-scipy/.DS_Store and /dev/null differ diff --git a/module-2/lab-df-calculation-and-transformation/.DS_Store b/module-2/lab-df-calculation-and-transformation/.DS_Store deleted file mode 100644 index dc0ae86..0000000 Binary files a/module-2/lab-df-calculation-and-transformation/.DS_Store and /dev/null differ diff --git a/module-2/lab-discrete-probability-distribution/.DS_Store b/module-2/lab-discrete-probability-distribution/.DS_Store deleted file mode 100644 index dc0ae86..0000000 Binary files a/module-2/lab-discrete-probability-distribution/.DS_Store and /dev/null differ diff --git a/module-2/lab-hypothesis-testing/.DS_Store b/module-2/lab-hypothesis-testing/.DS_Store deleted file mode 100644 index a387722..0000000 Binary files a/module-2/lab-hypothesis-testing/.DS_Store and /dev/null differ diff --git a/module-2/lab-interactive-visualization/.DS_Store b/module-2/lab-interactive-visualization/.DS_Store deleted file mode 100644 index 78ba93d..0000000 Binary files a/module-2/lab-interactive-visualization/.DS_Store and /dev/null differ diff --git a/module-2/lab-intro-recommender-systems/.DS_Store b/module-2/lab-intro-recommender-systems/.DS_Store deleted file mode 100644 index 78ba93d..0000000 Binary files a/module-2/lab-intro-recommender-systems/.DS_Store and /dev/null differ diff --git a/module-2/lab-intro-to-scipy/.DS_Store b/module-2/lab-intro-to-scipy/.DS_Store deleted file mode 100644 index 83fe24c..0000000 Binary files a/module-2/lab-intro-to-scipy/.DS_Store and /dev/null differ diff --git a/module-2/lab-matplotlib-seaborn/.DS_Store b/module-2/lab-matplotlib-seaborn/.DS_Store deleted file mode 100644 index 8a9c1a2..0000000 Binary files a/module-2/lab-matplotlib-seaborn/.DS_Store and /dev/null differ diff --git a/module-2/lab-network-analysis/.DS_Store b/module-2/lab-network-analysis/.DS_Store deleted file mode 100644 index 8228dcf..0000000 Binary files a/module-2/lab-network-analysis/.DS_Store and /dev/null differ diff --git a/module-2/lab-pandas-deep-dive/.DS_Store b/module-2/lab-pandas-deep-dive/.DS_Store deleted file mode 100644 index dc0ae86..0000000 Binary files a/module-2/lab-pandas-deep-dive/.DS_Store and /dev/null differ diff --git a/module-2/lab-pandas-deep-dive/your-code/.DS_Store b/module-2/lab-pandas-deep-dive/your-code/.DS_Store deleted file mode 100644 index 799ae70..0000000 Binary files a/module-2/lab-pandas-deep-dive/your-code/.DS_Store and /dev/null differ diff --git a/module-2/lab-pca/.DS_Store b/module-2/lab-pca/.DS_Store deleted file mode 100644 index dc0ae86..0000000 Binary files a/module-2/lab-pca/.DS_Store and /dev/null differ diff --git a/module-2/lab-pivot-table-and-correlation/.DS_Store b/module-2/lab-pivot-table-and-correlation/.DS_Store deleted file mode 100644 index 795a5f5..0000000 Binary files a/module-2/lab-pivot-table-and-correlation/.DS_Store and /dev/null differ diff --git a/module-2/lab-plotting-multiple-data-series/.DS_Store b/module-2/lab-plotting-multiple-data-series/.DS_Store deleted file mode 100644 index 78ba93d..0000000 Binary files a/module-2/lab-plotting-multiple-data-series/.DS_Store and /dev/null differ diff --git a/module-2/lab-poker-master/.DS_Store b/module-2/lab-poker-master/.DS_Store deleted file mode 100644 index 42e2d8e..0000000 Binary files a/module-2/lab-poker-master/.DS_Store and /dev/null differ diff --git a/module-2/lab-probability-distribution/.DS_Store b/module-2/lab-probability-distribution/.DS_Store deleted file mode 100644 index 795a5f5..0000000 Binary files a/module-2/lab-probability-distribution/.DS_Store and /dev/null differ diff --git a/module-2/lab-recommender-deepdive/.DS_Store b/module-2/lab-recommender-deepdive/.DS_Store deleted file mode 100644 index 78ba93d..0000000 Binary files a/module-2/lab-recommender-deepdive/.DS_Store and /dev/null differ diff --git a/module-2/lab-storytelling-data-visualization/.DS_Store b/module-2/lab-storytelling-data-visualization/.DS_Store deleted file mode 100644 index dc0ae86..0000000 Binary files a/module-2/lab-storytelling-data-visualization/.DS_Store and /dev/null differ diff --git a/module-2/lab-subsetting-and-descriptive-stats/.DS_Store b/module-2/lab-subsetting-and-descriptive-stats/.DS_Store deleted file mode 100644 index dc0ae86..0000000 Binary files a/module-2/lab-subsetting-and-descriptive-stats/.DS_Store and /dev/null differ diff --git a/module-2/lab-survival-analysis/.DS_Store b/module-2/lab-survival-analysis/.DS_Store deleted file mode 100644 index 78ba93d..0000000 Binary files a/module-2/lab-survival-analysis/.DS_Store and /dev/null differ diff --git a/module-2/lab-time-series/.DS_Store b/module-2/lab-time-series/.DS_Store deleted file mode 100644 index 8d2ec67..0000000 Binary files a/module-2/lab-time-series/.DS_Store and /dev/null differ diff --git a/module-2/lab-two-sample-hypothesis-tests/.DS_Store b/module-2/lab-two-sample-hypothesis-tests/.DS_Store deleted file mode 100644 index 101d24f..0000000 Binary files a/module-2/lab-two-sample-hypothesis-tests/.DS_Store and /dev/null differ diff --git a/module-3/.DS_Store b/module-3/.DS_Store deleted file mode 100755 index 0d1bd58..0000000 Binary files a/module-3/.DS_Store and /dev/null differ diff --git a/module-3/lab-intro-to-ml/.DS_Store b/module-3/lab-intro-to-ml/.DS_Store deleted file mode 100644 index 785415d..0000000 Binary files a/module-3/lab-intro-to-ml/.DS_Store and /dev/null differ diff --git a/module-3/lab-intro-to-sklearn/.DS_Store b/module-3/lab-intro-to-sklearn/.DS_Store deleted file mode 100644 index 1c9f4a2..0000000 Binary files a/module-3/lab-intro-to-sklearn/.DS_Store and /dev/null differ diff --git a/module-3/lab-sklearn-and-unsupervised-learning/.DS_Store b/module-3/lab-sklearn-and-unsupervised-learning/.DS_Store deleted file mode 100644 index a0657fb..0000000 Binary files a/module-3/lab-sklearn-and-unsupervised-learning/.DS_Store and /dev/null differ diff --git a/module-3/lab-supervised-learning-evaluation/.DS_Store b/module-3/lab-supervised-learning-evaluation/.DS_Store deleted file mode 100644 index 1e0cf3f..0000000 Binary files a/module-3/lab-supervised-learning-evaluation/.DS_Store and /dev/null differ diff --git a/module-3/lab-supervised-learning-feature-extraction/.DS_Store b/module-3/lab-supervised-learning-feature-extraction/.DS_Store deleted file mode 100644 index 9d5cf3c..0000000 Binary files a/module-3/lab-supervised-learning-feature-extraction/.DS_Store and /dev/null differ diff --git a/module-3/lab-supervised-learning-sklearn/.DS_Store b/module-3/lab-supervised-learning-sklearn/.DS_Store deleted file mode 100644 index c94f9c7..0000000 Binary files a/module-3/lab-supervised-learning-sklearn/.DS_Store and /dev/null differ diff --git a/module-3/lab-supervised-learning/.DS_Store b/module-3/lab-supervised-learning/.DS_Store deleted file mode 100644 index 55aa1fd..0000000 Binary files a/module-3/lab-supervised-learning/.DS_Store and /dev/null differ diff --git a/module-3/lab-supervised-model-evaluation/.DS_Store b/module-3/lab-supervised-model-evaluation/.DS_Store deleted file mode 100644 index dc0ae86..0000000 Binary files a/module-3/lab-supervised-model-evaluation/.DS_Store and /dev/null differ diff --git a/module-3/lab-unsupervised-learning-evaluation/.DS_Store b/module-3/lab-unsupervised-learning-evaluation/.DS_Store deleted file mode 100644 index dc0ae86..0000000 Binary files a/module-3/lab-unsupervised-learning-evaluation/.DS_Store and /dev/null differ diff --git a/module-3/lab-unsupervised-learning/.DS_Store b/module-3/lab-unsupervised-learning/.DS_Store deleted file mode 100644 index 779013d..0000000 Binary files a/module-3/lab-unsupervised-learning/.DS_Store and /dev/null differ diff --git a/module-3/machine-learning-pipeline-project/.DS_Store b/module-3/machine-learning-pipeline-project/.DS_Store deleted file mode 100644 index 588ec61..0000000 Binary files a/module-3/machine-learning-pipeline-project/.DS_Store and /dev/null differ