Skip to content

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.

License

Notifications You must be signed in to change notification settings

TheMrSheldon/libsnake

Repository files navigation

Tests

What is libsnake?

[TODO: Insert text here]

Using libsnake within another CMake project

Adding 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.

FetchContent_Declare(
	libsnake_lib
	GIT_REPOSITORY https://github.com/TheMrSheldon/libsnake.git
)
FetchContent_MakeAvailable(libsnake_lib)
FetchContent_GetProperties(libsnake_lib)
target_include_directories(mytarget PRIVATE ${libsnake_SOURCE_DIR}/include/)
target_link_libraries(mytarget PRIVATE libsnake)

Building libsnake with VSCode (we highly recommend VSCode)

Prerequisite

  • CMake
  • VSCode
  • CMake Extension for VSCode
  • Working C++ compiler

Build process:

  1. Clone this repository
  2. Open the cloned repository in VSCode
  3. Ctrl+Shift+P and enter "CMake: Configure"
  4. You may get asked to select a Kit: select your prefered compiler
  5. Ctrl+Shift+P and enter "CMake: Build"

About

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.

Topics

Resources

License

Stars

Watchers

Forks