{"id":15720792,"url":"https://github.com/marcelometal/jogo-da-velha","last_synced_at":"2025-07-11T13:38:14.511Z","repository":{"id":145438961,"uuid":"114475946","full_name":"marcelometal/jogo-da-velha","owner":"marcelometal","description":"Jogo da Velha usando sockets","archived":false,"fork":false,"pushed_at":"2017-12-16T17:22:58.000Z","size":105,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-11T02:05:22.439Z","etag":null,"topics":["c","glibc","gtk2","jogo-da-velha","redes","sockets","tictactoe","tictactoe-c-game"],"latest_commit_sha":null,"homepage":"https://metaldot.alucinados.com/jogo-da-velha-usando-sockets/","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/marcelometal.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-12-16T16:49:24.000Z","updated_at":"2023-03-02T08:26:58.000Z","dependencies_parsed_at":null,"dependency_job_id":"1ac3fef9-895f-4610-8233-165e508ce12c","html_url":"https://github.com/marcelometal/jogo-da-velha","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcelometal%2Fjogo-da-velha","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcelometal%2Fjogo-da-velha/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcelometal%2Fjogo-da-velha/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcelometal%2Fjogo-da-velha/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marcelometal","download_url":"https://codeload.github.com/marcelometal/jogo-da-velha/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235213342,"owners_count":18953732,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["c","glibc","gtk2","jogo-da-velha","redes","sockets","tictactoe","tictactoe-c-game"],"created_at":"2024-10-03T22:00:14.958Z","updated_at":"2025-01-23T02:17:08.481Z","avatar_url":"https://github.com/marcelometal.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Jogo da Velha usando sockets\n\n![Example1][example1]\n![Example2][example2]\n\n[example1]: https://metaldot.alucinados.com/images/screenshot-velha-1.png\n[example2]: https://metaldot.alucinados.com/images/screenshot-velha.png\n\nNessa primeira versão por decisão de projeto, a porta de conexão\nescolhida foi a `5555` e o host o `localhost`.\n\n## Instalando\n\n### Dependências:\n\n* **Glib2** (No Debian: `aptitude install libglib2.0-dev`)\n* **GTK2** (No Debian: `aptitude install libgtk2.0-dev`)\n\n### Compilando o server:\n```\ngcc -g -Wall -o velha velha.c `pkg-config glib-2.0 --cflags --libs`\n```\n\n### Compilando o cliente:\n```\ngcc -g -Wall -o gtk gtk.c `pkg-config gtk+-2.0 --cflags --libs`\n```\n\n## Rodando:\n\nSe já foi compilado o cliente e o servidor, basta:\n\nRodar o servidor:\n```\n./velha \u0026\n```\n\nAbrir o cliente A:\n```\n./gtk \u0026\n```\n\nclicar em “Start new game”\nesperar um outro cliente entrar no jogo\n\nAbrir o cliente B\n```\n./gtk \u0026\n```\n\nescolher o jogo no combobox\nclicar em “Join existing game”\ncomeçar a jogar clicando na posição escolhida\n\n## Métodos do Protocolo:\n\n* **START** (Inicia um novo jogo)\n* **JOIN** (Usado para entrar em um jogo existente)\n* **PLAY** (Opção escolhida pelo jogador)\n* **LIST** (Lista todos os jogos)\n* **QUIT** (Termina a conexão do cliente)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcelometal%2Fjogo-da-velha","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarcelometal%2Fjogo-da-velha","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcelometal%2Fjogo-da-velha/lists"}