{"action":"created","comment":{"url":"https://api.github.com/repos/profedotc/ana-juegoDeLaVida/pulls/comments/61410070","id":61410070,"diff_hunk":"@@ -2,23 +2,57 @@\n #define HDR_H\n #include <stdio.h>\n #include <stdbool.h>\n+#include <stdlib.h>\n+#include <unistd.h>\n+#include <time.h> \n \n /* Tamaño del array regular bidimensaional */\n #define TAM_ARRAY 50\n /* Número de iteraciones */\n-#define ITERACION 60\n+#define ITERACION 10\n /* Lindantes se refiere a las 8 células lindantes que tiene cada una como máximo. */\n #define LINDANTES 8\n \n+//Definición Estructura:\n+\n+\n+\n+/* Definición de funciones */\n+\n+//Imprime menú inicio.\n int menuInicio();\n-void iterarTablero(struct tablero *t);\n+\n+//Inicializa el tablero con el número de celulas dadas por user\n+void inicializarTablero(bool array[][TAM_ARRAY], int numCelulas);\n+\n+//Inicializa el tablero a 1s (celulas muertas)\n+void declararTablero(bool array[][TAM_ARRAY]);\n+\n+//Para imprimir el tablero;\n+void imprimeTablero(bool array[][TAM_ARRAY]);\n+\n+//Para analizar el tablero en cada iteración:\n+void analizarTablero(bool array[][TAM_ARRAY],bool provisional[][TAM_ARRAY]);\n+\n+//Realiza la comprobación de las vecionas de una célula:\n+bool tiene3VecinasVivas(int x, int y, bool array[][TAM_ARRAY]);\n+\n+//Para copiar un array en otro:\n+void copiaArray(bool array[][TAM_ARRAY],bool arrayAcopiar[][TAM_ARRAY]);\n+\n+//Comprobar si una célula está dentro de los límites:\n+bool estaDentroLimites(int x, int y);\n+\n+/*void iterarTablero(struct tablero *t);\n void imprimeTablero(struct tablero *t);\n-void inicializarTablero(struct tablero *t);\n-void analizarTablero(struct tablero *t);\n+//void analizarTablero(struct tablero *t);\n //Comprueba si un array está vacío.\n-int estaVacioArray(struct coordenadas *array);\n+int estaVacioArray(struct coordenadas array[TAM_ARRAY*TAM_ARRAY]);\n //Comprueba si un array está vacío, y si no lo está guarda su última posición llena.\n bool estaVacio(struct tablero *t, enum estado_celula opcion);\n void addCelulas(struct tablero *t);\n-void removeCelulas(struct tablero *t);\n+//void removeCelulas(struct tablero *t);\n+*/\n+\n+","path":"hdr.h","position":62,"original_position":62,"commit_id":"daaa029d34b830c61b0832985e3ee3a3723b29e2","original_commit_id":"daaa029d34b830c61b0832985e3ee3a3723b29e2","user":{"login":"profedotc","id":18260270,"avatar_url":"https://avatars.githubusercontent.com/u/18260270?v=3","gravatar_id":"","url":"https://api.github.com/users/profedotc","html_url":"https://github.com/profedotc","followers_url":"https://api.github.com/users/profedotc/followers","following_url":"https://api.github.com/users/profedotc/following{/other_user}","gists_url":"https://api.github.com/users/profedotc/gists{/gist_id}","starred_url":"https://api.github.com/users/profedotc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/profedotc/subscriptions","organizations_url":"https://api.github.com/users/profedotc/orgs","repos_url":"https://api.github.com/users/profedotc/repos","events_url":"https://api.github.com/users/profedotc/events{/privacy}","received_events_url":"https://api.github.com/users/profedotc/received_events","type":"User","site_admin":false},"body":"* No se sube código comentado\r\n* Líneas en blanco","created_at":"2016-04-28T11:13:00Z","updated_at":"2016-04-28T11:13:00Z","html_url":"https://github.com/profedotc/ana-juegoDeLaVida/pull/2#discussion_r61410070","pull_request_url":"https://api.github.com/repos/profedotc/ana-juegoDeLaVida/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/profedotc/ana-juegoDeLaVida/pulls/comments/61410070"},"html":{"href":"https://github.com/profedotc/ana-juegoDeLaVida/pull/2#discussion_r61410070"},"pull_request":{"href":"https://api.github.com/repos/profedotc/ana-juegoDeLaVida/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/profedotc/ana-juegoDeLaVida/pulls/2","id":68139457,"html_url":"https://github.com/profedotc/ana-juegoDeLaVida/pull/2","diff_url":"https://github.com/profedotc/ana-juegoDeLaVida/pull/2.diff","patch_url":"https://github.com/profedotc/ana-juegoDeLaVida/pull/2.patch","issue_url":"https://api.github.com/repos/profedotc/ana-juegoDeLaVida/issues/2","number":2,"state":"open","locked":false,"title":"Primera Versión Juego de La Vida (Arrays)","user":{"login":"nikasha89","id":17931578,"avatar_url":"https://avatars.githubusercontent.com/u/17931578?v=3","gravatar_id":"","url":"https://api.github.com/users/nikasha89","html_url":"https://github.com/nikasha89","followers_url":"https://api.github.com/users/nikasha89/followers","following_url":"https://api.github.com/users/nikasha89/following{/other_user}","gists_url":"https://api.github.com/users/nikasha89/gists{/gist_id}","starred_url":"https://api.github.com/users/nikasha89/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nikasha89/subscriptions","organizations_url":"https://api.github.com/users/nikasha89/orgs","repos_url":"https://api.github.com/users/nikasha89/repos","events_url":"https://api.github.com/users/nikasha89/events{/privacy}","received_events_url":"https://api.github.com/users/nikasha89/received_events","type":"User","site_admin":false},"body":"Primera Versión con Array, hay una constante global llamada ITERACION donde puedes incluir el nº de iteraciones que quieras, Por defecto las puse en 10 para poder verlas cómodamente en la terminal.","created_at":"2016-04-27T23:02:44Z","updated_at":"2016-04-28T11:13:00Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d768680f8d83cc674b19fbe1931f0f15ac4b02be","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/profedotc/ana-juegoDeLaVida/pulls/2/commits","review_comments_url":"https://api.github.com/repos/profedotc/ana-juegoDeLaVida/pulls/2/comments","review_comment_url":"https://api.github.com/repos/profedotc/ana-juegoDeLaVida/pulls/comments{/number}","comments_url":"https://api.github.com/repos/profedotc/ana-juegoDeLaVida/issues/2/comments","statuses_url":"https://api.github.com/repos/profedotc/ana-juegoDeLaVida/statuses/daaa029d34b830c61b0832985e3ee3a3723b29e2","head":{"label":"nikasha89:master","ref":"master","sha":"daaa029d34b830c61b0832985e3ee3a3723b29e2","user":{"login":"nikasha89","id":17931578,"avatar_url":"https://avatars.githubusercontent.com/u/17931578?v=3","gravatar_id":"","url":"https://api.github.com/users/nikasha89","html_url":"https://github.com/nikasha89","followers_url":"https://api.github.com/users/nikasha89/followers","following_url":"https://api.github.com/users/nikasha89/following{/other_user}","gists_url":"https://api.github.com/users/nikasha89/gists{/gist_id}","starred_url":"https://api.github.com/users/nikasha89/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nikasha89/subscriptions","organizations_url":"https://api.github.com/users/nikasha89/orgs","repos_url":"https://api.github.com/users/nikasha89/repos","events_url":"https://api.github.com/users/nikasha89/events{/privacy}","received_events_url":"https://api.github.com/users/nikasha89/received_events","type":"User","site_admin":false},"repo":{"id":55784460,"name":"juegoDeLaVida","full_name":"nikasha89/juegoDeLaVida","owner":{"login":"nikasha89","id":17931578,"avatar_url":"https://avatars.githubusercontent.com/u/17931578?v=3","gravatar_id":"","url":"https://api.github.com/users/nikasha89","html_url":"https://github.com/nikasha89","followers_url":"https://api.github.com/users/nikasha89/followers","following_url":"https://api.github.com/users/nikasha89/following{/other_user}","gists_url":"https://api.github.com/users/nikasha89/gists{/gist_id}","starred_url":"https://api.github.com/users/nikasha89/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nikasha89/subscriptions","organizations_url":"https://api.github.com/users/nikasha89/orgs","repos_url":"https://api.github.com/users/nikasha89/repos","events_url":"https://api.github.com/users/nikasha89/events{/privacy}","received_events_url":"https://api.github.com/users/nikasha89/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nikasha89/juegoDeLaVida","description":"","fork":false,"url":"https://api.github.com/repos/nikasha89/juegoDeLaVida","forks_url":"https://api.github.com/repos/nikasha89/juegoDeLaVida/forks","keys_url":"https://api.github.com/repos/nikasha89/juegoDeLaVida/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nikasha89/juegoDeLaVida/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nikasha89/juegoDeLaVida/teams","hooks_url":"https://api.github.com/repos/nikasha89/juegoDeLaVida/hooks","issue_events_url":"https://api.github.com/repos/nikasha89/juegoDeLaVida/issues/events{/number}","events_url":"https://api.github.com/repos/nikasha89/juegoDeLaVida/events","assignees_url":"https://api.github.com/repos/nikasha89/juegoDeLaVida/assignees{/user}","branches_url":"https://api.github.com/repos/nikasha89/juegoDeLaVida/branches{/branch}","tags_url":"https://api.github.com/repos/nikasha89/juegoDeLaVida/tags","blobs_url":"https://api.github.com/repos/nikasha89/juegoDeLaVida/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nikasha89/juegoDeLaVida/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nikasha89/juegoDeLaVida/git/refs{/sha}","trees_url":"https://api.github.com/repos/nikasha89/juegoDeLaVida/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nikasha89/juegoDeLaVida/statuses/{sha}","languages_url":"https://api.github.com/repos/nikasha89/juegoDeLaVida/languages","stargazers_url":"https://api.github.com/repos/nikasha89/juegoDeLaVida/stargazers","contributors_url":"https://api.github.com/repos/nikasha89/juegoDeLaVida/contributors","subscribers_url":"https://api.github.com/repos/nikasha89/juegoDeLaVida/subscribers","subscription_url":"https://api.github.com/repos/nikasha89/juegoDeLaVida/subscription","commits_url":"https://api.github.com/repos/nikasha89/juegoDeLaVida/commits{/sha}","git_commits_url":"https://api.github.com/repos/nikasha89/juegoDeLaVida/git/commits{/sha}","comments_url":"https://api.github.com/repos/nikasha89/juegoDeLaVida/comments{/number}","issue_comment_url":"https://api.github.com/repos/nikasha89/juegoDeLaVida/issues/comments{/number}","contents_url":"https://api.github.com/repos/nikasha89/juegoDeLaVida/contents/{+path}","compare_url":"https://api.github.com/repos/nikasha89/juegoDeLaVida/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nikasha89/juegoDeLaVida/merges","archive_url":"https://api.github.com/repos/nikasha89/juegoDeLaVida/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nikasha89/juegoDeLaVida/downloads","issues_url":"https://api.github.com/repos/nikasha89/juegoDeLaVida/issues{/number}","pulls_url":"https://api.github.com/repos/nikasha89/juegoDeLaVida/pulls{/number}","milestones_url":"https://api.github.com/repos/nikasha89/juegoDeLaVida/milestones{/number}","notifications_url":"https://api.github.com/repos/nikasha89/juegoDeLaVida/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nikasha89/juegoDeLaVida/labels{/name}","releases_url":"https://api.github.com/repos/nikasha89/juegoDeLaVida/releases{/id}","deployments_url":"https://api.github.com/repos/nikasha89/juegoDeLaVida/deployments","created_at":"2016-04-08T14:20:07Z","updated_at":"2016-04-08T14:24:12Z","pushed_at":"2016-04-27T23:12:07Z","git_url":"git://github.com/nikasha89/juegoDeLaVida.git","ssh_url":"git@github.com:nikasha89/juegoDeLaVida.git","clone_url":"https://github.com/nikasha89/juegoDeLaVida.git","svn_url":"https://github.com/nikasha89/juegoDeLaVida","homepage":null,"size":26,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":0,"forks":2,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"profedotc:master","ref":"master","sha":"b8e21778f8768973b2b7a5734c363c9cdf9f8bbf","user":{"login":"profedotc","id":18260270,"avatar_url":"https://avatars.githubusercontent.com/u/18260270?v=3","gravatar_id":"","url":"https://api.github.com/users/profedotc","html_url":"https://github.com/profedotc","followers_url":"https://api.github.com/users/profedotc/followers","following_url":"https://api.github.com/users/profedotc/following{/other_user}","gists_url":"https://api.github.com/users/profedotc/gists{/gist_id}","starred_url":"https://api.github.com/users/profedotc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/profedotc/subscriptions","organizations_url":"https://api.github.com/users/profedotc/orgs","repos_url":"https://api.github.com/users/profedotc/repos","events_url":"https://api.github.com/users/profedotc/events{/privacy}","received_events_url":"https://api.github.com/users/profedotc/received_events","type":"User","site_admin":false},"repo":{"id":55835473,"name":"ana-juegoDeLaVida","full_name":"profedotc/ana-juegoDeLaVida","owner":{"login":"profedotc","id":18260270,"avatar_url":"https://avatars.githubusercontent.com/u/18260270?v=3","gravatar_id":"","url":"https://api.github.com/users/profedotc","html_url":"https://github.com/profedotc","followers_url":"https://api.github.com/users/profedotc/followers","following_url":"https://api.github.com/users/profedotc/following{/other_user}","gists_url":"https://api.github.com/users/profedotc/gists{/gist_id}","starred_url":"https://api.github.com/users/profedotc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/profedotc/subscriptions","organizations_url":"https://api.github.com/users/profedotc/orgs","repos_url":"https://api.github.com/users/profedotc/repos","events_url":"https://api.github.com/users/profedotc/events{/privacy}","received_events_url":"https://api.github.com/users/profedotc/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/profedotc/ana-juegoDeLaVida","description":"","fork":true,"url":"https://api.github.com/repos/profedotc/ana-juegoDeLaVida","forks_url":"https://api.github.com/repos/profedotc/ana-juegoDeLaVida/forks","keys_url":"https://api.github.com/repos/profedotc/ana-juegoDeLaVida/keys{/key_id}","collaborators_url":"https://api.github.com/repos/profedotc/ana-juegoDeLaVida/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/profedotc/ana-juegoDeLaVida/teams","hooks_url":"https://api.github.com/repos/profedotc/ana-juegoDeLaVida/hooks","issue_events_url":"https://api.github.com/repos/profedotc/ana-juegoDeLaVida/issues/events{/number}","events_url":"https://api.github.com/repos/profedotc/ana-juegoDeLaVida/events","assignees_url":"https://api.github.com/repos/profedotc/ana-juegoDeLaVida/assignees{/user}","branches_url":"https://api.github.com/repos/profedotc/ana-juegoDeLaVida/branches{/branch}","tags_url":"https://api.github.com/repos/profedotc/ana-juegoDeLaVida/tags","blobs_url":"https://api.github.com/repos/profedotc/ana-juegoDeLaVida/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/profedotc/ana-juegoDeLaVida/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/profedotc/ana-juegoDeLaVida/git/refs{/sha}","trees_url":"https://api.github.com/repos/profedotc/ana-juegoDeLaVida/git/trees{/sha}","statuses_url":"https://api.github.com/repos/profedotc/ana-juegoDeLaVida/statuses/{sha}","languages_url":"https://api.github.com/repos/profedotc/ana-juegoDeLaVida/languages","stargazers_url":"https://api.github.com/repos/profedotc/ana-juegoDeLaVida/stargazers","contributors_url":"https://api.github.com/repos/profedotc/ana-juegoDeLaVida/contributors","subscribers_url":"https://api.github.com/repos/profedotc/ana-juegoDeLaVida/subscribers","subscription_url":"https://api.github.com/repos/profedotc/ana-juegoDeLaVida/subscription","commits_url":"https://api.github.com/repos/profedotc/ana-juegoDeLaVida/commits{/sha}","git_commits_url":"https://api.github.com/repos/profedotc/ana-juegoDeLaVida/git/commits{/sha}","comments_url":"https://api.github.com/repos/profedotc/ana-juegoDeLaVida/comments{/number}","issue_comment_url":"https://api.github.com/repos/profedotc/ana-juegoDeLaVida/issues/comments{/number}","contents_url":"https://api.github.com/repos/profedotc/ana-juegoDeLaVida/contents/{+path}","compare_url":"https://api.github.com/repos/profedotc/ana-juegoDeLaVida/compare/{base}...{head}","merges_url":"https://api.github.com/repos/profedotc/ana-juegoDeLaVida/merges","archive_url":"https://api.github.com/repos/profedotc/ana-juegoDeLaVida/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/profedotc/ana-juegoDeLaVida/downloads","issues_url":"https://api.github.com/repos/profedotc/ana-juegoDeLaVida/issues{/number}","pulls_url":"https://api.github.com/repos/profedotc/ana-juegoDeLaVida/pulls{/number}","milestones_url":"https://api.github.com/repos/profedotc/ana-juegoDeLaVida/milestones{/number}","notifications_url":"https://api.github.com/repos/profedotc/ana-juegoDeLaVida/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/profedotc/ana-juegoDeLaVida/labels{/name}","releases_url":"https://api.github.com/repos/profedotc/ana-juegoDeLaVida/releases{/id}","deployments_url":"https://api.github.com/repos/profedotc/ana-juegoDeLaVida/deployments","created_at":"2016-04-09T09:11:23Z","updated_at":"2016-04-09T09:16:05Z","pushed_at":"2016-04-27T23:02:45Z","git_url":"git://github.com/profedotc/ana-juegoDeLaVida.git","ssh_url":"git@github.com:profedotc/ana-juegoDeLaVida.git","clone_url":"https://github.com/profedotc/ana-juegoDeLaVida.git","svn_url":"https://github.com/profedotc/ana-juegoDeLaVida","homepage":null,"size":3,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/profedotc/ana-juegoDeLaVida/pulls/2"},"html":{"href":"https://github.com/profedotc/ana-juegoDeLaVida/pull/2"},"issue":{"href":"https://api.github.com/repos/profedotc/ana-juegoDeLaVida/issues/2"},"comments":{"href":"https://api.github.com/repos/profedotc/ana-juegoDeLaVida/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/profedotc/ana-juegoDeLaVida/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/profedotc/ana-juegoDeLaVida/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/profedotc/ana-juegoDeLaVida/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/profedotc/ana-juegoDeLaVida/statuses/daaa029d34b830c61b0832985e3ee3a3723b29e2"}}}}