{"id":13693157,"url":"https://github.com/TheMrSheldon/libsnake","last_synced_at":"2025-05-02T21:31:46.696Z","repository":{"id":45024868,"uuid":"434517445","full_name":"TheMrSheldon/libsnake","owner":"TheMrSheldon","description":"The aim of libsnake is to provide an intuitive and fast library for simulating snake games. It is written with the battlesnake.com competition in mind.","archived":false,"fork":false,"pushed_at":"2022-07-25T06:37:40.000Z","size":398,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-11-12T19:40:28.542Z","etag":null,"topics":["battlesnake","cmake","cpp"],"latest_commit_sha":null,"homepage":"https://themrsheldon.github.io/libsnake/","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TheMrSheldon.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-12-03T08:16:33.000Z","updated_at":"2022-01-05T20:06:39.000Z","dependencies_parsed_at":"2022-08-12T11:40:48.626Z","dependency_job_id":null,"html_url":"https://github.com/TheMrSheldon/libsnake","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheMrSheldon%2Flibsnake","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheMrSheldon%2Flibsnake/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheMrSheldon%2Flibsnake/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheMrSheldon%2Flibsnake/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TheMrSheldon","download_url":"https://codeload.github.com/TheMrSheldon/libsnake/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252108850,"owners_count":21696148,"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":["battlesnake","cmake","cpp"],"created_at":"2024-08-02T17:01:06.350Z","updated_at":"2025-05-02T21:31:46.346Z","avatar_url":"https://github.com/TheMrSheldon.png","language":"C++","funding_links":[],"categories":["Game Rules and Logic"],"sub_categories":[],"readme":"[![Tests](https://github.com/TheMrSheldon/libsnake/actions/workflows/cmake_tests.yml/badge.svg)](https://github.com/TheMrSheldon/libsnake/actions/workflows/cmake_tests.yml)\n\n# What is libsnake?\n[TODO: Insert text here]\n\n# Using libsnake within another CMake project\nAdding libsnake to your CMake project is easy. Simply add the following lines to your CMake project where `mytarget` is the target you would like to link libsnake to.\n```cmake\nFetchContent_Declare(\n\tlibsnake_lib\n\tGIT_REPOSITORY https://github.com/TheMrSheldon/libsnake.git\n)\nFetchContent_MakeAvailable(libsnake_lib)\nFetchContent_GetProperties(libsnake_lib)\ntarget_include_directories(mytarget PRIVATE ${libsnake_SOURCE_DIR}/include/)\ntarget_link_libraries(mytarget PRIVATE libsnake)\n```\n\n# Building libsnake with VSCode (we highly recommend VSCode)\n## Prerequisite\n * CMake\n * VSCode\n * CMake Extension for VSCode\n * Working C++ compiler\n\n## Build process:\n 1. Clone this repository\n 1. Open the cloned repository in VSCode\n 1. Ctrl+Shift+P and enter \"CMake: Configure\"\n 1. You may get asked to select a Kit: select your prefered compiler\n 1. Ctrl+Shift+P and enter \"CMake: Build\"\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FTheMrSheldon%2Flibsnake","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FTheMrSheldon%2Flibsnake","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FTheMrSheldon%2Flibsnake/lists"}